Difference between revisions of "Template:Infobox"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Option#2 for edibility calls: switch to better format using new template feature)
(Option #3: full revamp with most processing moved to Infosection_price)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
-->{{#arraydefine:qualities|normal,silver,gold|,|unique}}<!-- Excludes iridium, as it is currently handled by {{{iridium}}}. --><!--
+
// TRANSLATIONS
-->{{#arraydefine:qualities to show
+
// Essentially any text that gets displayed on the page should be defined here to make it easier to
  | {{#switch:{{{quality|true}}}
+
// port this template to other languages
     | true = normal, silver, gold, {{#ifeq:{{{iridium|true}}}|true|iridium}}
+
// If the text should be a link, provide entire link as part of the definition
    | false = normal
+
 
    | #default = normal, {{{quality|}}}, {{#ifeq:{{{iridium|true}}}|true|iridium}}
+
// NOTE: text displayed in infobox that is NOT defined here is generated by subtemplate
    }}
+
-->{{#arraydefine:$lang_information  | Information }}<!--
  |,|unique}}<!--
+
-->{{#arraydefine:$lang_source        | Source }}<!--
-->{{#arraydiff:qualities to hide|qualities|qualities to show}}<!--
+
-->{{#arraydefine:$lang_foundin      | Found in }}<!--
-->{{#if:{{{profession|}}} | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |}}<!--
+
-->{{#arraydefine:$lang_seed          | Seed }}<!--
-->{{#switch: {{NAMESPACE}}  
+
-->{{#arraydefine:$lang_growthtime    | Growth Time }}<!--
|{{ns:User}}|{{ns:User talk}}=  
+
-->{{#arraydefine:$lang_buffs        | Buff(s) }}<!--
 +
-->{{#arraydefine:$lang_buffduration  | Buff Duration }}<!--
 +
-->{{#arraydefine:$lang_fishingxp    | Fishing XP }}<!--
 +
-->{{#arraydefine:$lang_season        | Season }}<!--
 +
-->{{#arraydefine:$lang_healingeffect | Healing Effect }}<!--
 +
-->{{#arraydefine:$lang_artisangoods  | Artisan Goods }}<!--
 +
-->{{#arraydefine:$lang_crafting      | Crafting }}<!--
 +
-->{{#arraydefine:$lang_recipesource  | Recipe Source }}<!--
 +
-->{{#arraydefine:$lang_equipment     | Equipment }}<!--
 +
-->{{#arraydefine:$lang_processingtime| Processing Time }}<!--
 +
-->{{#arraydefine:$lang_timetocraft  | Time to Craft }}<!--
 +
-->{{#arraydefine:$lang_ingredients  | Ingredients }}<!--
 +
-->{{#arraydefine:$lang_trapper_ingredients  | Trapper Profession Ingredients }}<!--
 +
-->{{#arraydefine:$lang_produces      | Produces }}<!--
 +
 
 +
-->{{#arraydefine:$engl_artisangoods  | Artisan Goods }}<!--
 +
 
 +
// TODO: finalize how to handle test "does {{{source}}} contain artisan good"?
 +
// Primarily need to check whether it's OK that the english test now looks at plural (artisan goods) -- because that's
 +
// a term that's already being translated. If necessary, switch some pages to explicitly set is_artisan flag
 +
-->{{#arraydefine:$is_artisan|{{#if:{{{is_artisan|}}}
 +
      | {{#ifeq:{{{is_artisan|}}}|0|{{{is_artisan}}}}}
 +
      | {{#ifexpr: {{#pos:{{lc:{{{source|}}}}}|{{lc:{{#arrayprint:$lang_artisangoods}}}}|1}} or {{#pos:{{lc:{{{source|}}}}}|{{lc:{{#arrayprint:$engl_artisangoods}}}}|1}} |1}}
 +
}}}}<!--
 +
 
 +
// END of translations
 +
// Initialize array variables
 +
-->{{#arraydefine:$image_list|{{{image|}}}, {{{image2|}}}, {{{image3|}}}, {{{image4|}}}|,|unique}}<!--
 +
// If no images provided, fill in default names -- but default is different on english wiki than other wikis
 +
-->{{#ifexpr:{{#arraysize:$image_list}}<1|{{#arraydefine:$image_list|{{#ifeq:{{CONTENTLANG}}|en|{{PAGENAME}}|{{{eng|}}}}}}}}}<!--
 +
-->{{#arraydefine:$quality|{{ParseInputQuality|quality={{{quality|}}}|iridium={{{iridium|}}}|hide={{{hide|}}}}}}}<!--
 +
-->{{#switch: {{NAMESPACE}}
 +
|{{ns:User}}|{{ns:User talk}}=
 
|#default=<div id="infoboxborder">
 
|#default=<div id="infoboxborder">
 
{{{!}} id="infoboxtable"
 
{{{!}} id="infoboxtable"
 
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}}
 
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}}
 
{{!}}-
 
{{!}}-
{{!}}colspan="2" style="padding-bottom:5px; text-align: center;"{{!}}{{#ifexist:File:{{{image|{{PAGENAME}}.png}}}|[[File:{{{image|{{PAGENAME}}.png}}}]]|{{{image|}}}}}{{#ifeq:{{{image2spacing|}}}|true|&nbsp;&#32;&nbsp;|}}{{#ifexist:File:{{{image2|}}}|[[File:{{{image2|}}}]]|}}{{#ifexist:File:{{{image3|}}}|[[File:{{{image3|}}}]]|}}{{#ifexist:File:{{{image4|}}}|[[File:{{{image4|}}}]]|}}
+
{{!}}colspan="2" style="padding-bottom:5px; text-align: center;"{{!}}<!--
 +
 
 +
// Print all images by looping through all entries in $image_list array
 +
-->{{#arrayprint:$image_list||@image@|<!--
 +
// Add spacing after first image if requested
 +
-->{{#ifexpr:{{#iferror:{{#expr:{{#arraysearch:@image@}}>0}}|0}} and {{#if:{{{image2spacing|}}}|1|0}} |&nbsp;&#32;&nbsp;}}<!--
 +
// If image appears to already have a .png/.gif/.jpg/etc extension (i.e., if 4th-last character is .), don't want to add .png extension
 +
-->{{#ifeq:{{#sub:@image@|-4|1}}|.
 +
      | {{#ifexist:Media:@image@|[[File:@image@]]}}
 +
      | {{#ifexist:Media:@image@_{{uc:{{CONTENTLANG}}}}.png
 +
          | [[File:@image@_{{uc:{{CONTENTLANG}}}}.png]]
 +
  | {{#ifexist:Media:@[email protected]| [[File:@[email protected]]]}}
 +
}}}}}}<nowiki/>
 
{{!}}-
 
{{!}}-
{{!}}colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"{{!}}{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
+
{{!}}colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" {{!}} {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
 
{{!}}-
 
{{!}}-
{{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Information{{#if:{{{source|}}}|<nowiki/>
+
{{!}}colspan="2" id="infoboxsection" style="text-align:center;" {{!}} {{#arrayprint:$lang_information}} {{#if:{{{source|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Source:
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_source}}:
   {{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}}
+
   {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}}
|}}{{#if:{{{location|}}}|<nowiki/>
+
}}{{#if:{{{location|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Found in:
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}:
   {{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}}
+
   {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}}
|}}{{#if:{{{seed|}}}|<nowiki/>
+
}}{{#if:{{{seed|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Seed:
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_seed}}:
   {{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{seed|}}}|[[{{{seed|}}}]]|{{{seed|}}}}}
+
   {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{seed|}}}|[[{{{seed|}}}]]|{{{seed|}}}}}
|}}{{#if:{{{growth|}}}|<nowiki/>
+
}}{{#if:{{{growth|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Growth Time:
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_growthtime}}:
   {{!}}id="infoboxdetail"{{!}}{{{growth|}}}
+
   {{!}} id="infoboxdetail" {{!}} {{{growth|}}}
|}}{{#if:{{{buff|}}}|<nowiki/>
+
}}{{#if:{{{buff|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Buff(s):
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_buffs}}:
   {{!}}id="infoboxdetail"{{!}}{{{buff|}}}
+
   {{!}} id="infoboxdetail" {{!}} {{{buff|}}}
|}}{{#if:{{{buffduration|}}}|<nowiki/>
+
}}{{#if:{{{buffduration|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Buff Duration:
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_buffduration}}:
   {{!}}id="infoboxdetail"{{!}}{{duration|{{{buffduration|}}}}}
+
   {{!}} id="infoboxdetail" {{!}} {{duration|{{{buffduration|}}}}}
|}}{{#if:{{{season|}}}|<nowiki/>
+
}}{{#if:{{{season|}}}|<nowiki/>
 
   {{!}}-
 
   {{!}}-
   {{!}}id="infoboxsection"{{!}}Season:
+
   {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}}:
   {{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{season|}}}}}
+
   {{!}} id="infoboxdetail" {{!}} {{Season|{{{season}}}}}
      | spring | summer | fall | winter = [[File:{{ucfirst:{{lc:{{{season}}}}}}}.png|24px|link=]] [[{{ucfirst:{{lc:{{{season}}}}}}}]]
+
}}{{#if:{{{fishingxp|}}}|<nowiki />
      | all | any = All
+
  {{!}}-
      | [[spring]] = [[File:Spring.png|24px|link=]] [[Spring]]
+
  {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishingxp}}:
      | [[summer]] = [[File:Summer.png|24px|link=]] [[Summer]]
+
  {{!}} id="infoboxdetail"  {{!}} {{{fishingxp|}}}
      | [[winter]] = [[File:Winter.png|24px|link=]] [[Winter]]
+
}}{{#if:{{{edibility|}}}|<nowiki/>
      | [[fall]] = [[File:Fall.png|24px|link=]] [[Fall]]
+
  {{!}}-
      | #default = {{{season|}}}
+
<!--
 +
 
 +
// Display edibility. Use two-column format when many values: only if multiple qualities requested. But not if poison/inedible/0
 +
-->{{#ifexpr:{{#arraysize:$quality}}>1 and {{#iferror:{{#expr:{{{edibility|0}}}>0|0|1}}|0}} |<nowiki/>
 +
      {{!}} id="infoboxsection" colspan="2" style="text-align: center;" {{!}} {{#arrayprint:$lang_healingeffect}}
 +
      {{!}}-
 +
      {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{#arrayprint:$quality}} |statistics=Energy}}
 +
      {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{#arrayprint:$quality}} |statistics=Health}}
 +
    |<nowiki/>
 +
      {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_healingeffect}}:
 +
      {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{#arrayprint:$quality}}}}
 
}}}}<!--
 
}}}}<!--
-->{{#if:{{{fishingxp|}}}|<nowiki />
+
 
{{!}}-
+
// Display all item prices: Base price plus all professions listed in {{{profession}}}
{{!}}id="infoboxsection{{!}}Fishing XP:
+
// Subtemplate automatically decides how to handle multiple columns, etc.
{{!}}id="infoboxdetail{{!}}{{{fishingxp|}}}
+
-->{{Infosection price
|}}<!--
+
      | profession    = Base {{#if:{{{profession|}}} |, {{{profession|}}}}}
-->{{#if:{{{edibility|}}}|<nowiki/>
+
      | sellitem      = {{{eng|{{{name|{{PAGENAME}}}}}}}}
{{#ifeq:{{{quality|}}} | true | <!--hack to show health/energy values in 2 columns = set quality to true in infobox-->
+
      | alt_sellitem  = {{{name|{{PAGENAME}}}}}
{{!}}-
+
      | sellprice    = {{{sellprice|}}}
{{!}}id="infoboxsection" colspan="2" style="text-align: center;"{{!}}Healing Effect
+
      | quality      = {{#arrayprint:$quality}}
{{!}}-
+
}}<!--
{{!}}id="infoboxdetail"{{!}}{{Edibility|{{{edibility|}}}|quality={{{quality|true}}}|iridium={{{iridium|}}}|statistics=energy}}
+
 
{{!}}id="infoboxdetail"{{!}}{{Edibility|{{{edibility|}}}|quality={{{quality|true}}}|iridium={{{iridium|}}}|statistics=health}}
+
// Add display of products and their prices.
|<!-- if quality is not = true -->
+
// artisanitem is new parameter, that eventually should be able to move alot of the single-item-case data
{{!}}-
+
// onto the individual article pags.
{{!}}id="infoboxsection"{{!}}Healing Effect:
+
// If artisanitem provided, use it to generate the infosection.  Otherwise, fallback to old-style manual switch
{{!}}id="infoboxdetail"{{!}}{{#iferror:{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }}
+
-->{{#if:{{{artisanitem|}}}
        |{{{edibility}}}
+
      | {{Infosection price
        |{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }} }} }}
+
            | profession    = {{#if:{{{artisanprofession|}}}| {{{artisanprofession}}} | Base,Artisan}}
}}
+
            | artisan      = true
{{#switch:{{lc:{{{profession|}}}}}  
+
            | sourceprice  = {{{sellprice|}}}
| bear's knowledge =
+
            | sellitem      = {{{artisanitem}}}
    {{!}}-
+
            | lang_sellitem = {{{lang_artisanitem|}}}
    {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
+
            | sellprice    = {{{artisanprice|}}}
    {{!}}-
+
            | quality      = {{{artisanquality|}}}
    {{!}}id="infoboxsection"{{!}}Base Price:
+
        }}<--
    {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Bear's Knowledge.png|24px|link=]] Bear's Knowledge:<br />''(&times;3 Sell Price)''
+
 
    {{!}}-
+
// Manually define various artisanitem sections
    <!-- Base Prices -->
+
// One key reason to move these details onto the individual infobox pages is for sake of translation -- so that language-specific
    {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|}}}|iridium}}
+
// translations of sellitem can be provided outside of template namespace.
    <!-- Bear's Knowledge Prices -->
+
// (Infosection price will recognize some key item names, such as Wine, Juice, Jelly, Pickles, but doing more than that is insane)
    {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|}}}|prof_mult=3|iridium}}
+
-->
| spring onion mastery =
+
      | {{#switch:{{lc:{{{type|{{{eng|{{PAGENAME}}}}}}}}}}
    {{!}}-
+
  |sunflower = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Oil              |sellprice=100 |quality=normal}}
    {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
+
  |hops      = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Pale Ale,Pickles |sellprice=300,}}
    {{!}}-
+
  |wheat    = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Beer,Pickles    |sellprice=200,}}
    {{!}}id="infoboxsection"{{!}}Base Price:
+
  |honey    = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Mead            |sellprice=200 |iridium=true}}
    {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Spring Onion Mastery.png|24px|link=]] Spring Onion Mastery:<br />''(&times;5 Sell Price)''
+
  |corn      = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Juice,Pickles,Oil|sellprice=,,100|quality=normal}}
    {{!}}-
+
  |tea leaves={{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Green Tea,Pickles|sellprice=100, |quality=normal}}
    <!-- Base Prices -->
+
  |fruit
    {{!}}id="infoboxdetail"{{!}}{{Qualityprice|Spring Onion|{{{sellprice|}}}|iridium}}
+
  |fruits    = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Wine,Jelly      | iridium=true}}
    <!-- Spring Onion Mastery Prices -->
+
  |vegetables
    {{!}}id="infoboxdetail"{{!}}{{Qualityprice|Spring Onion|{{{sellprice|}}}|prof_mult=5|iridium}}
+
  |vegetable = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Juice,Pickles    | iridium=true}}
| tiller =
+
  |truffle  = {{Infosection price|profession=base,artisan|artisan=true|sourceprice={{{sellprice|}}}|sellitem=Truffle Oil|sellprice=1065|quality=normal}}
    {{!}}-
+
  |milk      = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Cheese |sellprice=230|iridium=true}}
    {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
+
  |large milk= {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Cheese |sellprice=230|iridium=true|hide=normal,silver}}
    {{!}}-
+
  |goat milk = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Goat Cheese |sellprice=400|iridium=true}}
    {{!}}id="infoboxsection"{{!}}Base Price:
+
  |large goat milk = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Goat Cheese |sellprice=400|iridium=true|hide=normal,silver}}
    {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Tiller.png|24px|link=]] Tiller Profession:<br />''(+10% Sell Price)''
+
  |wool      = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Cloth  |sellprice=470|quality=normal}}
    {{!}}-
+
  |duck egg  = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Duck Mayonnaise |sellprice=375|quality=normal}}
    <!-- Base Prices -->
+
  |egg      = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Mayonnaise |sellprice=190|quality=normal}}
     {{!}}id="infoboxdetail"{{!}}{{#if:{{{sellprice|}}}
+
  |dinosaur egg= {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Dinosaur Mayonnaise |sellprice=800|quality=normal}}
                            | {{#iferror:{{#expr:{{{sellprice|0}}}>0}}
+
  |large egg = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Mayonnaise |sellprice=190|hide=normal,silver}}
                            | {{{sellprice|}}}
+
  |void  egg = {{Infosection price|profession=base,rancher,artisan|artisan=true|sellitem=Void Mayonnaise |sellprice=275|quality=normal}}<!--
                            | {{#ifeq:{{#arrayprint:qualities to show}}|normal
+
 
                              | {{price|{{{sellprice|0}}}}}
+
// Add artisan sections to generic item pages.  Again, shouldn't be necessary any more once profession is added to original article
                              | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|}}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
+
-->
                              }}
+
  |wine
                            }}
+
  |juice     = {{#if:{{{profession|}}}||{{Infosection price|profession=artisan|sellitem={{{name|{{PAGENAME}}}}}|sellprice={{{sellprice|}}}|quality=normal}}}}
    <!-- Tiller Profession Prices -->
+
  |aged roe  = {{#if:{{{profession|}}}||{{Infosection price|profession=artisan|sellitem={{{name|{{PAGENAME}}}}}|sellprice={{{sellprice|}}}|quality=normal}}
    {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
+
}}}}}}{{#if:{{{ingredients|}}}|<nowiki/>
    | {{price| {{#expr:trunc({{{sellprice|0}}}*(1.1))}} }}
 
    | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|0}}}|prof_mult=1.1|{{#ifeq:{{lc:{{{name|{{PAGENAME}}}}}}}|cactus fruit||{{#if:{{{iridium|}}}|iridium=true|}}}}|hide={{#arrayprint:qualities to hide}} }}
 
    }}
 
  }}
 
| artisan =
 
    {{!}}-
 
    {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
    {{!}}-
 
    {{!}}id="infoboxsection"{{!}}Base Price:
 
    {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Artisan.png|24px|link=]] Artisan Profession:<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}}}}}|{{{sellprice|0}}}|prof_mult=1.4|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
 
    }}
 
  }}
 
| rancher =
 
    {{!}}-
 
    {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}}Sell Prices
 
    {{!}}-
 
    {{!}}id="infoboxsection"{{!}}Base Price:
 
    {{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Rancher.png|24px|link=]] Rancher Profession:<br />''(+20% 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}} }}
 
                              }}
 
                            }}
 
    <!-- Rancher Profession Prices -->
 
    {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
    | {{price| {{#expr:trunc({{{sellprice|0}}}*(1.2))}} }}
 
    | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|0}}}|prof_mult=1.2|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
 
    }}
 
  }}
 
|#default = {{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/>
 
    {{!}}-
 
    {{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}Sell Prices
 
}}}}
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal
 
  |Sell Price:
 
  |{{#if:{{{profession|}}}|Base Price:|Sell Price:}}
 
}}
 
{{!}}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}} }}
 
    }}
 
  }}
 
