Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(format)
(fixed ammunition formatting)
Line 237: Line 237:
 
{{#if: {{#show: {{#var: source}} |?Ammunition }} |
 
{{#if: {{#show: {{#var: source}} |?Ammunition }} |
 
{{!}}Ammunition
 
{{!}}Ammunition
{{!}} {{#ask: [[{{#var: source}}]] |?Ammunition | format = list | link = all | sep = <nowiki>, </nowiki> | headers = hide | mainlabel = -}}
+
{{!}} {{#vardefine: string | {{#explode: {{#sub: {{#show: {{#var: source}} |?Ammunition}} | 3 }} | {{!}} | 0 }} }}{{#vardefine: i | 0 }}{{#vardefine: continue | true}}<!--
 +
  -->{{#while:
 +
        | {{#var: continue}}
 +
        | {{#vardefine: exploded | {{#explode: {{#var: string}} | , | {{#var: i}} }} }}<!--
 +
      -->{{#if: {{#var: exploded}} | {{#vardefine: continue | true}}[[{{#var: exploded}}]]<br> | {{#vardefine: continue |}} }}<!--
 +
      -->{{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}<!--
 +
  -->}}  
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Revision as of 12:29, 22 October 2019












This template is designed for being used inside Template:InfoOverview. It adds information on equippable Items to the general info overview