mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 283 : | Ligne 283 : | ||
-->}}<!-- |
-->}}<!-- |
||
− | -->{{#if:|<!-- disabling this part for now until Extension:Arrays works with MediaWiki 1.33 (see https://www.mediawiki.org/wiki/Topic:Vckr289fz0jyvhkw) |
||
-->{{#if:{{#var:ii:idprojectile}}{{#var:ii:ext:projectilename}}{{#var:ii:ext:projectileimage}}|<!-- |
-->{{#if:{{#var:ii:idprojectile}}{{#var:ii:ext:projectilename}}{{#var:ii:ext:projectileimage}}|<!-- |
||
--><div class="section projectile"><!-- div.section.projectile |
--><div class="section projectile"><!-- div.section.projectile |
||
Ligne 300 : | Ligne 299 : | ||
--></div><!-- |
--></div><!-- |
||
--><ul class="{{#if:{{#var:ii:ext:projectileblock}}|block|inline}}"><!-- |
--><ul class="{{#if:{{#var:ii:ext:projectileblock}}|block|inline}}"><!-- |
||
− | -->{{ |
+ | -->{{arraydefine|projectile_ids|{{#var:ii:idprojectile}}|,}}{{arrayprint|projectile_ids||ii:projectiles}}<!-- |
− | --><div class="name">{{tr|{{getProjectileInfo|@@@@|name}}}}</div><!-- |
||
− | --><div class="image">[[File:{{getProjectileInfo|@@@@|image}}|{{getProjectileInfo|@@@@|name}}|link=]]</div><!-- |
||
− | --></li>}}<!-- |
||
-->{{#if:{{#var:ii:ext:projectilename}}{{#var:ii:ext:projectileimage}}|<li><!-- |
-->{{#if:{{#var:ii:ext:projectilename}}{{#var:ii:ext:projectileimage}}|<li><!-- |
||
--><div class="name">{{tr|{{#var:ii:ext:projectilename}}}}</div><!-- |
--><div class="name">{{tr|{{#var:ii:ext:projectilename}}}}</div><!-- |
||
Ligne 310 : | Ligne 306 : | ||
--></ul><!-- |
--></ul><!-- |
||
--></div><!-- div.section.projectile |
--></div><!-- div.section.projectile |
||
− | -->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
⚫ | |||
− | -->{{#if:|<!-- disabling this part for now until Extension:Arrays works with MediaWiki 1.33 (see https://www.mediawiki.org/wiki/Topic:Vckr289fz0jyvhkw) |
||
⚫ | |||
--><div class="section statistics"><!-- |
--><div class="section statistics"><!-- |
||
--><div class="title">{{l10n|item_infobox|sounds}}</div><!-- |
--><div class="title">{{l10n|item_infobox|sounds}}</div><!-- |
||
--><table class="stat"><!-- |
--><table class="stat"><!-- |
||
− | -->{{ |
+ | -->{{arrayprint|ii:sounds||ii:sounds}}<!-- |
− | --><tr><!-- |
||
− | --><th>{{#explode:@@@@|@@}}</th><!-- "@@" is the delimiter between caption and sound file |
||
− | -->{{#vardefine:ii:sounds|{{#explode:@@@@|@@|1}}}}<!-- |
||
− | --><td><!-- |
||
− | -->{{#while:|{{#pos:{{#var:ii:sounds}}|,}}|<!-- iterate over all comma-separated sounds |
||
− | -->{{sound||{{trim|{{#explode:{{#var:ii:sounds}}|,}}}}}}<!-- print sound |
||
− | -->{{#vardefine:ii:sounds|{{#sub:{{#var:ii:sounds}}|{{#expr:{{#pos:{{#var:ii:sounds}}|,}}+1}}}}}}<!-- remove printed sound from list |
||
− | -->}}<!-- end of while |
||
− | -->{{sound||{{trim|{{#explode:{{#var:ii:sounds}}|,}}}}}}<!-- print last sound |
||
− | --></td><!-- |
||
− | --></tr><!-- |
||
− | -->}}<!-- |
||
--></table><!-- |
--></table><!-- |
||
--></div><!-- |
--></div><!-- |
||
− | -->}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Version du 16 décembre 2019 à 01:39
Default "infobox" view for {{item new infobox}}.