| N/A
 
}}{{#if:{{{profession|}}}
 
|{{#arrayprint:professions||@@@
 
  | {{#arraydefine:prof_mod|{{#switch:{{lc:@@@}}
 
    |rancher=0.2
 
    |tiller=0.1
 
    |artisan=0.4
 
    |forester=0.5
 
    |tapper=0.25
 
    |blacksmith=0.5
 
    |#default={{{modifier|0}}}
 
    }}}}<nowiki/>
 
    {{!}}-
 
    {{!}}id="infoboxsection"{{!}}{{#switch:{{ucfirst:@@@}}
 
    |Tapper=[[File:Tapper Icon.png|24px|link=]]
 
    |Blacksmith=[[File:Blacksmith Icon.png|24px|link=]]
 
    |#default={{#ifexist:File:{{ucfirst:@@@}}.png|[[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
 
    | {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }}
 
    | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|0}}}|prof_mult={{#expr:(1+{{#arrayprint:prof_mod}})}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }}
 
    }}
 
  }}
 
}}
 
}}<!-- end profession switch case -->
 
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}}
 
|sunflower=
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="2" style="text-align: center;"{{!}}Artisan Goods
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}Sell Price:
 
{{!}}id="infoboxdetail"{{!}}{{Artisan|sunflower}}
 
|fruit|fruits|vegetable|vegetables|wheat|hops|honey|corn|tea leaves=
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}Artisan Base Price:
 
{{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Artisan.png|24px|link=]] Artisan Profession:<br/>''(+40% Sell Price)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Artisan|{{{type|{{PAGENAME}}}}}|{{{sellprice|0}}}}}
 
{{!}}id="infoboxdetail"{{!}}{{Artisan|{{{type|{{PAGENAME}}}}}|{{{sellprice|0}}}|pro=1}}
 
|milk=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Cheese|230|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Cheese|230|prof_mult=1.2|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Cheese|230|prof_mult=1.4|iridium}}
 
{{!}}}
 
|large milk=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Cheese|230|hide=normal,silver|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Cheese|230|prof_mult=1.2|hide=normal,silver|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Cheese|230|prof_mult=1.4|hide=normal,silver|iridium}}
 
{{!}}}
 
|goat milk=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Goat Cheese|400|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Goat Cheese|400|prof_mult=1.2|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Goat Cheese|400|prof_mult=1.4|iridium}}
 
{{!}}}
 
|large goat milk=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Goat Cheese|400|hide=normal,silver|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Goat Cheese|400|prof_mult=1.2|hide=normal,silver|iridium}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Goat Cheese|400|prof_mult=1.4|hide=normal,silver|iridium}}
 
{{!}}}
 
|wool=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}[[File:Cloth.png|24px|link=]] 470g
 
{{!}}id="infoboxdetail"{{!}}[[File:Cloth.png|24px|link=]] 564g
 
{{!}}id="infoboxdetail"{{!}}[[File:Cloth.png|24px|link=]] 658g
 
{{!}}}
 
|duck egg=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}[[File:Duck Mayonnaise.png|24px|link=]] 375g
 
{{!}}id="infoboxdetail"{{!}}[[File:Duck Mayonnaise.png|24px|link=]] 450g
 
{{!}}id="infoboxdetail"{{!}}[[File:Duck Mayonnaise.png|24px|link=]] 525g
 
{{!}}}
 
|egg=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Mayonnaise|190|hide=silver,gold}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Mayonnaise|190|prof_mult=1.2|hide=silver,gold}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Mayonnaise|190|prof_mult=1.4|hide=silver,gold}}
 
{{!}}}
 
|dinosaur egg=
 
{{!}}-
 
{{{!}}id="infoboxtable" style="margin-top: -2px;"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Dinosaur Mayonnaise|800|hide=gold,silver}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Dinosaur Mayonnaise|800|prof_mult=1.2|hide=gold,silver}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Dinosaur Mayonnaise|800|prof_mult=1.4|hide=gold,silver}}
 
