Difference between revisions of "Template:Modules"
Revision as of 02:41, 1 February 2011 | Revision as of 02:47, 1 February 2011 | |||
Line 17: | Line 17: | |||
{{#vardefine:wt|0}} | {{#vardefine:wt|0}} | |||
{{#vardefine:spgtd|{{{isSPGorTD}}}}} | {{#vardefine:spgtd|{{{isSPGorTD}}}}} | |||
? | {{#ifeq:{{lc:{{#var:spgtd}}}}|yes|{{#vardefine:spgtd|1}}| | + | {{#ifeq:{{lc:{{#var:spgtd}}}}|yes|{{#vardefine:spgtd|1}}|}} | |
</div> | </div> | |||
<div id="Panel" class="Modules"> | <div id="Panel" class="Modules"> | |||
Line 48: | Line 48: | |||
<hr /> | <hr /> | |||
<table><tr><td style="width:64px">[[image:ico_turret_alpha.png|link=Turret|left|Turret]]</td> | <table><tr><td style="width:64px">[[image:ico_turret_alpha.png|link=Turret|left|Turret]]</td> | |||
? | {{#ifeq:{{#var:spgtd}}|1|<td><span style="color:#6F2F0A; font-weight:bold">SPGs and TDs don't have turret modules</span></td></tr></table>| | + | {{#ifeq:{{#var:spgtd}}|1|<td><center><span style="color:#6F2F0A; font-weight:bold; opacity:0.6">SPGs and TDs don't have turret modules</span></center></td></tr></table>| | |
<td><table class="moduleTable"><tr class="moduletitlebar"><th><center>Tr</center></th><th><center>Nm</center></th><th><center>Arm</center></th><th><center>T.Tr</center></th><th><center>VR</center></th><th><center>Pr</center></th><th><center>Wt</center></th></tr> | <td><table class="moduleTable"><tr class="moduletitlebar"><th><center>Tr</center></th><th><center>Nm</center></th><th><center>Arm</center></th><th><center>T.Tr</center></th><th><center>VR</center></th><th><center>Pr</center></th><th><center>Wt</center></th></tr> | |||
{{#vardefine:i|1}}{{#while:|{{#if:{{{turret{{#var:i}}|}}}|true}} | {{#vardefine:i|1}}{{#while:|{{#if:{{{turret{{#var:i}}|}}}|true}} |
Revision as of 02:47, 1 February 2011
Modules
Stock gun missing |
Stock turret missing |
Stock engine missing |
Stock suspension missing |
Stock radio missing |
</div>
Notes
- isSPGorTD if the vehicle is an SPG or a TD mark "yes" or "1" otherwise leave it
- isSPGorTD - acceptible inputs = nothing, "1", "0", "yes", "no",
- You can add up to 10 modules per type (and Info); go all the way to "engine10" if needed by adding the next consecutive label. (ie. "radio4=")
- Use only the module name not link (ie. "Krupp M301" not "[[Module list: Engines|Krupp M301]]")
- Add relevant module info in moduleInfo
Template
{{Modules |isSPGorTD= |gun1= |gun1Info= |gun2= |gun2Info= |gun3= |gun3Info= |turret1= |turret1Info= |turret2= |turret2Info= |turret3= |turret3Info= |engine1= |engine1Info= |engine2= |engine2Info= |engine3= |engine3Info= |suspension1= |suspension1Info= |suspension2= |suspension2Info= |suspension3= |suspension3Info= |radio1= |radio1Info= |radio2= |radio2Info= |radio3= |radio3Info= }}
Category: