Changes

Jump to navigation Jump to search
138 bytes added ,  18:53, 24 September 2020
m
allow vegetable/fruit translations; more obscure link magic
Line 25: Line 25:  
-->{{#arraydefine:$lang_trapper_ingredients  | Trapper Profession Ingredients }}<!--
 
-->{{#arraydefine:$lang_trapper_ingredients  | Trapper Profession Ingredients }}<!--
 
-->{{#arraydefine:$lang_produces      | Produces }}<!--
 
-->{{#arraydefine:$lang_produces      | Produces }}<!--
 +
-->{{ParseInputValues|code=itype||
 +
,vegetable,vegetable,vegetables,
 +
,fruit,fruit,fruits,
 +
}}<!--
    
-->{{#arraydefine:$engl_artisangoods  | Artisan Goods }}<!--
 
-->{{#arraydefine:$engl_artisangoods  | Artisan Goods }}<!--
Line 106: Line 110:  
         | prof    = Base {{#if:{{{profession|}}} |, {{{profession|}}}}}
 
         | prof    = Base {{#if:{{{profession|}}} |, {{{profession|}}}}}
 
         | item    = {{{eng|{{{name|{{PAGENAME}}}}}}}}
 
         | item    = {{{eng|{{{name|{{PAGENAME}}}}}}}}
         | link    = {{{name|{{PAGENAME}}}}}
+
         | link    =
 
         | price  = {{{sellprice|}}}
 
         | price  = {{{sellprice|}}}
 
         | quality = {{#arrayprint:$quality}}
 
         | quality = {{#arrayprint:$quality}}
         | ncolumns = {{{price_ncols|}}}
+
         | ncolumns= {{{price_ncols|}}}
 
       }}<!--
 
       }}<!--
   Line 121: Line 125:  
               | prof      = {{#if:{{{artisan_prof|}}}| {{{artisan_prof}}} | Base,Artisan}}
 
               | prof      = {{#if:{{{artisan_prof|}}}| {{{artisan_prof}}} | Base,Artisan}}
 
               | artisan  = true
 
               | artisan  = true
               | link      = {{{artisan_link|}}}
+
               | link      = {{{artisan_link|{{{artisan_item}}}}}}
 
               | price    = {{{artisan_price|0}}}
 
               | price    = {{{artisan_price|0}}}
 
               | quality  = {{{artisan_qual|}}}
 
               | quality  = {{{artisan_qual|}}}
 
               | srcprice  = {{{sellprice|}}}
 
               | srcprice  = {{{sellprice|}}}
               | ncolumns = {{{artisan_ncols|}}}
+
               | ncolumns = {{{artisan_ncols|}}}
 
               | auto      = true
 
               | auto      = true
 
             }}<!--
 
             }}<!--
Line 134: Line 138:  
// (Infosection price will recognize some key item names, such as Wine, Juice, Jelly, Pickles, but doing more than that is insane)
 
// (Infosection price will recognize some key item names, such as Wine, Juice, Jelly, Pickles, but doing more than that is insane)
 
-->
 
-->
           | {{#switch:{{lc:{{{type|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}}
+
           | {{#switch:{{ParseInputValues|code=itype|{{{type|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}|case=lc|default=true}}
 
   |sunflower = {{Infosection price|prof=base        |artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Oil              |price=100 |quality=normal}}
 
   |sunflower = {{Infosection price|prof=base        |artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Oil              |price=100 |quality=normal}}
 
   |hops      = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Pale Ale,Pickles |price=300}}
 
   |hops      = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Pale Ale,Pickles |price=300}}

Navigation menu