Difference between revisions of "Template:UnitData getData"
Jump to navigation
Jump to search
(Initial code.) |
m (Remove extra space) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#invoke:UnitData|getData|{{{1|}}}|{{{2|}}}}}</includeonly> | + | <includeonly>{{#if: {{#invoke:UnitData|getData|{{{1|}}}|{{{2|}}}}} |
− | <noinclude> | + | |{{#invoke:UnitData|getData|{{{1|}}}|{{{2|}}}}}|{{{3|0}}}}}</includeonly><noinclude> |
{{Documentation}} | {{Documentation}} | ||
<!-- Please add categories and interwiki links to /doc subpage, not here! --> | <!-- Please add categories and interwiki links to /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Latest revision as of 21:03, 22 June 2024
A convenience template to allow using auto-generated unit data in text.
The first parameter is the internal name of the unit, the second is the name of the property. The third is what to print if the property doesn't exist for that unit.
The above documentation is transcluded from Template:UnitData getData/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |