Difference between revisions of "Template:Consumable AmmunitionPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(Created page with "<includeonly> | Used by | {{#ask: [[Ammunition::{{PAGENAME}}]] | format=list }} |- </includeonly> <noinclude> This template is designed for being used inside Template:InfoO...")
 
(removed unused (and unknown) tiers)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{#vardefine: i | 0 }}
 +
{{#vardefine: maxTier | 10}}
 +
{{#vardefine: searchTier | }}
 +
{{#vardefine: bookEmoticon | }}
 
<includeonly>
 
<includeonly>
 
| Used by
 
| Used by
| {{#ask: [[Ammunition::{{PAGENAME}}]] | format=list }}
+
| {{#while:
 +
    | {{#ifexpr: {{#var: i}} < {{#var: maxTier}} | true }}
 +
    | {{#switch: {{#var: i}}
 +
        | 0 = {{#vardefine: searchTier | 0}}{{#vardefine: bookEmoticon | }}
 +
        | 1 = {{#vardefine: searchTier | 15}}{{#vardefine: bookEmoticon | Bookred}}
 +
        | 2 = {{#vardefine: searchTier | 25}}{{#vardefine: bookEmoticon | Bookgreen}}
 +
        | 3 = {{#vardefine: searchTier | 35}}{{#vardefine: bookEmoticon | Bookblue}}
 +
        | 4 = {{#vardefine: searchTier | 45}}{{#vardefine: bookEmoticon | Bookorange}}
 +
        | 5 = {{#vardefine: searchTier | 55}}{{#vardefine: bookEmoticon | Yellowpages}}
 +
        | #default = {{#vardefine: searchTier | -1}}
 +
      }}
 +
      {{#ask:
 +
        [[Ammunition::{{PAGENAME}}]] [[LevelEquipRequirement::{{#var: searchTier}}]]
 +
        | format=list
 +
        | intro=[[Nomenclature#Equipment|T{{#var: i}}]]{{#if: {{#var: bookEmoticon}} | <nowiki> </nowiki>({{Emoticon|emoticon={{#var: bookEmoticon}}}}) }}:<nowiki> </nowiki>
 +
        | outro=<br>
 +
      }}
 +
      {{#vardefine: i | {{#expr: {{#var: i}} + 1}} }}
 +
      {{#vardefine: bookEmoticon | }}
 +
  }}
 
|-
 
|-
 +
|Tradeable (Exchange)
 +
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolExchange}} | true | yes | no}}
 +
|-
 +
|Tradeable (Auction)
 +
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction}} | true | yes | no}}
 +
|-
 +
|Shop prices (buy / sell)
 +
| {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice}} | {{#show: {{PAGENAME}} |?ShopBuyPrice}}{{Emoticon|emoticon=Gold}} | ''Can't be bought''}} / {{#if: {{#show: {{PAGENAME}} |?ShopSellPrice}} | {{#show: {{PAGENAME}} |?ShopSellPrice}}{{Emoticon|emoticon=Gold}} | ''Can't be sold''}}
 
</includeonly>
 
</includeonly>
  

Latest revision as of 14:40, 22 October 2019




This template is designed for being used inside Template:InfoOverview. It adds information on Consumables of the type Ammunition to the general info overview