Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(fixed ammunition formatting)
(minor bugfix for pages using this to get info of other pages)
 
(One intermediate revision by the same user not shown)
Line 235: Line 235:
 
   }}  
 
   }}  
 
|-
 
|-
{{#if: {{#show: {{#var: source}} |?Ammunition }} |
+
{{#if: {{GetAmmunition | source = {{#var: source}} }} |
 
{{!}}Ammunition
 
{{!}}Ammunition
{{!}} {{#vardefine: string | {{#explode: {{#sub: {{#show: {{#var: source}} |?Ammunition}} | 3 }} | {{!}} | 0 }} }}{{#vardefine: i | 0 }}{{#vardefine: continue | true}}<!--
+
{{!}} {{GetAmmunition | source = {{#var: source}} }}
  -->{{#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}} }}<!--
 
  -->}}  
 
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Latest revision as of 01:13, 24 October 2019












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