Template:Infobox fish: Difference between revisions
Appearance
imported>Margotbean No edit summary |
imported>Margotbean Template independent of 'helper' templates |
||
| Line 1: | Line 1: | ||
<!-- | |||
========================================================== | |||
Changes that need to be made to individual pages: | |||
1. Location and Source need links added to individual pages | |||
2. Add "professions = false" to those weird non-fish that aren't affected by Fisher/Angler Profession (Clam, Sea Urchin, Coral, Rainbow Shell, Nautilus Shell, Seaweed, Green Algae, White Algae) | |||
3. <s>Make sure all poisonous fish and inedible fish have -integer values for edibility (NOT "Inedible")</s> I've made a switch/case to take care of it, but it needs translated for all languages | |||
4. Make sure quality = [false or normal] for crab pot fish | |||
5. Should be 77 pages that use it in main space when done. (+Infobox itself) | |||
6. Can remove "iridium = true" from all......... | |||
7. Can remove any <p></p> tags from locations (River mostly)... | |||
========================================================== --> | |||
<includeonly>{{#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;"{{!}} [[File:{{{eng|Blank icon}}}.png|center]] | |||
{{!}}- | |||
{{!}} colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" {{!}} {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |||
{{!}}- | |||
{{!}} colspan="2" id="infoboxsection" style="text-align:center; padding-left: 0; padding-right: 0;" {{!}} Information | |||
{{#if:{{{source|}}}|<nowiki/> | |||
{ | |||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Source | ||
{{!}} id="infoboxdetail" {{!}} | {{!}} id="infoboxdetail" {{!}} {{{source|}}} | ||
}}{{#if:{{{location|}}} |<nowiki /> | }}{{#if:{{{location|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Location | ||
{{!}} id="infoboxdetail" {{!}} | {{!}} id="infoboxdetail" {{!}} {{{location|}}} | ||
}}{{#if:{{{time|}}} |<nowiki /> | }}{{#if:{{{time|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Time | ||
{{!}} id="infoboxdetail" {{!}} {{{time|}}} | {{!}} id="infoboxdetail" {{!}} {{{time|}}} | ||
}}{{#if:{{{season|}}} |<nowiki /> | }}{{#if:{{{season|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Season | ||
{{!}} id="infoboxdetail" {{!}} {{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }} | {{!}} id="infoboxdetail" {{!}} {{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }} | ||
}}{{#if:{{{weather|}}} |<nowiki /> | }}{{#if:{{{weather|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Weather | ||
{{!}} id="infoboxdetail" {{!}} {{#iferror: {{Weather inline|{{{weather|}}}}} | {{{weather|}}} | {{Weather inline|{{{weather|}}}}} }} | {{!}} id="infoboxdetail" {{!}} {{#iferror: {{Weather inline|{{{weather|}}}}} | {{{weather|}}} | {{Weather inline|{{{weather|}}}}} }} | ||
}}{{#if:{{{difficulty|}}} |<nowiki /> | }}{{#if:{{{difficulty|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Difficulty | ||
{{!}} id="infoboxdetail" {{!}} {{{difficulty|}}} | {{!}} id="infoboxdetail" {{!}} {{{difficulty|}}} | ||
}}{{#if:{{{behavior|}}} |<nowiki /> | }}{{#if:{{{behavior|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Behavior | ||
{{!}} id="infoboxdetail" | {{!}} id="infoboxdetail" {{!}} {{#switch:{{lc:{{{behavior|}}}}} | ||
|dart = [[Fish#Behavior|Dart]] | |||
|floater = [[Fish#Behavior|Floater]] | |||
|mixed = [[Fish#Behavior|Mixed]] | |||
|sinker = [[Fish#Behavior|Sinker]] | |||
|smooth = [[Fish#Behavior|Smooth]] | |||
}} | |||
}}{{#if:{{{fl|}}}|<nowiki /> | }}{{#if:{{{fl|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Fishing Level Required | ||
{{!}} id="infoboxdetail | {{!}} id="infoboxdetail" {{!}} {{{fl|}}} | ||
}}{{#if:{{{size|}}}|<nowiki /> | }}{{#if:{{{size|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} | {{!}} id="infoboxsection" {{!}} Size (inches) | ||
{{!}} id="infoboxdetail" {{!}} | {{!}} id="infoboxdetail" {{!}} {{#switch:{{uc:{{CONTENTLANG}}}} | ||
|EN = {{{size|}}} | |||
| {{#if:{{#pos:{{{size|}}}|-}} | |#default= {{#if:{{#pos:{{{size|}}}|-}} | ||
|{{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}}-{{#expr:{{#explode:{{{size|}}}|-|-1}}*2.54 round 0}} | |||
|{{#expr:{{{size|}}}*2.54 round 0}} }} }} | |||
}} | |||
}} | {{#if:{{{difficulty|}}} |<nowiki /> | ||
{{!}}- | |||
{{!}}id="infoboxsection" {{!}} Fishing XP | |||
{{!}}id="infoboxdetail" {{!}} {{#switch:{{lc:{{{eng|}}}}} | |||
}}{{# | |crimsonfish|angler|legend|glacierfish|mutant carp = {{#expr:5*(floor((0+1)*3+{{{difficulty|}}}/3))}} [[File:Silver Quality.png|14px|link=]] {{#expr:5*(floor((1+1)*3+{{{difficulty|}}}/3))}} [[File:Gold Quality.png|14px|link=]] {{#expr:5*(floor((2+1)*3+{{{difficulty|}}}/3))}} [[File:Iridium Quality.png|14px|link=]] {{#expr:5*floor((4+1)*3+{{{difficulty|}}}/3)}} | ||
|#default={{#expr:floor((0+1)*3+{{{difficulty|}}}/3)}} [[File:Silver Quality.png|14px|link=]] {{#expr:floor((1+1)*3+{{{difficulty|}}}/3)}} [[File:Gold Quality.png|14px|link=]] {{#expr:floor((2+1)*3+{{{difficulty|}}}/3)}} [[File:Iridium Quality.png|14px|link=]] {{#expr:floor((4+1)*3+{{{difficulty|}}}/3)}} }} | |||
}}{{#if:{{{xp|}}} |<nowiki /> | |||
{{!}}- | |||
{{!}}id="infoboxsection" {{!}} XP | |||
{{!}}id="infoboxdetail" {{!}} {{{xp|}}} | |||
}}{{#if:{{{edibility|}}} | <nowiki /> | |||
{{!}}- | |||
{{#switch:{{lc:{{{edibility|}}}}} | |||
| -300 | ''inedible'' | inedible = | |||
{{!}} id="infoboxsection" {{!}} Energy | |||
{{!}} id="infoboxdetail" {{!}} ''Inedible'' | |||
|#default = {{#ifexpr:{{#expr:{{{edibility|}}}>-300 and {{{edibility|}}}<0}} |<nowiki /> | |||
{{!}} id="infoboxsection" {{!}} Energy | |||
{{!}} id="infoboxdetail" {{!}} | |||
<table style="margin: 0; padding: 0;"> | |||
<tr> | |||
<td> [[File:Poison.png|24px|link=]]</td> | |||
<td> {{#replace:{{#expr:ceil({{{edibility|}}}*2.5)}}|-|−}} [[Energy]]</td> | |||
</tr> | |||
<tr> | |||
<td style="vertical-align: top;"><div id="qualitycontainersm"><div id="qualityimage">[[File:Poison.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{#replace:{{#expr:trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}})}}|-|−}} [[Energy]]</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:Poison.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div></td> | |||
/ | <td> {{#replace:{{#expr:trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}}*2)}}|-|−}} [[Energy]]</td> | ||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:Poison.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td> {{#replace:{{#expr:trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}}*4)}}|-|−}} [[Energy]]</td> | |||
</tr> | |||
</table> | |||
}}{{#ifexpr:{{#expr:{{{edibility|}}}>0}} |<nowiki /> | |||
{{!}} id="infoboxsection" {{!}} [[Energy|<span style="color: white;">Energy</span>]] / [[Health|<span style="color: white;">Health</span>]] | |||
{{!}} id="infoboxdetail" {{!}} | |||
{{{!}} style="padding: 0; margin: 0 0 2px 0; border-spacing: 0;" | |||
{{!}}- | |||
{{!}}style="padding: 0;"{{!}} [[File:Energy.png|24px|link=]] | |||
{{!}}class="no-wrap" style="text-align: right;" {{!}}{{#expr:ceil({{{edibility|}}}*2.5)}} | |||
}} | {{!}}style="width: 12px;" {{!}} | ||
{{!}}style="padding: 0;"{{!}}[[File:Health.png|24px|link=]] | |||
{{!}}class="no-wrap" style="text-align: right;" {{!}}{{#expr:trunc(ceil({{{edibility|}}}*2.5)*0.45)}} | |||
{{!}}- | |||
{{#switch:{{lc:{{{quality|}}}}} | |||
|false|normal= | |||
|#default= | |||
{{!}}style="padding: 0;"{{!}}<div id="qualitycontainersm"><div id="qualityimage">[[File:Energy.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div> | |||
{{!}}class="no-wrap" style="padding: 0; text-align: right;"{{!}}{{#expr:trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}})}} | |||
{{!}} style="width: 4px; padding: 0;" {{!}} | |||
{{!}}style="padding: 0;"{{!}}<div id="qualitycontainersm"><div id="qualityimage">[[File:Health.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div> | |||
{{!}}class="no-wrap" style="padding: 0; text-align: right;"{{!}} | |||
{{#expr:trunc(trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}})*0.45)}} | |||
{{!}}- | |||
{{!}}style="padding: 0;"{{!}}<div id="qualitycontainersm"><div id="qualityimage">[[File:Energy.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div> | |||
{{!}}class="no-wrap" style="padding: 0; text-align: right;"{{!}}{{#expr:trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}}*2)}} | |||
}} | {{!}} | ||
{{!}}style="padding: 0;"{{!}}<div id="qualitycontainersm"><div id="qualityimage">[[File:Health.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div> | |||
</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | {{!}}class="no-wrap" style="padding: 0; text-align: right;"{{!}}{{#expr:trunc(trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}}*2)*0.45)}} | ||
{{!}}- | |||
{{!}}style="padding: 0;"{{!}}<div id="qualitycontainersm"><div id="qualityimage">[[File:Energy.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div> | |||
{{!}}class="no-wrap" style="padding: 0; text-align: right;"{{!}}{{#expr:trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}}*4)}} | |||
{{!}} | |||
{{!}}style="padding: 0;"{{!}}<div id="qualitycontainersm"><div id="qualityimage">[[File:Health.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div> | |||
{{!}} class="no-wrap" style="padding: 0; text-align: right;" {{!}}{{#expr:trunc(trunc(ceil({{{edibility|}}}*2.5)+{{{edibility|}}}*4)*0.45)}} | |||
}} | |||
{{!}}- | |||
{{!}}} | |||
}} }} }}{{#ifeq:{{{professions|}}} | false |<nowiki /> | |||
{{!}}- | |||
{{!}} id="infoboxsection" {{!}} Sell Price | |||
{{!}} id="infoboxdetail" {{!}} {{#switch: {{lc:{{{quality|}}}}} | |||
|normal|false = {{Price|{{{price|}}}}} | |||
|#default= | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(10 * {{{price|}}} / 10) }}}}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc( 10 * trunc ( 1.25 * trunc({{{price|}}}) ) ) / 10) }}}}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc( 10 * trunc ( 1.5 * trunc({{{price|}}}) ) ) / 10) }}}}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc( 10 * trunc ( 2 * trunc({{{price|}}}) ) ) / 10) }}}}g</td> | |||
</tr> | |||
</table> | |||
}} | |||
|<!-- professions != false --><nowiki /> | |||
{{!}}- | |||
{{!}} colspan="2" style="padding: 0; border: 0;"{{!}} | |||
<table colspan="3" style="width: 101%; margin-top: -2px; margin-left: -2px;"> | |||
<tr> | |||
<td id="infoboxsection" colspan="3" style="text-align: center; padding-left: 0; padding-right: 0;">Sell Prices</td> | |||
</tr> | |||
<tr> | |||
<td id="infoboxsection">Base</td> | |||
<td id="infoboxsection">[[File:Fisher.png|24px|link=]] [[Skills#Fishing|<span style="color: white;">Fisher</span>]]<br />''(+25%)''</td> | |||
<td id="infoboxsection">[[File:Angler Icon.png|24px|link=]] [[Skills#Fishing|<span style="color: white;">Angler</span>]]<br />''(+50%)''</td> | |||
</tr> | |||
<tr> | |||
{{#switch: {{lc:{{{quality|}}}}} | |||
|normal|false = | |||
<td style="vertical-align: top;"> | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(10 * {{{price|}}}) / 10) }} }}g</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td style="vertical-align: top;"> | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.25 * 10 * {{{price|}}}) / 10) }} }}g</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td style="vertical-align: top;"> | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.5 * 10 * {{{price|}}}) / 10) }} }}g</td> | |||
</tr> | |||
</table> | |||
</td> | |||
|#default = | |||
<td style="vertical-align: top;"> | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(10 * {{{price|}}} / 10) }}}}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc( 10 * trunc ( 1.25 * trunc({{{price|}}}) ) ) / 10) }}}}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc( 10 * trunc ( 1.5 * trunc({{{price|}}}) ) ) / 10) }}}}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc( 10 * trunc ( 2 * trunc({{{price|}}}) ) ) / 10) }}}}g</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td style="vertical-align: top;"> | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.25 * 10 * {{{price|}}}) / 10)}} }}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.25 * 10 * trunc(1.25 * {{{price|}}})) / 10)}} }}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.25 * 10 * trunc(1.5 * {{{price|}}})) / 10) }} }}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.25 * 10 * trunc(2 * {{{price|}}})) / 10) }} }}g</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td style="vertical-align: top;"> | |||
<table style="margin: 0; padding: 0; border-spacing: 0;"> | |||
<tr> | |||
<td>[[File:{{{eng|Blank icon}}}.png|24px|link=]]</td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.5 * 10 * {{{price|}}}) / 10)}} }}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Silver Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.5 * 10 * trunc(1.25 * {{{price|}}})) / 10) }} }}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Gold Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum:{{#expr:trunc(trunc(1.5 * 10 * trunc(1.5 * {{{price|}}})) / 10) }} }}g</td> | |||
</tr> | |||
<tr> | |||
<td><div id="qualitycontainersm"><div id="qualityimage">[[File:{{{eng|Blank icon}}}.png|24px|link=]]<div class="qualityindicator">[[File:Iridium Quality Icon.png|24px|link=]]</div></div></div></td> | |||
<td>{{formatnum: {{#expr:trunc(trunc(1.5 * 10 * trunc(2 * {{{price|}}})) / 10) }} }}g</td> | |||
</tr> | |||
</table> | |||
</td> | |||
}} | |||
</tr> | |||
</table> | |||
}}{{#if:{{{roe|}}}|<nowiki /> | |||
{{!}}- | |||
{{!}} colspan="2" style="padding: 0; border: 0;"{{!}} | |||
{{{!}} style="width: 101%; margin-top: -2px; margin-left: -2px;" | |||
{{!}}- | |||
{{!}} id="infoboxsection" colspan="3" style="text-align: center; padding: 0;" {{!}} Artisan Sell Prices | |||
{{!}}- | |||
{{!}} id="infoboxsection" {{!}} Roe | |||
{{!}} id="infoboxsection" {{!}} {{#ifeq:{{{eng|}}}|Sturgeon|Caviar|Aged Roe}} | |||
{{!}} id="infoboxsection" style="padding: 2px 0 0 8px;" {{!}} [[File:Artisan.png|24px|link=]] {{#ifeq:{{{eng|}}}|Sturgeon|Caviar|Aged Roe}} ''(+40%)'' | |||
{{!}}- | |||
{{!}} style="vertical-align: top;" {{!}} [[File:{{{roe|}}} Roe.png|24px|link=]] {{#expr:30+trunc({{{price|}}}/2)}}g | |||
{{!}} style="vertical-align: top;" {{!}} {{#switch:{{{eng|}}} | |||
|Sturgeon = [[File:Caviar.png|24px|link=]] 500g | |||
|#default = [[File:{{{roe|}}} Aged Roe.png|24px|link=]] {{#expr:2*trunc(30+trunc({{{price|}}}/2))}}g}} | |||
{{!}} style="vertical-align: top;" {{!}} {{#switch:{{{eng|}}} | |||
|Sturgeon = [[File:Caviar.png|24px|link=]] 700g | |||
|#default = [[File:{{{roe|}}} Aged Roe.png|24px|link=]] {{formatnum:{{#expr:trunc(trunc (28 * trunc({{#expr:30+trunc({{{price|}}}/2)}})) / 10 )}}}}g}} | |||
{{!}}- | |||
{{!}}} | |||
}} | |||
{{!}}- | |||
{{!}}} | |||
}}</div>{{InfoboxSEO}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |||
Revision as of 03:08, 26 October 2022
Description
This template is used to display an infobox for fish (and fish-like item) pages. Do not use this on your user page. It is reserved for content pages.
Parameters
| Parameter | Notes |
|---|---|
| eng | English fish name (Required in all languages. Used to populate image and prices.) |
| description | In-game item description (optional -- populated by Template:Description if omitted). It is preferable to omit this parameter and update Template:Description instead. |
| location | Area(s) where the fish can be caught |
| source | How to obtain the fish, other than fishing pole |
| time | What time range the fish can be caught in |
| season | What season(s) the fish can caught in (e.g., Summer) |
| weather | What weather the fish can be found in (e.g., Rain) |
| difficulty | Difficulty level of the fish. Auto-populates the "Fishing XP" section if present. |
| behavior | Behavior type of the fish (described in Fish#Behavior) |
| fl | Required fishing level (optional) |
| size | Base size range of the fish in inches (converts to other languages automatically). Can be found in the data file Fish.xnb Note: Size range must be entered using the hyphen key on a standard English keyboard. This will be replaced with the appropriate character in the template (en dash, wave dash, etc.). |
| xp | XP (and type of XP). Only for fish without the difficulty parameter set. |
| price | Base price of the fish, no star |
| edibility | Base edibility of the fish, no star |
| quality | Set to "normal" or "false" for fish that come only in normal quality (Optional) Can also set to "normal,silver" or "0,1" for crab pot fish that come in normal & silver quality (Optional) |
| roe | The color of the Roe (matching the filenames in Category:Roe images) to add a section showing Roe, Aged Roe, and prices |
| professions | Set to false to suppress Fisher & Angler prices (Optional) |