Difference between revisions of "Template:Autoinfobox zkunit"
Jump to navigation
Jump to search
m (Formatting) |
m (Remove an unwanted line break, maybe) |
||
| Line 22: | Line 22: | ||
|abilities = {{{weapons|{{#invoke:UnitData|printAbilityInfoboxes|{{{defname}}}|true}} }}} | |abilities = {{{weapons|{{#invoke:UnitData|printAbilityInfoboxes|{{{defname}}}|true}} }}} | ||
|weapons = {{{weapons|{{#invoke:UnitData|printWeaponInfoboxes|{{{defname}}}|true}} }}} | |weapons = {{{weapons|{{#invoke:UnitData|printWeaponInfoboxes|{{{defname}}}|true}} }}} | ||
| − | }} | + | }}</includeonly> |
| − | </includeonly> | ||
<noinclude> | <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> | ||
Revision as of 02:00, 18 May 2024
This template uses Module:UnitData to autogenerate unit infoboxes, transcluding and filling in Template:Infobox zkunit data from Module:UnitData/data. Specific tags can be overridden by manually specifying them, if necessary.
Example usage:
{{Autoinfobox zkunit
|defname=striderdetriment
|name=Name override
}}
The module can also be invoked directly without this template to generate an infobox (note that output may not be identical in some cases; observed with automatic detection of buildpic on Reef):
{{#invoke:UnitData|printInfobox|defname=striderdetriment|name=Name override}}
When invoking from module, defname may be passed as an anonymous parameter instead.
For more information, see the module page.
| The above documentation is transcluded from Template:Autoinfobox zkunit/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. |