Difference between revisions of "Template:ItemPreviewRow"

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

Revision as of 08:49, 13 August 2018



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