Difference between revisions of "Template:Autoinfobox zkunit/doc"
Jump to navigation
Jump to search
(Created page with "This template uses Module:UnitData to autogenerate unit infoboxes, transcluding and filling in Template:Infobox zkunit data from Module:UnitData/data. Specific tag...") |
m (Category tag) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
}} | }} | ||
</pre> | </pre> | ||
| + | |||
| + | 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]]): | ||
| + | <pre> | ||
| + | {{#invoke:UnitData|printInfobox|defname=striderdetriment|name=Name override}} | ||
| + | </pre> | ||
| + | When invoking from module, <code>defname</code> may be passed as an anonymous parameter instead. | ||
For more information, see the module page. | For more information, see the module page. | ||
| + | [[Category:ZK Infoboxes]] | ||
Latest revision as of 21:32, 11 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.