Difference between revisions of "Template:TankList"
Revision as of 04:47, 4 November 2014 Test fix for the blue stars. | Latest revision as of 04:58, 4 November 2014 Premium -> if statement and Gift -> ifeq statement. Should fix blue stars | |||
Line 27: | Line 27: | |||
</div> | </div> | |||
<li>[[image:anno{{#var:code}}.png|link=Tank:{{#var:code}}]]<br />[[image:Tier_{{#var:level}}_icon.png|link=]] | <li>[[image:anno{{#var:code}}.png|link=Tank:{{#var:code}}]]<br />[[image:Tier_{{#var:level}}_icon.png|link=]] | |||
? | {{#var:name}}{{#if:{{#var:premium}}|{{# | + | {{#var:name}}{{#if:{{#var:premium}}|{{#ifeq:{{#var:gift}}|1| [[image:PremiumIcon2.png|link=]]| [[image:GoldIcon2.png|link=]]|}}}}</li> | |
|}} | |}} | |||
{{#ifeq:{{{style|}}}|imagePrem | {{#ifeq:{{{style|}}}|imagePrem | |||
Line 43: | Line 43: | |||
|SPG = Self-Propelled Guns}}}} | |SPG = Self-Propelled Guns}}}} | |||
</div> | </div> | |||
? | <li>[[image:Tier_{{#var:level}}_icon.png|link=]]{{#var:name}}<br />[[image:anno{{#var:code}}.png|link=Tank:{{#var:code}}]]<br />{{#var:price}} {{#if:{{#var:premium}}|{{# | + | <li>[[image:Tier_{{#var:level}}_icon.png|link=]]{{#var:name}}<br />[[image:anno{{#var:code}}.png|link=Tank:{{#var:code}}]]<br />{{#var:price}} {{#if:{{#var:premium}}|{{#ifeq:{{#var:gift}}|1| [[image:PremiumIcon2.png|link=]]| [[image:GoldIcon2.png|link=]]|}}}}<br />[[{{#var:class}}]]<br /><br /></li> | |
|}} | |}} | |||
{{#ifeq:{{{style|}}}|text | {{#ifeq:{{{style|}}}|text |
Latest revision as of 04:58, 4 November 2014
Usage
- |class= light, medium, heavy, td, spg
- |nation= usa, ussr, germany, etc.
- |gold= 1 for only gold tanks. 0 to exclude gold tanks. Default is both gold and non-gold tanks.
- |order= level, class, etc. How the tanks are ordered.
- |style= text, image, or imagePrem.
- |divider= • or anything you'd like. Default is a comma. Is not used when style is images.
Template
{{TankList|nation = |class = |gold = |order = |style = |divider = }}
Category: