Difference between revisions of "Template:ItemPreviewRow"

From ChatWars Wiki
Jump to: navigation, search
Line 5: Line 5:
 
| +{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Defense }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Defense }} | ? }} {{Emoticon|emoticon=Defend}}
 
| +{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Defense }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Defense }} | ? }} {{Emoticon|emoticon=Defend}}
 
| +{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Mana }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Mana }} | ? }} {{Emoticon|emoticon=Mana}}
 
| +{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Mana }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Mana }} | ? }} {{Emoticon|emoticon=Mana}}
{{#if: {{{6|}}} | {{!}} {{{6}}} }}<!--
+
{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ArmorClass }} | {{!}} {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ArmorClass }} }}<!--
-->{{#if: {{{7|}}} | {{!}} {{{7}}} }}
+
-->{{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }} | {{!}} {{#show: {{PageLink_to_Name|page={{{1}}} }} |?Ammunition }} }}
| {{#switch: {{{8}}}
+
| {{#switch: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?LevelEquipRequirement }}
 
     | 0 = -
 
     | 0 = -
 
     | 15 = {{Emoticon|emoticon=Bookred}}
 
     | 15 = {{Emoticon|emoticon=Bookred}}
Line 14: Line 14:
 
     | #default = ?
 
     | #default = ?
 
   }}
 
   }}
| <code>{{{9}}}</code>
+
| <code>{{#show: {{PageLink_to_Name|page={{{1}}} }} |?ItemID }}</code>
| {{#if: {{{12|}}} | {{#ifexpr: {{#expr: {{formatnum: {{{12|}}}|R}} > 0}} | [[Shop|Castle Shop]] }} }}{{#ifeq: {{{10|}}} | true | {{#if: {{{12|}}} | {{#ifexpr: {{#expr: {{formatnum: {{{12|}}}|R}} > 0}} | ,<nowiki> </nowiki> }} }} [[Auction]] }}{{#ifeq: {{{11|}}} | true | {{#ifeq: {{{10|}}} | 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: {{{12|}}} | {{{12}}} {{Emoticon|emoticon=Gold}} | - }}
+
| {{#if: {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} | {{#show: {{PageLink_to_Name|page={{{1}}} }} |?ShopBuyPrice }} {{Emoticon|emoticon=Gold}} | - }}
 
|-
 
|-
 
</includeonly>
 
</includeonly>

Revision as of 10:01, 13 August 2018



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