Difference between revisions of "Template:Children"
Revision as of 04:32, 5 May 2014 Protected "Template:Children" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) | Latest revision as of 20:02, 11 May 2014 changed to code naming scheme. Can change back if we don't like it (I'm not a fan). | |||
Line 4: | Line 4: | |||
|{{#vardefine:code|{{#explode:{{#var:list}}|;|{{#var:i}} }} }} | |{{#vardefine:code|{{#explode:{{#var:list}}|;|{{#var:i}} }} }} | |||
{{#if:{{#explode:{{#var:list}}|;|{{#expr:{{#var:i}}+1}} }} | {{#if:{{#explode:{{#var:list}}|;|{{#expr:{{#var:i}}+1}} }} | |||
? | |the [[Tank | + | |the [[Tank:{{#var:code}}|{{#wotstr:{{#combatchars:{{#var:code}}|mark}} }}]], | |
? | |{{#ifeq:{{#var:i}}|0|the [[Tank | + | |{{#ifeq:{{#var:i}}|0|the [[Tank:{{#var:code}}|{{#wotstr:{{#combatchars:{{#var:code}}|mark}} }}]]. | |
? | |and the [[Tank | + | |and the [[Tank:{{#var:code}}|{{#wotstr:{{#combatchars:{{#var:code}}|mark}} }}]].}}}} | |
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | {{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | |||
}}</includeonly> | }}</includeonly> |
Latest revision as of 20:02, 11 May 2014
Usage
Used for the end of the description of tank pages. Lists the children of the tank in proper English.
{{Children|tankcode}}
- Tank code should be used to specify the tank. The tank codes are listed here: https://wiki.wargaming.net/ru/WoT:Коды_техники in the Code column (the 3rd column).