Bienvenue sur le Wiki de Wargaming.net !
Variantes

Modèle:Radio : Différence entre versions

Aller à : navigation, rechercher
Version du 21 janvier 2011 à 23:03Version actuelle en date du 30 octobre 2014 à 10:50
76 versions
 
47 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:GER flag.png|60px|link=|]] German Radios}}|usa={{#vardefine:nt|[[image:USA flag.png|60px|link=|]] American Radios}}|ussr={{#vardefine:nt|[[image:SOV flag.png|60px|link=|]] Soviet Radios}}|#default={{#vardefine:nt|Radios}}}}</div>+{{#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>Tier</th>+ <th style="min-width:55px">Tier</th>
? <th>Name</th>+ <th style="min-width:70px">Name</th>
? <th>Signal Range</th>+ <th style="min-width:115px">Signal Range</th>
? <th>Price</th>+ <th style="min-width:85px">Price</th>
? <th>Weight</th>+ <th style="min-width:75px">Weight</th>
? <th class="unsortable" style="width:50%">Compatibility</th>+ <th class="unsortable" style="max-width:50%">Compatibility</th>
  </tr>  </tr>
?{{#while:+{{#while:|{{#if:{{{{{#var:i}}|}}}|true}}
? |{{#if:{{{r{{#var:i}}|}}}|true}}+ |{{#if:{{#explode:{{{{{#var:i}}|}}}|,|6}}|<tr><td><p class="error">too many variables</p></td></tr>|
? |{{#if:{{#explode:{{{r{{#var:i}}}}}|,|6}}|<tr><td></td><td><p class="error">too many variables</p></td></tr>|+ {{#if:{{#explode:{{{{{#var:i}}|}}}|,|5}}
? {{#if:{{#explode:{{{r{{#var:i}}}}}|,|5}}|+ |{{#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}}}}
? {{#switch:{{#explode:{{{r{{#var:i}}}}}|,|0}}|1={{#vardefine:tr|I}}|2={{#vardefine:tr|II}}|3={{#vardefine:tr|III}}|4={{#vardefine:tr|IV}}|5={{#vardefine:tr|V}}|6={{#vardefine:tr|VI}}|7={{#vardefine:tr|VII}}|8={{#vardefine:tr|VIII}}|9={{#vardefine:tr|IX}}|10={{#vardefine:tr|X}}|#default={{#vardefine:tr|error}}}}+ {{#vardefine:nm|{{#explode:{{{{{#var:i}}|}}}|,|0}}}}
? {{#vardefine:nm|{{#explode:{{{r{{#var:i}}}}}|,|1}}}}+ {{#vardefine:sg|{{#explode:{{{{{#var:i}}|}}}|,|2}}}}
? {{#vardefine:sg|{{#explode:{{{r{{#var:i}}}}}|,|2}}}}+ {{#vardefine:pr|{{#explode:{{{{{#var:i}}|}}}|,|3}}}}
? {{#vardefine:pr|{{#explode:{{{r{{#var:i}}}}}|,|3}}}}+ {{#vardefine:wt|{{#explode:{{{{{#var:i}}|}}}|,|4}}}}
? {{#vardefine:wt|{{#explode:{{{r{{#var:i}}}}}|,|4}}}}+ {{#vardefine:cm|{{#explode:{{{{{#var:i}}|}}}|,|5}}}}
? {{#vardefine:cm|{{#explode:{{{r{{#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>{{#var:sg}}<span style="color:gray">(m)</span></center></td>+ <td><center><span style="display:none">{{padleft:{{#var:sg}}|4|0}} </span>{{#var:sg}}<span style="color:gray"> m</span></center></td>
? <td><center>{{#var:pr}}[[image:Credits.png|link=|right|]]</center></td>+ {{#ifeq:{{#var:pr}}|premium
? <td><center>{{#var:wt}}<span style="color:gray">(kg)</span></center></td>+ |<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>
  }}}}  }}}}
  {{#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 s# to how ever many modules you need.+*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.
?*nation = nation tree the module panel belongs to, acceptable: "Germany" "USA" "USSR"+**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)
?*name = name of the module+**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
?*traverse speed = traverse speed of the suspension in degrees per second, do not include "(deg/sec)"+**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 vehicles the module is compatible with, use internal wiki link format to link to the tank, do not separate with commas+
  
 ==Template== ==Template==
 <pre> <pre>
 {{Radio|nation= {{Radio|nation=
?<!--|r1 = tier, name, signal range, price, weight, compatibility-->+<!--|name, tier, signal range, price, weight, compatibility-->
?|r1 = tier, name, signal range, price, weight, compatibility+|name, tier, signal range, price, weight, compatibility
 }} }}
 </pre> </pre>
? 
? 
  
 [[Category:C/P Templates]] [[Category:C/P Templates]]
?__NOTOC__ 
 </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 :