Editing Module:UnitData/doc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly>:'''''[[Module:UnitData/doc|Documentation]]'''''</includeonly>
 
 
This module is used to autogenerate unit infoboxes by drawing data from [[Module:UnitData/data]]. The intent is to ease updating of unit infoboxes on the wiki; ideally, only the one data page needing to be changed every release. The concept is taken from e.g. the [https://library-of-ruina.fandom.com/wiki/Module:CombatCardData Combat Card Data module] on the ''Library of Ruina'' Wiki.
 
This module is used to autogenerate unit infoboxes by drawing data from [[Module:UnitData/data]]. The intent is to ease updating of unit infoboxes on the wiki; ideally, only the one data page needing to be changed every release. The concept is taken from e.g. the [https://library-of-ruina.fandom.com/wiki/Module:CombatCardData Combat Card Data module] on the ''Library of Ruina'' Wiki.
  
Line 10: Line 9:
 
}}
 
}}
 
</pre>
 
</pre>
 
The module can also be invoked directly 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.
 
 
See also [[Module:WeaponData]], which is used to generate the weapon infoboxes within the unit infoboxes.
 
  
 
== Data page ==
 
== Data page ==
 
{{Module:UnitData/data/doc}}
 
{{Module:UnitData/data/doc}}

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: