Modèle:Radio : Différence entre versions
Version du 27 janvier 2011 à 16:36 | Version actuelle en date du 30 octobre 2014 à 10:50 76 versions | |||
18 révisions intermédiaires par 5 utilisateurs non affichées | ||||
Ligne 1 : | Ligne 1 : | |||
? | <div style="display:none"> | + | <includeonly><div style="display:none"> | |
{{#vardefine:nt|{{lc:{{{nation}}}}}}} | {{#vardefine:nt|{{lc:{{{nation}}}}}}} | |||
{{#vardefine:i|1}} | {{#vardefine:i|1}} | |||
Ligne 8 : | Ligne 8 : | |||
{{#vardefine:wt|0}} | {{#vardefine:wt|0}} | |||
{{#vardefine:cm|0}} | {{#vardefine:cm|0}} | |||
? | {{#switch:{{#var:nt}}|germany={{#vardefine:nt|[[image: | + | {{#switch:{{#var:nt}}|usa={{#vardefine:nt|[[image:Graffiti_stickers_usa_A.png|40px|link=|]] American Radios}}|germany={{#vardefine:nt|[[image:Graffiti_stickers_germany_S.png|40px|link=|]] German Radios}}|france={{#vardefine:nt|[[image:Graffiti_stickers_france_A.png|40px|link=|]] French Radios}}|ussr={{#vardefine:nt|[[image:Graffiti_stickers_ussr_S.png|40px|link=|]] Soviet Radios}}|china={{#vardefine:nt|[[image:Graffiti_stickers_china.png|40px|link=|]] Chinese Radios}}|uk={{#vardefine:nt|[[image:Graffiti_stickers_uk.png|40px|link=|]] British Radios}}|#default={{#vardefine:nt|Radios}}}}</div> | |
<div id="Panel" class="ModuleList"> | <div id="Panel" class="ModuleList"> | |||
<h3>{{#var:nt}}</h3> | <h3>{{#var:nt}}</h3> | |||
? | <table class="sortable"> | + | <table class="sortable" style="text-indent:0;"> | |
<tr class="titlebar"> | <tr class="titlebar"> | |||
<th style="min-width:55px">Tier</th> | <th style="min-width:55px">Tier</th> | |||
<th style="min-width:70px">Name</th> | <th style="min-width:70px">Name</th> | |||
? | <th style="min-width: | + | <th style="min-width:115px">Signal Range</th> | |
? | <th style="min-width: | + | <th style="min-width:85px">Price</th> | |
<th style="min-width:75px">Weight</th> | <th style="min-width:75px">Weight</th> | |||
<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}}|}}}|,|6}}|<tr><td><p class="error">too many variables</p></td></tr>| | |
? | {{#if:{{#explode:{{{ | + | {{#if:{{#explode:{{{{{#var:i}}|}}}|,|5}} | |
? | |{{#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:sg|{{#explode:{{{ | + | {{#vardefine:sg|{{#explode:{{{{{#var:i}}|}}}|,|2}}}} | |
? | {{#vardefine:pr|{{#explode:{{{ | + | {{#vardefine:pr|{{#explode:{{{{{#var:i}}|}}}|,|3}}}} | |
? | {{#vardefine:wt|{{#explode:{{{ | + | {{#vardefine:wt|{{#explode:{{{{{#var:i}}|}}}|,|4}}}} | |
? | {{#vardefine:cm|{{#explode:{{{ | + | {{#vardefine:cm|{{#explode:{{{{{#var:i}}|}}}|,|5}}}} | |
<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><b>{{#var:nm}}</b></center></td> | + | <td><center><div id="{{#var:nm}}"></div><b>{{#var:nm}}</b></center></td> | |
? | <td><center><span style="display:none">{{padleft:{{#var:sg}}|4|0}} </span>{{#var:sg}}<span style="color:gray"> | + | <td><center><span style="display:none">{{padleft:{{#var:sg}}|4|0}} </span>{{#var:sg}}<span style="color:gray"> m</span></center></td> | |
? | <td><center><span style="display:none">{{padleft:{{#var:pr}}| | + | {{#ifeq:{{#var:pr}}|premium | |
? | <td><center><span style="display:none">{{padleft:{{#var:wt}}|4|0}} </span>{{#var:wt}}<span style="color:gray"> | + | |<td><center><span style="display:none">0 </span><span style="opacity:0.8">[[image:PremiumIcon.png|link=]]</span></center></td> | |
+ | |<td><center><span style="display:none">{{padleft:{{#var:pr}}|9|0}} </span>{{f2Num|{{#var:pr}}}}<span style="opacity:0.8"> [[image:Credits.png|link=|]]</span></center></td>}} | |||
+ | <td><center><span style="display:none">{{padleft:{{#var:wt}}|4|0}} </span>{{f2Num|{{#var:wt}}}}<span style="color:gray"> kg</span></center></td> | |||
<td>{{#var:cm}}</td></tr> | <td>{{#var:cm}}</td></tr> | |||
|<tr><td></td><td><p class="error">too few variables</p></td></tr> | |<tr><td></td><td><p class="error">too few variables</p></td></tr> | |||
Ligne 39 : | Ligne 41 : | |||
{{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | {{#vardefine:i|{{#expr:{{#var:i}}+1}}}} | |||
}} | }} | |||
? | </table> | + | </table></div>__NOTOC__ | |
? | </div> | + | </includeonly><noinclude> | |
? | + | |||
? | <noinclude> | + | ||
==Notes== | ==Notes== | |||
*If you have too few or too many variables the module name will be in red. | *If you have too few or too many variables the module name will be in red. | |||
? | *Continue to add | + | *Continue to add | (pipes) to how ever many modules you need. | |
+ | *nation = nation tree the module panel belongs to, acceptable: "Germany" "USA" "USSR" | |||
*Place variables in order, separated by a comma. | *Place variables in order, separated by a comma. | |||
? | * | + | **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) | |
? | * | + | **signal range = the rnge of the radio signal, in meters, do not include "(m)" | |
? | *signal range = the rnge of the radio signal, in meters, do not include "(m)" | + | **price = price of the module, in credits | |
? | * | + | **weight = weight of the module, in kilograms, do not include "(kg)" | |
? | *price = price of the module, in credits | + | **compatibility = the vehicle(s) the module is compatible with, arranged by tier, then alphabetically, use <nowiki>{{Link|"exact pagename"}}</nowiki>. | |
? | *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 | + | ||
==Template== | ==Template== | |||
<pre> | <pre> | |||
{{Radio|nation= | {{Radio|nation= | |||
? | <!--| | + | <!--|name, tier, signal range, price, weight, compatibility--> | |
? | | | + | |name, tier, signal range, price, weight, compatibility | |
}} | }} | |||
</pre> | </pre> | |||
? | ||||
? | ||||
[[Category:C/P Templates]] | [[Category:C/P Templates]] | |||
? | ||||
</noinclude> | </noinclude> |
Version actuelle en date du 30 octobre 2014 à 10:50
Notes
- If you have too few or too many variables the module name will be in red.
- Continue to add | (pipes) to how ever many modules you need.
- nation = nation tree the module panel belongs to, acceptable: "Germany" "USA" "USSR"
- Place variables in order, separated by a comma.
- name = name of the module
- tier = tier of the module, acceptable only numbers(1,2,..,10)
- signal range = the rnge of the radio signal, in meters, do not include "(m)"
- 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 {{Link|"exact pagename"}}.
Template
{{Radio|nation= <!--|name, tier, signal range, price, weight, compatibility--> |name, tier, signal range, price, weight, compatibility }}
Catégorie :