{{!}}}
 
|large egg=
 
{{!}}-
 
{{{!}}id="infoboxtable" style="margin-top: -2px;"
 
 
{{!}}-
 
{{!}}-
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
+
{{!}} colspan="2" id="infoboxsection" style="text-align: center;" {{!}} {{#if:{{#arrayprint:$is_artisan}} | {{#arrayprint:$lang_artisangoods}} | {{#arrayprint:$lang_crafting}} }}
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Mayonnaise|190|hide=normal,silver}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Mayonnaise|190|prof_mult=1.2|hide=normal,silver}}
 
{{!}}id="infoboxdetail"{{!}}{{Qualityprice|Mayonnaise|190|prof_mult=1.4|hide=normal,silver}}
 
{{!}}}
 
|void egg=
 
{{!}}-
 
{{{!}}id="infoboxtable"
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="3" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection" style="width: 30%"{{!}}Base<br />Price:
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Rancher.png|24px|link=]] Rancher:<br/>''(+20%)''
 
{{!}}id="infoboxsection" style="width: 35%"{{!}}[[File:Artisan.png|24px|link=]] Artisan:<br/>''(+40%)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}[[File:Void Mayonnaise.png|24px|link=]] 275g
 
{{!}}id="infoboxdetail"{{!}}[[File:Void Mayonnaise.png|24px|link=]] 330g
 
{{!}}id="infoboxdetail"{{!}}[[File:Void Mayonnaise.png|24px|link=]] 385g
 
{{!}}}
 
|truffle=
 
{{!}}-
 
{{!}}id="infoboxsection" colspan="2" style="text-align: center;"{{!}}Artisan Sell Prices
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}Base Price:
 
{{!}}id="infoboxsection" class="no-wrap"{{!}}[[File:Artisan.png|24px|link=]] Artisan Profession:<br/>''(+40% Sell Price)''
 
{{!}}-
 
{{!}}id="infoboxdetail"{{!}}[[File:Truffle Oil.png|24px|link=]] 1,065g
 
{{!}}id="infoboxdetail"{{!}}[[File:Truffle Oil.png|24px|link=]] 1,491g
 
|wine|juice=
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}[[File:Artisan.png|24px|link=]] Artisan Profession:<br /><span class="no-wrap">''(+40% Sell Price)''</span>
 
{{!}}id="infoboxdetail"{{!}}{{Artisan|{{{type|{{PAGENAME}}}}}|{{{sellprice|0}}}|pro=1}}
 
|aged roe=
 
{{!}}-
 
{{!}}id="infoboxsection"{{!}}[[File:Artisan.png|24px|link=]] Artisan Profession:<br /><span class="no-wrap">''(+40% Sell Price)''</span>
 
