Template:Prototype property/doc

From Official Factorio Wiki
< Template:Prototype property
Revision as of 13:29, 26 July 2019 by Bilka (talk | contribs) (Created page with "Displays a prototype property and creates a semantic mediawiki object for it. Parameters: * First parameter: Property name * Second parameter: Property type * Named parameter...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Displays a prototype property and creates a semantic mediawiki object for it. Parameters:

  • First parameter: Property name
  • Second parameter: Property type
  • Named parameter "optional": Set to true when optional, otherwise not set.

Source code:

=== {{{1}}} ===
'''Type''': {{{2}}}<br>{{#if: {{{3|}}}|'''Default''': {{{3}}}<br>|}}{{#subobject:{{{1}}}
 |Prototype property name={{{1}}}
 |Prototype property type={{{2}}}
 |Prototype property optional={{{optional|false}}}
 |Prototype property pagename={{FULLPAGENAME}}
}}

Example for a property of Prototype/Armor:

{{Prototype_property|equipment_grid|[[Types/string|string]]|optional=true}}
Name of the [[Prototype/EquipmentGrid]] that this armor has.

equipment_grid

Type: string
Name of the Prototype/EquipmentGrid that this armor has.