Difference between revisions of "Template:ItemPreviewRow"

From ChatWars Wiki
Jump to: navigation, search
Line 15: Line 15:
 
   }}
 
   }}
 
| <code>{{#show: {{PageLink_to_Name|page={{{1}}} }} |?ItemID }}</code>
 
| <code>{{#show: {{PageLink_to_Name|page={{{1}}} }} |?ItemID }}</code>
| {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} | {{#ifexpr: {{#expr: {{formatnum: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }}|R}} > 0}} | [[Shop|Castle Shop]] }} }}{{#ifeq: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?BoolAuction }} | true | {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} | {{#ifexpr: {{#expr: {{formatnum: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }}|R}} > 0}} | ,<nowiki> </nowiki> }} }} [[Auction]] }}{{#ifeq: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?BoolCraft }} | true | {{#ifeq: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?BoolAuction }} | true | ,<nowiki> </nowiki> }} [[Advanced Crafting]] }}
+
| {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }}
 +
    | {{#ifexpr: {{#expr: {{formatnum: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }}|R}} > 0}}
 +
        | [[Shop|Castle Shop]]
 +
      }}
 +
  }}<!--
 +
-->{{#ifeq: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?BoolAuction }} | true
 +
    | {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }}
 +
        | {{#ifexpr: {{#expr: {{formatnum: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }}|R}} > 0}}
 +
            | ,<nowiki> </nowiki>
 +
          }}
 +
      }} [[Auction]]
 +
  }}<!--
 +
-->{{#ifeq: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?BoolCraft }} | true
 +
    | {{#ifeq: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?BoolAuction }} | true
 +
        | ,<nowiki> </nowiki>
 +
      }} [[Advanced Crafting]]
 +
  }}
 
| {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} {{Emoticon|emoticon=Gold}} | - }}
 
| {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} {{Emoticon|emoticon=Gold}} | - }}
 
|-
 
|-

Revision as of 10:12, 13 August 2018



This is a template for formatting one row (item) of the item overview (eg: List of all swords in Sword)