|
|
| Line 1: |
Line 1: |
| <includeonly><!--
| | {| class="infobox-classic" style="font-size:89%; width:300px;" |
| // TRANSLATIONS
| | |- |
| // Essentially any text that gets displayed on the page should be defined here to make it easier to
| | ! colspan="4" style="font-size:120%; padding:1em;" | {{{Box title|No Title}}} |
| // port this template to other languages
| | {{#if: {{{image|}}}| |
| // If the text should be a link, provide entire link as part of the definition
| |
| | |
| -->{{#arraydefine:$engl_artisangoods | Artisan Goods }}<!--
| |
| | |
| // END of translations
| |
| // Initialize variables
| |
| -->{{#arraydefine:$quality|{{ParseInputQuality|quality={{{quality|}}}|iridium={{{iridium|}}}|hide={{{hide|}}}}}}}<!--
| |
| -->{{#arraydefine:$is_artisan|{{#if:{{{is_artisan|}}}
| |
| | {{#ifeq:{{{is_artisan|}}}|0||{{{is_artisan}}}}}
| |
| | {{#ifexpr: {{#if:{{#pos:{{lc:{{{source|}}}}}|{{lc:{{#arrayprint:$lang_artisangoods}}}}}}|1|0}}
| |
| or {{#if:{{#pos:{{lc:{{{source|}}}}}|{{lc:{{#arrayprint:$engl_artisangoods}}}}}}|1|0}}
| |
| |1}}
| |
| }}}}{{#switch: {{NAMESPACE}}
| |
| |{{ns:User}}|{{ns:User talk}}=
| |
| |#default=<div id="infoboxborder">
| |
| {{{!}} id="infoboxtable"
| |
| {{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}}
| |
| {{!}}- | | {{!}}- |
| {{!}}colspan="2" style="padding-bottom:5px; text-align: center;"{{!}}<!-- | | {{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{PAGENAME:{{{image}}}}}|{{{imagewidth|250}}}px]]<br/>''{{{caption| }}}'' |
| // Display images, using default name if necessary
| | | |
| -->{{Autoimage
| | }} |
| |{{{image|}}}, {{{image2|}}}, {{{image3|}}}, {{{image4|}}}
| | |- |
| |eng={{{eng|}}}|separator={{#ifeq:{{{image2spacing|}}}|true|   |{{{image2spacing|}}}}}}}<nowiki/>
| | | style="width:30%;" | |
| | '''{{{Row 1 title|No Title}}}''' |
| | | style="width:70%;" | |
| | {{{Row 1 info|No information}}} |
| | {{#if: {{{Row 2 title|}}}| |
| {{!}}- | | {{!}}- |
| {{!}}colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" {{!}} {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | | {{!}} |
| | '''{{{Row 2 title}}}''' |
| | {{!}} |
| | {{{Row 2 info|No information}}} |
| | {{#if: {{{Row 3 title|}}}| |
| {{!}}- | | {{!}}- |
| {{!}}colspan="2" id="infoboxsection" style="text-align:center;" {{!}} {{#arrayprint:$lang_information}} {{#if:{{{source|}}}|<nowiki/> | | {{!}} |
| {{!}}-
| | '''{{{Row 3 title}}}''' |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_source}}:
| | {{!}} |
| {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}}
| | {{{Row 3 info|No information}}} |
| }}{{#if:{{{location|}}}|<nowiki/>
| | {{#if: {{{Row 4 title|}}}| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}}
| |
| }}{{#if:{{{seed|}}}|<nowiki/>
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_seed}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{seed|}}}|[[{{{seed|}}}]]|{{{seed|}}}}}
| |
| }}{{#if:{{{growth|}}}|<nowiki/>
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_growthtime}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{{growth|}}}
| |
| }}{{#if:{{{buff|}}}|<nowiki/>
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_buffs}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{{buff|}}}
| |
| }}{{#if:{{{buffduration|}}}|<nowiki/>
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_buffduration}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{duration|{{{buffduration|}}}}}
| |
| }}{{#if:{{{season|}}}|<nowiki/>
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }}
| |
| }}{{#if:{{{xp|}}}|<nowiki />
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{{xp|}}}
| |
| }}{{#if:{{{fishingxp|}}}|<nowiki />
| |
| {{!}}-
| |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishingxp}}:
| |
| {{!}} id="infoboxdetail" {{!}} {{{fishingxp|}}}
| |
| }}{{#if:{{{edibility|}}}|<nowiki/>
| |
| {{!}}-
| |
| <!--
| |
| | |
| // 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|,}}}}
| |
| }}}}<!--
| |
| | |
| // custom_price if defined provides entire text of all price-related sections
| |
| -->{{#if:{{{custom_price|}}}
| |
| |{{{custom_price}}}<!--
| |
| | |
| // Display all item prices: Base price plus all professions listed in {{{profession}}}
| |
| // Subtemplate automatically decides how to handle multiple columns, etc.
| |
| --> |{{Infosection price
| |
| | prof = Base {{#if:{{{profession|}}} |, {{{profession|}}}}}
| |
| | item = {{{eng|{{{name|{{PAGENAME}}}}}}}}
| |
| | link = {{{name|{{PAGENAME}}}}}
| |
| | price = {{{sellprice|}}}
| |
| | quality = {{#arrayprint:$quality|,}}
| |
| | ncolumns= {{{price_ncols|}}}
| |
| }}<!--
| |
| | |
| // Add display of products and their prices.
| |
| // artisan_item is new parameter, that eventually should be able to move alot of the single-item-case data
| |
| // onto the individual article pags.
| |
| // If artisan_item provided, use it to generate the infosection. Otherwise, fallback to old-style manual switch
| |
| --> {{#if:{{{artisan_item|}}}
| |
| | {{Infosection price
| |
| | item = {{{artisan_item}}}
| |
| | prof = {{#if:{{{artisan_prof|}}}| {{{artisan_prof}}} | Base,Artisan}}
| |
| | artisan = true
| |
| | link = {{{artisan_link|{{{artisan_item}}}}}}
| |
| | price = {{{artisan_price|0}}}
| |
| | quality = {{{artisan_qual|}}}
| |
| | srcprice = {{{sellprice|}}}
| |
| | ncolumns = {{{artisan_ncols|}}}
| |
| | auto = true
| |
| }}<!--
| |
| | |
| // Manually define various artisan_item sections
| |
| // One key reason to move these details onto the individual infobox pages is for sake of translation -- so that language-specific
| |
| // translations of item can be provided outside of template namespace.
| |
| // (Infosection price will recognize some key item names, such as Wine, Juice, Jelly, Pickles, but doing more than that is insane)
| |
| -->
| |
| | {{#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}}
| |
| |hops = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Pale Ale,Pickles |price=300}}
| |
| |wheat = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Beer,Pickles |price=200}}
| |
| |honey = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Mead |price=200 |iridium=true}}
| |
| |corn = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Juice,Pickles,Oil|price=100 |quality=normal}}
| |
| |tea leaves= {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Green Tea,Pickles|price=100 |quality=normal}}
| |
| |fruit
| |
| |fruits = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Wine,Jelly |price=0 |iridium=true}}
| |
| |vegetables
| |
| |vegetable = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Juice,Pickles |price=0 |iridium=true}}
| |
| |truffle = {{Infosection price|prof=base,artisan|artisan=true|item=Truffle Oil |price=1065|quality=normal}}
| |
| |milk = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Cheese |price=230|iridium=true}}
| |
| |large milk= {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Cheese |price=230|quality=gold,iridium}}
| |
| |goat milk = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Goat Cheese |price=400|iridium=true}}
| |
| |large goat milk = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Goat Cheese |price=400|quality=gold,iridium}}
| |
| |wool = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Cloth |price=470|quality=normal}}
| |
| |duck egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Duck Mayonnaise |price=375|quality=normal}}
| |
| |egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Mayonnaise |price=190|quality=normal}}
| |
| |dinosaur egg= {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Dinosaur Mayonnaise |price=800|quality=normal}}
| |
| |large egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Mayonnaise |price=190|quality=gold}}
| |
| |void egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Void Mayonnaise |price=275|quality=normal}}<!--
| |
| | |
| // Add artisan sections to generic item pages. Again, shouldn't be necessary any more once profession is added to original article
| |
| -->
| |
| |wine
| |
| |juice = {{#if:{{{profession|}}}||{{Infosection price|prof=artisan|item={{{name|{{PAGENAME}}}}}|price={{{sellprice|}}}|quality=normal}}}}
| |
| |aged roe = {{#if:{{{profession|}}}||{{Infosection price|prof=artisan|item={{{name|{{PAGENAME}}}}}|price={{{sellprice|}}}|quality=normal}}}}
| |
| }}}}}}{{#if:{{{ingredients|}}}|<nowiki/>
| |
| {{!}}- | | {{!}}- |
| {{!}} colspan="2" id="infoboxsection" style="text-align: center;" {{!}} {{#if:{{#arrayprint:$is_artisan}} | {{#arrayprint:$lang_artisangoods}} | {{#arrayprint:$lang_crafting}} }} | | {{!}} |
| }}{{#if:{{{recipe|}}}|<nowiki/>
| | '''{{{Row 4 title}}}''' |
| {{!}}-
| | {{!}} |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_recipesource}}:
| | {{{Row 4 info|No information}}} |
| {{!}} id="infoboxdetail" {{!}} {{{recipe|}}}
| | {{#if: {{{Row 5 title|}}}| |
| }}{{#if:{{{craftingstation|}}}|<nowiki/>
| | {{!}}- |
| {{!}}-
| | {{!}} |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_equipment}}:
| | '''{{{Row 5 title}}}''' |
| {{!}} id="infoboxdetail" {{!}} {{{craftingstation|}}}
| | {{!}} |
| }}{{#if:{{{crafttime|}}}|<nowiki/>
| | {{{Row 5 info|No information}}} |
| {{!}}-
| | {{#if: {{{Row 6 title|}}}| |
| {{!}} id="infoboxsection" class="no-wrap" {{!}} {{#if:{{#arrayprint:$is_artisan}} | {{#arrayprint:$lang_processingtime}} | {{#arrayprint:$lang_timetocraft}} }}:
| | {{!}}- |
| {{!}} id="infoboxdetail" {{!}} {{duration|{{{crafttime|}}}}}
| | {{!}} |
| }}{{#if:{{{ingredients|}}}|<nowiki/>
| | '''{{{Row 6 title}}}''' |
| {{!}}-
| | {{!}} |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_ingredients}}:
| | {{{Row 6 info|No information}}} |
| {{!}} id="infoboxdetail" {{!}} {{{ingredients|}}}
| | {{#if: {{{Row 7 title|}}}| |
| }}{{#if:{{{tingredients|}}}|<!--
| | {{!}}- |
| | | {{!}} |
| //Trapper Profession ingredients for Crab Pot
| | '''{{{Row 7 title}}}''' |
| --><nowiki/>
| | {{!}} |
| {{!}}-
| | {{{Row 7 info|No information}}} |
| {{!}} id="infoboxsection" {{!}} [[File:Trapper.png|24px|link=]] {{#arrayprint:$lang_trapper_ingredients}}:
| | {{#if: {{{Row 8 title|}}}| |
| {{!}} id="infoboxdetail" {{!}} {{{tingredients|}}}
| | {{!}}- |
| }}{{#if:{{{produces|}}}|<nowiki/>
| | {{!}} |
| {{!}}-
| | '''{{{Row 8 title}}}''' |
| {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_produces}}:
| | {{!}} |
| {{!}} id="infoboxdetail" {{!}} {{{produces|}}}
| | {{{Row 8 info|No information}}} |
| }}<nowiki/> | | {{#if: {{{Row 9 title|}}}| |
| {{!}}}
| | {{!}}- |
| </div>
| | {{!}} |
| {{InfoboxSEO}}}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
| | '''{{{Row 9 title}}}''' |
| | {{!}} |
| | {{{Row 9 info|No information}}} |
| | {{#if: {{{Row 10 title|}}}| |
| | {{!}}- |
| | {{!}} |
| | '''{{{Row 10 title}}}''' |
| | {{!}} |
| | {{{Row 10 info|No information}}} |
| | {{#if: {{{Row 11 title|}}}| |
| | {{!}}- |
| | {{!}} colspan="2" style="text-align:center; background:#AAAAAA;" {{!}} |
| | '''Too many parameters''' |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | | |
| | }} |
| | |} |
| | <noinclude> |
| | {{documentation}}</noinclude> |