Difference between revisions of "Template:Infobox fish"
Jump to navigation
Jump to search
m (Fix PAGENAME braces) |
m (recognize standard quality param (eventually phase out non-standard params); apply quality consistently to all sections) |
||
Line 89: | Line 89: | ||
{{!}} id="infoboxdetail" {{!}}<!-- | {{!}} id="infoboxdetail" {{!}}<!-- | ||
--> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- | --> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- | ||
− | --> {{#arraydefine:$quality_values| | + | --> {{#arraydefine:$quality_values|{{ParseInputQuality|quality={{{quality|}}}|iridium={{{iridium|}}}}}}}<!-- |
--> {{#arrayprint:$quality_values||@qual@<!-- | --> {{#arrayprint:$quality_values||@qual@<!-- | ||
--> | {{#ifeq:@qual@|Normal|| [[File:@qual@ Quality.png|14px|link=|alt=@qual@]] }}<!-- | --> | {{#ifeq:@qual@|Normal|| [[File:@qual@ Quality.png|14px|link=|alt=@qual@]] }}<!-- | ||
Line 103: | Line 103: | ||
{{!}} id="infoboxsection" colspan="2" style="text-align: center;" {{!}} {{#arrayprint:$lang_healingeffect}} | {{!}} id="infoboxsection" colspan="2" style="text-align: center;" {{!}} {{#arrayprint:$lang_healingeffect}} | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{healq|true}}} |iridium={{{iridium|}}} |statistics=Energy}} | + | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{quality|{{{healq|true}}}}}} |iridium={{{iridium|}}} |statistics=Energy}} |
− | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{healq|true}}} |iridium={{{iridium|}}} |statistics=Health}} | + | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{quality|{{{healq|true}}}}}} |iridium={{{iridium|}}} |statistics=Health}} |
|<nowiki/> | |<nowiki/> | ||
{{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_healingeffect}}: | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_healingeffect}}: | ||
− | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{healq|true}}} |iridium={{{iridium|}}}}} | + | {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{{quality|{{{healq|true}}}}}} |iridium={{{iridium|}}}}} |
}}}}<!-- | }}}}<!-- | ||
Line 121: | Line 121: | ||
|price = {{{price|}}} | |price = {{{price|}}} | ||
|iridium = {{{iridium|}}} | |iridium = {{{iridium|}}} | ||
+ | |quality = {{{quality|true}}} | ||
|hide = {{{hideprice|}}} | |hide = {{{hideprice|}}} | ||
|ncolumns = 3 | |ncolumns = 3 | ||
Line 143: | Line 144: | ||
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | |og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | ||
}}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> | }}</includeonly><noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/> | ||
− | {{{{FULLPAGENAME}}/doc}} }}</noinclude> | + | {{{{FULLPAGENAME}}/doc}} }}}</noinclude> |
Revision as of 18:53, 13 September 2020
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) |
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) |
}