{{!}}id="infoboxdetail"{{!}}1.4 × base Aged Roe price
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
 
{{!}}-
 
{{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}{{#if:{{#pos:{{lc:{{{source|}}}}}|artisan goods}}|Artisan Goods|Crafting}}
 
 
}}{{#if:{{{recipe|}}}|<nowiki/>
 
}}{{#if:{{{recipe|}}}|<nowiki/>
{{!}}-
+
  {{!}}-
{{!}}id="infoboxsection"{{!}}Recipe Source:
+
  {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_recipesource}}:
{{!}}id="infoboxdetail"{{!}}{{{recipe|}}}
+
  {{!}} id="infoboxdetail" {{!}} {{{recipe|}}}
 
}}{{#if:{{{craftingstation|}}}|<nowiki/>
 
}}{{#if:{{{craftingstation|}}}|<nowiki/>
{{!}}-
+
  {{!}}-
{{!}}id="infoboxsection"{{!}}Equipment:
+
  {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_equipment}}:
{{!}}id="infoboxdetail"{{!}}{{{craftingstation|}}}
+
  {{!}} id="infoboxdetail" {{!}} {{{craftingstation|}}}
 
}}{{#if:{{{crafttime|}}}|<nowiki/>
 
}}{{#if:{{{crafttime|}}}|<nowiki/>
{{!}}-
+
  {{!}}-
{{!}}id="infoboxsection" class="no-wrap"{{!}}{{#if:{{#pos:{{lc:{{{source|}}}}}|artisan goods}}|Processing Time:|Time to Craft:}}
+
  {{!}} id="infoboxsection" class="no-wrap" {{!}} {{#if:{{#arrayprint:$is_artisan}} | {{#arrayprint:$lang_processingtime}} | {{#arrayprint:$lang_timetocraft}} }}
{{!}}id="infoboxdetail"{{!}}{{duration|{{{crafttime|}}}}}
+
  {{!}} id="infoboxdetail" {{!}} {{duration|{{{crafttime|}}}}}
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
{{!}}-
+
  {{!}}-
{{!}}id="infoboxsection"{{!}}Ingredients:
+
  {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_ingredients}}:
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}
+
  {{!}} id="infoboxdetail" {{!}} {{{ingredients|}}}
}}<!--Trapper Profession ingredients for Crab Pot-->{{#if:{{{tingredients|}}}|<nowiki/>
+
}}{{#if:{{{tingredients|}}}|<!--
{{!}}-
+
 
{{!}}id="infoboxsection"{{!}}[[File:Trapper.png|24px|link=]] Trapper Profession Ingredients:
+
//Trapper Profession ingredients for Crab Pot
{{!}}id="infoboxdetail"{{!}}{{{tingredients|}}}
+
--><nowiki/>
 +
  {{!}}-
 +
  {{!}} id="infoboxsection" {{!}} [[File:Trapper.png|24px|link=]] {{#arrayprint:$lang_trapper_ingredients}}:
 +
  {{!}} id="infoboxdetail" {{!}} {{{tingredients|}}}
 
}}{{#if:{{{produces|}}}|<nowiki/>
 
}}{{#if:{{{produces|}}}|<nowiki/>
{{!}}-
+
  {{!}}-
{{!}}id="infoboxsection"{{!}}Produces:
+
  {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_produces}}:
{{!}}id="infoboxdetail"{{!}}{{{produces|}}}
+
  {{!}} id="infoboxdetail" {{!}} {{{produces|}}}
}}
+
}}<nowiki/>
 
{{!}}}{{InfoboxSEO}}{{#seo:
 
{{!}}}{{InfoboxSEO}}{{#seo:
 
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
 
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
}}</div>}}</includeonly><noinclude><br style="clear:both;" />{{{{FULLPAGENAME}}/doc}}</noinclude>
+
}}</div>}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
 +
{{{{FULLPAGENAME}}/doc}} }}</noinclude>

