Difference between revisions of "Template:ItemPreviewRow"

From ChatWars Wiki
Jump to: navigation, search
Line 5: Line 5:
 
| +{{#if: {{{4|}}} | {{{4}}} | ? }} {{Emoticon|emoticon=Defend}}
 
| +{{#if: {{{4|}}} | {{{4}}} | ? }} {{Emoticon|emoticon=Defend}}
 
| +{{#if: {{{5|}}} | {{{5}}} | ? }} {{Emoticon|emoticon=Mana}}
 
| +{{#if: {{{5|}}} | {{{5}}} | ? }} {{Emoticon|emoticon=Mana}}
| {{#switch: {{{6}}}
+
| {{#switch: {{{7}}}
 
     | 0 = -
 
     | 0 = -
 
     | 15 = {{Emoticon|emoticon=Bookred}}
 
     | 15 = {{Emoticon|emoticon=Bookred}}
Line 12: Line 12:
 
     | #default = ?
 
     | #default = ?
 
   }}
 
   }}
| <code>{{{7}}}</code>
+
| <code>{{{8}}}</code>
| {{#if: {{{10|}}} | {{#ifexpr: {{#expr: {{formatnum: {{{10|}}}|R}} > 0}} | [[Shop|Castle Shop]] }} }}{{#ifeq: {{{8|}}} | true | {{#if: {{{10|}}} | {{#ifexpr: {{#expr: {{formatnum: {{{10|}}}|R}} > 0}} | ,<nowiki> </nowiki> }} }} [[Auction]] }}{{#ifeq: {{{9|}}} | true | {{#ifeq: {{{8|}}} | true | ,<nowiki> </nowiki> }} [[Advanced Crafting]] }}
+
| {{#if: {{{11|}}} | {{#ifexpr: {{#expr: {{formatnum: {{{11|}}}|R}} > 0}} | [[Shop|Castle Shop]] }} }}{{#ifeq: {{{9|}}} | true | {{#if: {{{11|}}} | {{#ifexpr: {{#expr: {{formatnum: {{{10|}}}|R}} > 0}} | ,<nowiki> </nowiki> }} }} [[Auction]] }}{{#ifeq: {{{10|}}} | true | {{#ifeq: {{{9|}}} | true | ,<nowiki> </nowiki> }} [[Advanced Crafting]] }}
| {{#if: {{{10|}}} | {{{10}}} {{Emoticon|emoticon=Gold}} | - }}
+
| {{#if: {{{11|}}} | {{{11}}} {{Emoticon|emoticon=Gold}} | - }}
 
|-
 
|-
 
</includeonly>
 
</includeonly>

Revision as of 12:36, 30 July 2018



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