Template:Prototype property: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>=== {{{1}}} === '''Type''': {{{2}}}<br>{{#if: {{{3|}}}|'''Default''': {{{3}}}<br>|}}{{#subobject:{{{1}}} |Prototype property name={{{1}}} |Prototype property ty...") |
m (Added category) |
||
Line 5: | Line 5: | ||
|Prototype property optional={{{optional|false}}} | |Prototype property optional={{{optional|false}}} | ||
|Prototype property pagename={{FULLPAGENAME}} | |Prototype property pagename={{FULLPAGENAME}} | ||
}}</includeonly><noinclude>{{doc}}</noinclude> | }}</includeonly><noinclude>{{doc}}[[Category:Prototype documentation templates]]</noinclude> |
Latest revision as of 14:22, 26 July 2019
[View] [Edit] [Page history]
DocumentationDisplays a prototype property and creates a semantic mediawiki object for it. Parameters:
- First parameter: Property name
- Second parameter: Property type
- Third parameter: The default value of the property
- 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.