Difference between revisions of "Template:ItemPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(fixed ammunition formatting)
(updated to use Template:GetAmmunition instead of using own code (code just moved there))
Line 235: Line 235:
 
   }}  
 
   }}  
 
|-
 
|-
{{#if: {{#show: {{#var: source}} |?Ammunition }} |
+
{{#if: {{GetAmmunition | source = {{PAGENAME}} }} |
 
{{!}}Ammunition
 
{{!}}Ammunition
{{!}} {{#vardefine: string | {{#explode: {{#sub: {{#show: {{#var: source}} |?Ammunition}} | 3 }} | {{!}} | 0 }} }}{{#vardefine: i | 0 }}{{#vardefine: continue | true}}<!--
+
{{!}} {{GetAmmunition | source = {{PAGENAME}} }}
  -->{{#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 02:10, 24 October 2019












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