Difference between revisions of "Template:Consumable AmmunitionPropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(removed unused (and unknown) tiers)
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
| {{#while:
 
| {{#while:
 
     | {{#ifexpr: {{#var: i}} < {{#var: maxTier}} | true }}
 
     | {{#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}} }}
+
     | {{#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:
 
       {{#ask:
 
         [[Ammunition::{{PAGENAME}}]] [[LevelEquipRequirement::{{#var: searchTier}}]]
 
         [[Ammunition::{{PAGENAME}}]] [[LevelEquipRequirement::{{#var: searchTier}}]]
 
         | format=list
 
         | format=list
         | intro=[[Nomenclature|T{{#var: i}}]]{{#if: {{#var: bookEmoticon}} | <nowiki> </nowiki>({{Emoticon|emoticon={{#var: bookEmoticon}}}}) }}:<nowiki> </nowiki>
+
         | intro=[[Nomenclature#Equipment|T{{#var: i}}]]{{#if: {{#var: bookEmoticon}} | <nowiki> </nowiki>({{Emoticon|emoticon={{#var: bookEmoticon}}}}) }}:<nowiki> </nowiki>
 
         | outro=<br>
 
         | outro=<br>
 
       }}
 
       }}
Line 18: Line 26:
 
   }}
 
   }}
 
|-
 
|-
| Tradeable (Exchange)
+
|Tradeable (Exchange)
| {{#show: {{PAGENAME}} |?BoolExchange}}
+
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolExchange}} | true | yes | no}}
 
|-
 
|-
| Tradeable (Auction)
+
|Tradeable (Auction)
| {{#show: {{PAGENAME}} |?BoolAuction}}
+
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction}} | true | yes | no}}
 
|-
 
|-
 
|Shop prices (buy / sell)
 
|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}} | {{#if: {{#show: {{PAGENAME}} |?ShopBuyPrice}} | {{#ifexpr: {{#show: {{PAGENAME}} |?ShopBuyPrice}} < 4 | 0{{Emoticon|emoticon=Gold}} | ''Can't be sold'' }} | ''Can't be sold'' }} }}
+
| {{#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