Revision as of 04:42, 4 September 2020

Description

This template displays a generic infobox for a wide variety of items. Do not use this on your user page. It is reserved for content pages.

Parameters

All parameters are optional. If omitted, nothing will display.

Parameter Notes
eng Name of the image to display, in English, without the ".png" extension.
If the image has an extension other than ".png", then the "ext" parameter must be used.
ext Extension of image specified in "eng" parameter, without the period (e.g., "gif", "jpg", etc.)
name Name of item (Page name if omitted)
For use on pages like Trash (item) where the name of the item is different from the page name.
image2
image3
image4
image5
Name of additional images to display
Must be of type ".png"
Omit the extension (e.g., Tiger Slime Egg)
image2spacing Set to "true" to add extra space between the images specified in "eng" and "image2"
description In-game item description
(Populated by Template:Description if omitted). It is preferable to omit this parameter and update Template:Description instead.
source How to obtain the item (e.g., [[Crafting]], [[Artisan Goods]], [[Slime Egg-Press]])
location Location(s) of item (e.g., [[Cindersap Forest]], [[The Beach]], Bushes throughout the valley, etc.)
seed Name of seed (e.g., {{Name|Corn Seeds}})
growth Number of days the crop takes to grow to maturity (e.g., 4 days)
buff Name of buff(s) given by the item (e.g., {{Name|Farming|+4}})
buffduration Length of time buff(s) are active
season Name of season when the item can be obtained or grown
Can be plain text (e.g., Spring, Summer, All, etc.) or can use Template:Season (e.g., {{Season|Summer}} • {{Season|Winter}})
weather Weather required to obtain the item
Can use plain text (e.g., Rain) and this template will automatically apply Template:Weather inline formatting
xp Experience points gained for harvesting or otherwise obtaining the item
edibility Found in Data\ObjectInformation.xnb
Note that inedible items have an edibility of -300, and poisonous items have a negative edibility greater than -300
sellprice Found in Data\ObjectInformation.xnb
If the item cannot be sold, then "N/A" and "Cannot be sold" are valid values
quality Set to "false" to suppress silver, gold, and iridium qualities
recipe How to obtain the recipe to craft the item (e.g., [[Farming]] Level 7)
craftingstation Equipment used to craft the item (e.g., {{Name|Preserves Jar}})
crafttime How long does the item process in its equipment (e.g., 4 hours)
ingredients Ingredients needed to craft the item (e.g., {{Name|Copper Bar|2}}{{Name|Sap|10}})
tingredients Ingredients with the Trapper profession
Used on the Crab Pot page
produces Item produced via crafting, artisan goods, or harvesting (e.g., 5 Deluxe Fertilizer per craft)