Difference between revisions of "Template:Engine"
Revision as of 17:17, 3 February 2011 | Revision as of 18:25, 3 February 2011 | |||
Line 22: | Line 22: | |||
<th class="unsortable" style="max-width:50%">Compatibility</th> | <th class="unsortable" style="max-width:50%">Compatibility</th> | |||
</tr> | </tr> | |||
? | {{#while:|{{#if:{{{ | + | {{#while:|{{#if:{{{{{#var:i}}|}}}|true}} | |
? | |{{#if:{{#explode:{{{ | + | |{{#if:{{#explode:{{{{{#var:i}}|}}}|,|7}}|<tr><td><p class="error">too many variables</p></td></tr>| | |
? | {{#if:{{#explode:{{{ | + | {{#if:{{#explode:{{{{{#var:i}}|}}}|,|6}} | |
? | |{{#switch:{{#explode:{{{ | + | |{{#switch:{{#explode:{{{{{#var:i}}|}}}|,|1}}|1={{#vardefine:tr|<span style="display:none">01</span>I}}|2={{#vardefine:tr|<span style="display:none">02</span>II}}|3={{#vardefine:tr|<span style="display:none">03</span>III}}|4={{#vardefine:tr|<span style="display:none">04</span>IV}}|5={{#vardefine:tr|<span style="display:none">05</span>V}}|6={{#vardefine:tr|<span style="display:none">06</span>VI}}|7={{#vardefine:tr|<span style="display:none">07</span>VII}}|8={{#vardefine:tr|<span style="display:none">08</span>VIII}}|9={{#vardefine:tr|<span style="display:none">09</span>IX}}|10={{#vardefine:tr|<span style="display:none">10</span>X}}|#default={{#vardefine:tr|error}}}} | |
? | {{#vardefine:nm|{{#explode:{{{ | + | {{#vardefine:nm|{{#explode:{{{{{#var:i}}|}}}|,|0}}}} | |
? | {{#vardefine:pw|{{#explode:{{{ | + | {{#vardefine:pw|{{#explode:{{{{{#var:i}}|}}}|,|2}}}} | |
? | {{#vardefine:cf|{{#explode:{{{ | + | {{#vardefine:cf|{{#explode:{{{{{#var:i}}|}}}|,|3}}}} | |
? | {{#vardefine:pr|{{#explode:{{{ | + | {{#vardefine:pr|{{#explode:{{{{{#var:i}}|}}}|,|4}}}} | |
? | {{#vardefine:wt|{{#explode:{{{ | + | {{#vardefine:wt|{{#explode:{{{{{#var:i}}|}}}|,|5}}}} | |
? | {{#vardefine:cm|{{#explode:{{{ | + | {{#vardefine:cm|{{#explode:{{{{{#var:i}}|}}}|,|6}}}} | |
<tr><td><center><span style="color:orange"><b>{{#var:tr}}</b></span></center></td> | <tr><td><center><span style="color:orange"><b>{{#var:tr}}</b></span></center></td> | |||
<td><center><div id="{{#var:nm}}"></div><b>{{#var:nm}}</b></center></td> | <td><center><div id="{{#var:nm}}"></div><b>{{#var:nm}}</b></center></td> | |||
Line 51: | Line 51: | |||
*Continue to add e# to how ever many modules you need. | *Continue to add e# to how ever many modules you need. | |||
*Place variables in order, separated by a comma. | *Place variables in order, separated by a comma. | |||
? | *name = name of the module | + | **name = name of the module | |
? | *tier = tier of the module, acceptable only numbers(1,2,..,10) | + | **tier = tier of the module, acceptable only numbers(1,2,..,10) | |
? | *power = the engine power, in horse power, do not include "(h.p.)" | + | **power = the engine power, in horse power, do not include "(h.p.)" | |
? | *chance of fire = the chance the engine will catch on fire if hit, in per cent, do not include "%" | + | **chance of fire = the chance the engine will catch on fire if hit, in per cent, do not include "%" | |
? | *price = price of the module, in credits | + | **price = price of the module, in credits | |
? | *weight = weight of the module, in kilograms, do not include "(kg)" | + | **weight = weight of the module, in kilograms, do not include "(kg)" | |
? | *compatibility = the | + | **compatibility = the vehicle(s) the module is compatible with, arranged by tier, then alphabetically, use the contour template <nowiki>{{contour|c="tank"}}</nowiki> see the contour template for notes. | |
==Template== | ==Template== |
Revision as of 18:25, 3 February 2011
Guns
Tier | Name | Power | Chance of Fire | Price | Weight | Compatibility |
---|
Notes
- If you have too few or too many variables the module name will be in red.
- Continue to add e# to how ever many modules you need.
- Place variables in order, separated by a comma.
- name = name of the module
- tier = tier of the module, acceptable only numbers(1,2,..,10)
- power = the engine power, in horse power, do not include "(h.p.)"
- chance of fire = the chance the engine will catch on fire if hit, in per cent, do not include "%"
- price = price of the module, in credits
- weight = weight of the module, in kilograms, do not include "(kg)"
- compatibility = the vehicle(s) the module is compatible with, arranged by tier, then alphabetically, use the contour template {{contour|c="tank"}} see the contour template for notes.
Template
{{Engine <!--|e1 = name, tier, power, chance of fire, price, weight, compatibility--> |e1 = name, tier, power, chance of fire, price, weight, compatibility }}
Category: