Difference between revisions of "Template:Infobox fish"
Jump to navigation
Jump to search
(add generic xp and source params for sake of crab pot/forageable fish) |
m (Change how formatting, colons are done for sake of template portability) |
||
Line 37: | Line 37: | ||
// set usemetric to true (or any nonempty value) if metric units should be used for fish size | // set usemetric to true (or any nonempty value) if metric units should be used for fish size | ||
-->{{#arraydefine:$lang_usemetric |}}<!-- | -->{{#arraydefine:$lang_usemetric |}}<!-- | ||
+ | -->{{#arraydefine:$lang_size_delim | - }}<!-- | ||
// END of translations | // END of translations | ||
Line 47: | Line 48: | ||
| colspan="2" style="padding-bottom:5px; text-align: center;" | {{Autoimage|{{{image|}}}|eng={{{eng|}}}}} | | colspan="2" style="padding-bottom:5px; text-align: center;" | {{Autoimage|{{{image|}}}|eng={{{eng|}}}}} | ||
|- | |- | ||
− | | colspan="2" id="infoboxdetail" style="text-align: center | + | | colspan="2" id="infoboxdetail" style="text-align:center;" | {{Italics|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}}} |
|- | |- | ||
| colspan="2" id="infoboxsection" style="text-align:center;" | {{#arrayprint:$lang_information}}{{#if:{{{source|}}}|<nowiki/> | | colspan="2" id="infoboxsection" style="text-align:center;" | {{#arrayprint:$lang_information}}{{#if:{{{source|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_source}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_source}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}} | {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}} | ||
}}{{#if:{{{location|}}} |<nowiki /> | }}{{#if:{{{location|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}} | {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}} | ||
}}{{#if:{{{time|}}} |<nowiki /> | }}{{#if:{{{time|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_time}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_time}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{{time|}}} | {{!}} id="infoboxdetail" {{!}} {{{time|}}} | ||
}}{{#if:{{{season|}}} |<nowiki /> | }}{{#if:{{{season|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{Season|{{{season}}}}} | {{!}} id="infoboxdetail" {{!}} {{Season|{{{season}}}}} | ||
}}{{#if:{{{weather|}}} |<nowiki /> | }}{{#if:{{{weather|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_weather}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_weather}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{Weather inline|{{{weather}}}}} | {{!}} id="infoboxdetail" {{!}} {{Weather inline|{{{weather}}}}} | ||
}}{{#if:{{{difficulty|}}} |<nowiki /> | }}{{#if:{{{difficulty|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_difficulty}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_difficulty}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{{difficulty|}}} | {{!}} id="infoboxdetail" {{!}} {{{difficulty|}}} | ||
}}{{#if:{{{behavior|}}} |<nowiki /> | }}{{#if:{{{behavior|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} [[{{#arrayprint:$lang_behaviorlink}}|<span style="color: white;">{{#arrayprint:$lang_behavior}}</span>]] | + | {{!}} id="infoboxsection" {{!}} [[{{#arrayprint:$lang_behaviorlink}}|<span style="color: white;">{{#arrayprint:$lang_behavior}}</span>]]{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{ParseInputValues|code=behav|{{{behavior|}}}|default=true|translate=true}} | {{!}} id="infoboxdetail" {{!}} {{ParseInputValues|code=behav|{{{behavior|}}}|default=true|translate=true}} | ||
}}{{#if:{{{fl|}}}|<nowiki /> | }}{{#if:{{{fl|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} [[{{#arrayprint:$lang_fishing}}|<span style="color: white;">{{#arrayprint:$lang_levelrequired}}</span>]] | + | {{!}} id="infoboxsection" {{!}} [[{{#arrayprint:$lang_fishing}}|<span style="color: white;">{{#arrayprint:$lang_levelrequired}}</span>]]{{Colon}} |
{{!}} id="infoboxdetail {{!}} {{{fl|}}} | {{!}} id="infoboxdetail {{!}} {{{fl|}}} | ||
}}{{#if:{{{size|}}}|<nowiki /> | }}{{#if:{{{size|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishsize}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishsize}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} <!-- | {{!}} id="infoboxdetail" {{!}} <!-- | ||
-->{{#if:{{#arrayprint:$lang_usemetric}} | -->{{#if:{{#arrayprint:$lang_usemetric}} | ||
| {{#if:{{#pos:{{{size|}}}|-}} | | {{#if:{{#pos:{{{size|}}}|-}} | ||
− | | {{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}} | + | | {{#expr:{{#explode:{{{size|}}}|-|0}}*2.54 round 0}} {{#arrayprint:$lang_size_delim}} {{#expr:{{#explode:{{{size|}}}|-|1}}*2.54 round 0}} |
| {{#expr:{{{size|}}}*2.54 round 0}}}} | | {{#expr:{{{size|}}}*2.54 round 0}}}} | ||
| {{{size|}}} | | {{{size|}}} | ||
}}}}{{#if:{{{xp|}}}|<nowiki /> | }}}}{{#if:{{{xp|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}} {{{xp|}}} | {{!}} id="infoboxdetail" {{!}} {{{xp|}}} | ||
}}{{#if:{{{difficulty|}}}|<nowiki /> | }}{{#if:{{{difficulty|}}}|<nowiki /> | ||
{{!}}- | {{!}}- | ||
− | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishingxp}} | + | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishingxp}}{{Colon}} |
{{!}} id="infoboxdetail" {{!}}<!-- | {{!}} id="infoboxdetail" {{!}}<!-- | ||
--> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- | --> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- |
Revision as of 21:44, 6 October 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) 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) |