Difference between revisions of "Template:Infobox zkunit"
Jump to navigation
Jump to search
(created unit infobox) |
m |
||
| (50 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| + | <noinclude>[[Category:ZK Infoboxes]]</noinclude> | ||
{{ infobox | {{ infobox | ||
| Line 5: | Line 6: | ||
|subheaderstyle = | |subheaderstyle = | ||
|title = | |title = | ||
| − | |above = {{{name}}} | + | |above = {{{name}}}{{#if:{{{defname|}}}|<br>({{{defname}}})}} |
| − | |subheader = {{{description}}} | + | |subheader = {{#invoke:String|replace|{{{description|}}}| - |<hr> }} |
|imagestyle = | |imagestyle = | ||
|captionstyle = | |captionstyle = | ||
| − | | | + | |image = {{unit image|{{{image|}}}|alt={{{name}}}}}{{#if:{{{icontype|}}}| {{#ifexist:File:Uniticon {{{icontype}}}.png|[[File:Uniticon {{{icontype}}}.png|x48px|alt={{{icontype|}}}|link=]]|<img src="//manual.zero-k.info/icons/{{{icontype}}}.png" height="48" alt="{{{icontype|}}}">}}|}} |
| + | <!--(was disabled as thumbnails were not supported) [[File:Uniticon {{{icontype}}}.png|64px]] --> | ||
|caption = | |caption = | ||
| Line 18: | Line 20: | ||
| − | | header1 = | + | | header1 = Stats |
| − | | label2 = | + | | label2 = Cost |
| − | | data2 = {{{ | + | | data2 = {{{cost|}}} |
| − | | label3 = | + | | label3 = Hit Points |
| − | | data3 = {{{ | + | | data3 = {{{hitpoints|}}} |
| − | | label4 | + | | label4 = Mass |
| − | | data4 | + | | data4 = {{{mass|}}} |
| label5 = Movement Speed (elmo/s) | | label5 = Movement Speed (elmo/s) | ||
| data5 = {{{movespeed|}}} | | data5 = {{{movespeed|}}} | ||
| + | |||
| + | | label6 = Turn Rate (deg/s) | ||
| + | | data6 = {{{turnrate|}}} | ||
| + | | label7 = Energy (E/s) | ||
| + | | data7 = {{{energy||}}} | ||
| − | | | + | | label8 = Vision Radius (elmo) |
| + | | data8 = {{{sight|}}} | ||
| + | |||
| + | | label9 = Sonar (elmo) | ||
| + | | data9 = {{{sonar|}}} | ||
| + | |||
| + | | label10 = Transportable | ||
| + | | data10 = {{{transportable|}}} | ||
| + | |||
| + | | label11 = Altitude (elmo) | ||
| + | | data11 = {{{altitude|}}} | ||
| + | |||
| + | | label12 = Grid link range (elmo) | ||
| + | | data12 = {{{gridlink|}}} | ||
| + | |||
| + | | header40 = {{#if: {{{abilities|}}} |Abilities|}} | ||
| + | |||
| + | | data41 = {{{abilities|}}} | ||
| + | |||
| + | | header50 = Weapons | ||
| − | | | + | | data51 = {{{weapons|None}}} |
| − | |||
| − | |||
| − | | | + | | label95 = Unitname |
| + | | data95 = {{{unitname|}}} | ||
}} | }} | ||
| + | <noinclude> | ||
| + | {{Documentation}} | ||
| + | <!-- Please add categories and interwiki links to /doc subpage, not here! --> | ||
| + | </noinclude> | ||
Latest revision as of 21:06, 1 September 2024
| {{{name}}} | |
|---|---|
| Stats | |
| Weapons | |
| None |
Full blank syntax[edit]
{{ Infobox zkunit
<!-- Required fields -->
name =
<!-- Optional fields -->
unitname =
defname =
description =
image =
icontype =
cost =
hitpoints =
mass =
movespeed =
turnrate =
energy =
sight =
sonar =
transportable =
altitude =
gridlink =
abilities =
<!-- Get Template:Infobox zkability ### -->
weapons =
<!-- Get Template:Infobox zkweapon -->
}}
Discrepancies between this representation and the context menu ingame: (The following list may not be exhaustive.)
- Ingame shields are represented as weapons.
- Ingame EMP/slow/disarm weapon damage is in the same entry as ordinary damage.
| The above documentation is transcluded from Template:Infobox zkunit/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |