Changes

1,377 bytes added ,  19:53, 22 April 2017
Show tiller profession prices in 2nd column, next to base prices (if only profession = tiller)
Line 76: Line 76:  
         |{{{edibility}}}
 
         |{{{edibility}}}
 
         |{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }} }} }}     
 
         |{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }} }} }}     
}}{{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
+
}}
 +
{{#ifeq:{{lc:{{{profession|}}}}} | tiller
 +
|<!-- Tiller Profession only -->
 +
    {{!}}-
 +
    {{!}}colspan="4" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 +
    {{!}}-
 +
    {{!}}id="infoboxsection"{{!}}Base Price:
 +
    {{!}}id="infoboxsection"{{!}}[[File:Tiller.png|24px|link=]] Tiller Profession<br />''(+10% 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}} }}
 +
                              }}
 +
                            }}
 +
    <!-- Tiller Profession Prices -->
 +
    {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 +
    | {{price| {{#expr:trunc({{{sellprice|0}}}*(1.1))}} }}
 +
    | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:trunc({{{sellprice|0}}}*(1.1))}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
 +
    }}
 +
  }}
 +
<!-- Other than just Tiller profession -->
 +
|{{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
 
     {{!}}-
 
     {{!}}-
 
     {{!}}colspan=2 id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
     {{!}}colspan=2 id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
}}}}
 
}}}}
|-
+
{{!}}-
|id="infoboxsection"|{{#ifeq:{{#arrayprint:qualities to show}}|normal
+
{{!}}id="infoboxsection"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
   |Sell Price:
 
   |Sell Price:
 
   |{{#if:{{{profession|}}}|Base Price:|Sell Price:}}
 
   |{{#if:{{{profession|}}}|Base Price:|Sell Price:}}
  }}
+
}}
|id="infoboxdetail"|{{#if:{{{sellprice|}}}
+
{{!}}id="infoboxdetail"{{!}}{{#if:{{{sellprice|}}}
 
| {{#iferror:{{#expr:{{{sellprice|0}}}>0}}
 
| {{#iferror:{{#expr:{{{sellprice|0}}}>0}}
 
   | {{{sellprice|}}}
 
   | {{{sellprice|}}}
Line 110: Line 135:  
     }}}}<nowiki/>
 
     }}}}<nowiki/>
 
     {{!}}-
 
     {{!}}-
     {{!}}id="infoboxsection"{{!}}{{#ifexist:File:{{ucfirst:@@@}}.png|{{#switch:{{ucfirst:@@@}}|Tapper=[[File:Tapper Icon.png|24px|link=]]|Blacksmith=[[File:Blacksmith Icon.png|24px|link=]]|Angler=[[File:Angler Icon.png|24px|link=]]|#default=[[File:{{ucfirst:@@@}}.png|24px|link=]]}}|}} @@@ Profession:''<br /><span style="white-space: nowrap; padding-right: 5px;">(+{{#expr:{{#arrayprint:prof_mod}} *100}}% Sell Price)''</span>
+
     {{!}}id="infoboxsection"{{!}}{{#ifexist:File:{{ucfirst:@@@}}.png|{{#switch:{{ucfirst:@@@}}|Tapper=[[File:Tapper Icon.png|24px|link=]]|Blacksmith=[[File:Blacksmith Icon.png|24px|link=]]|Angler=[[File:Angler Icon.png|24px|link=]]|#default=[[File:{{ucfirst:@@@}}.png|24px|link=]]}}|}} {{ucfirst:@@@}} Profession:''<br /><span style="white-space: nowrap; padding-right: 5px;">(+{{#expr:{{#arrayprint:prof_mod}} *100}}% Sell Price)''</span>
 
     {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
     {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
     | {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }}
 
     | {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }}
Line 117: Line 142:  
   }}
 
   }}
 
}}
 
}}
 +
}}<!-- end if tiller only -->
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
|fruit|fruits|vegetable|vegetables|wheat|hops|honey=
 
|fruit|fruits|vegetable|vegetables|wheat|hops|honey=
106,448

edits