Changes

1,405 bytes added ,  21:16, 22 April 2017
display prices in 2 columns for cases where the only profession = Artisan
Line 101: Line 101:  
   }}
 
   }}
 
<!-- Other than just Tiller profession -->
 
<!-- Other than just Tiller profession -->
 +
|{{#ifeq:{{lc:{{{profession|}}}}} | artisan
 +
|<!-- Artisan Profession only -->
 +
    {{!}}-
 +
    {{!}}colspan="4" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 +
    {{!}}-
 +
    {{!}}id="infoboxsection"{{!}}Base Price:
 +
    {{!}}id="infoboxsection"{{!}}<span style="white-space: nowrap !important;">[[File:Artisan.png|24px|link=]] Artisan Profession</span><br />''(+40% Sell Price)''
 +
    {{!}}-
 +
    <!-- Base Prices -->
 +
    {{!}}id="infoboxdetail"{{!}}{{#if:{{{sellprice|}}}
 +
                            | {{#iferror:{{#expr:{{{sellprice|0}}}>0}}
 +
                            | {{{sellprice|}}}
 +
                            | {{#ifeq:{{#arrayprint:qualities to show}}|normal
 +
                              | {{price|{{{sellprice|0}}}}}
 +
                              | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|}}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
 +
                              }}
 +
                            }}
 +
    <!-- Artisan Profession Prices -->
 +
    {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 +
    | {{price| {{#expr:trunc({{{sellprice|0}}}*(1.4))}} }}
 +
    | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:trunc({{{sellprice|0}}}*(1.4))}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
 +
    }}
 +
  }}
 +
<!-- Other than just Artisan profession -->
 
|{{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
 
|{{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
 
     {{!}}-
 
     {{!}}-
Line 143: Line 167:  
}}
 
}}
 
}}<!-- end if tiller only -->
 
}}<!-- end if tiller only -->
 +
}}<!-- end if artisan only -->
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
|fruit|fruits|vegetable|vegetables|wheat|hops|honey=
 
|fruit|fruits|vegetable|vegetables|wheat|hops|honey=
105,900

edits