Difference between revisions of "Template:Infobox fish"
Jump to navigation
Jump to search
Margotbean (talk | contribs) |
Margotbean (talk | contribs) (changes to allow use with foraged fish) |
||
Line 1: | Line 1: | ||
<includeonly><div id="infoboxborder"> | <includeonly><div id="infoboxborder"> | ||
{| id="infoboxtable" | {| id="infoboxtable" | ||
− | |colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}} | + | |colspan="2" id="infoboxheader"|{{{name|{{PAGENAME}}}}} |
|- | |- | ||
− | |colspan=2|{{#if: {{{image}}}|[[File:{{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|link=]]}} | + | |colspan="2"|{{#if:{{{image}}}|[[File:{{{image|{{{name|{{PAGENAME}}}}}.png}}}|center|link=]]}} |
|- | |- | ||
− | |colspan=2 | + | |colspan="2" id="infoboxdetail" style="text-align: center; font-style:italic;"|{{{description|}}} |
|- | |- | ||
|colspan=2 id="infoboxsection" style="text-align:center;"|Information | |colspan=2 id="infoboxsection" style="text-align:center;"|Information | ||
− | |- | + | {{#if:{{{location|}}} |<nowiki /> |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Found in: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{location|}}} |}}<!-- | |
− | + | -->{{#if:{{{time|}}} |<nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Time: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{time|}}} |}}<!-- | |
− | + | -->{{#if:{{{season|}}} |<nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Season: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{#arraydefine:season|{{{season|}}}|,}}{{#arrayprint:season| • |@@@@|{{#switch: {{lc:@@@@}} | |
− | + | | spring | summer | fall | winter = [[File:@@@@.png|24px|link=]] [[{{ucfirst:@@@@}}]] | |
− | | spring| summer | fall | winter = [[File:@@@@.png|24px]] [[@@@@]] | + | | any | all = All |
− | | #default = @@@@ | + | | #default = @@@@}} }}<!-- end arrayprint --> |}} |
− | + | {{#if:{{{weather|}}} |{{#arraydefine:weather|{{{weather|}}}|/}} | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Weather: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{#arrayprint:weather| / |@@@@ | |
− | + | |{{#switch: {{lc:@@@@}} | |
− | + | | sunny | sun | rainy | rain | polleny | pollen | wind | windy | stormy | storm | snowy | snow = {{weather inline|@@@@}} | |
− | + | | any | all = Any | |
− | + | | #default = {{ucfirst:@@@@}} | |
− | + | }} | |
− | + | }} | |
− | + | |}}<!-- | |
− | + | -->{{#if:{{{difficulty|}}} |<nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Difficulty: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{difficulty|}}} |}}<!-- | |
− | + | -->{{#if:{{{size|}}} |<nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Size: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{{size|}}} |}}<!-- | |
− | + | -->{{#if:{{{edibility|}}} |<nowiki /> | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection"{{!}}Healing Effect: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{#iferror: {{Edibility|{{{edibility|}}}|quality=true}} | Inedible | {{Edibility|{{{edibility|0}}}|quality=true|iridium={{{iridium|}}}}}}} |}} | |
− | |||
− | |||
|- | |- | ||
|id="infoboxsection" colspan="2" align="center"|Sell Prices | |id="infoboxsection" colspan="2" align="center"|Sell Prices | ||
|- | |- | ||
|id="infoboxsection"|Base Price: | |id="infoboxsection"|Base Price: | ||
− | |id="infoboxdetail"|{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{price|0}}}}} | + | |id="infoboxdetail"| {{#if:{{{price|}}} | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{price|0}}}|{{#if:{{{iridium|}}}|iridium|}}}} | {{#if:{{{sellprice|}}} | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|0}}}|{{#if:{{{iridium|}}}|iridium|}}}} |}} }} |
|- | |- | ||
|id="infoboxsection"|[[File:Fisher.png|24px|link=]] Fisher Profession:<br/><span style="white-space:nowrap; padding-right: 5px;">''(+25% Sell Price)''</span> | |id="infoboxsection"|[[File:Fisher.png|24px|link=]] Fisher Profession:<br/><span style="white-space:nowrap; padding-right: 5px;">''(+25% Sell Price)''</span> | ||
− | |id="infoboxdetail"|{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:{{{price|0}}}*1.25}}}} | + | |id="infoboxdetail"|{{#if:{{{price|}}} | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:{{{price|0}}}*1.25}}|{{#if:{{{iridium|}}}|iridium|}} }} | {{#if:{{{sellprice|}}} | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:{{{sellprice|0}}}*1.25}}|{{#if:{{{iridium|}}}|iridium|}}}} |}} }} |
|- | |- | ||
|id="infoboxsection"|[[File:Angler Icon.png|24px|link=]] Angler Profession:<br/><span style="white-space:nowrap; padding-right: 5px;">''(+50% Sell Price)''</span> | |id="infoboxsection"|[[File:Angler Icon.png|24px|link=]] Angler Profession:<br/><span style="white-space:nowrap; padding-right: 5px;">''(+50% Sell Price)''</span> | ||
− | |id="infoboxdetail"|{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:{{{price|0}}}*1.50}}}} | + | |id="infoboxdetail"|{{#if:{{{price|}}} | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:{{{price|0}}}*1.50}}|{{#if:{{{iridium|}}}|iridium|}}}} | {{#if:{{{sellprice|}}} | {{Qualityprice|{{{name|{{PAGENAME}}}}}|{{#expr:{{{sellprice|0}}}*1.50}}|{{#if:{{{iridium|}}}|iridium|}}}} |}} }} |
|} | |} | ||
− | |||
</div>{{#if:{{{debug mode|}}}||[[Category:Fish]]}}{{InfoboxSEO}}{{#seo: | </div>{{#if:{{{debug mode|}}}||[[Category:Fish]]}}{{InfoboxSEO}}{{#seo: | ||
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | |og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | ||
}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | }}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Revision as of 23:12, 24 April 2017
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) |