Difference between revisions of "Template:Infobox fish"
Jump to navigation
Jump to search
m (need to pass link to infosection for sake of text, etc.) |
(add generic xp and source params for sake of crab pot/forageable fish) |
||
Line 3: | Line 3: | ||
// TRANSLATIONS | // TRANSLATIONS | ||
-->{{#arraydefine:$lang_information | Information }}<!-- | -->{{#arraydefine:$lang_information | Information }}<!-- | ||
+ | -->{{#arraydefine:$lang_source | Source }}<!-- | ||
-->{{#arraydefine:$lang_foundin | Found in }}<!-- | -->{{#arraydefine:$lang_foundin | Found in }}<!-- | ||
-->{{#arraydefine:$lang_time | Time of Day }}<!-- | -->{{#arraydefine:$lang_time | Time of Day }}<!-- | ||
Line 14: | Line 15: | ||
-->{{#arraydefine:$lang_fishsize | Size (inches)}}<!-- | -->{{#arraydefine:$lang_fishsize | Size (inches)}}<!-- | ||
-->{{#arraydefine:$lang_xp | XP}}<!-- | -->{{#arraydefine:$lang_xp | XP}}<!-- | ||
+ | -->{{#arraydefine:$lang_fishingxp | Fishing XP }}<!-- | ||
-->{{#arraydefine:$lang_healingeffect | Healing Effect }}<!-- | -->{{#arraydefine:$lang_healingeffect | Healing Effect }}<!-- | ||
-->{{#arraydefine:$lang_roe | Roe }}<!-- | -->{{#arraydefine:$lang_roe | Roe }}<!-- | ||
Line 47: | Line 49: | ||
| colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" | {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | | colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;" | {{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | ||
|- | |- | ||
− | | colspan="2" id="infoboxsection" style="text-align:center;" | {{#arrayprint:$lang_information}}{{#if:{{{location|}}} |<nowiki /> | + | | colspan="2" id="infoboxsection" style="text-align:center;" | {{#arrayprint:$lang_information}}{{#if:{{{source|}}}|<nowiki/> |
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_source}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}} | ||
+ | }}{{#if:{{{location|}}} |<nowiki /> | ||
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}: | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}: | ||
Line 84: | Line 90: | ||
| {{#expr:{{{size|}}}*2.54 round 0}}}} | | {{#expr:{{{size|}}}*2.54 round 0}}}} | ||
| {{{size|}}} | | {{{size|}}} | ||
− | }}}}{{#if:{{{ | + | }}}}{{#if:{{{xp|}}}|<nowiki /> |
{{!}}- | {{!}}- | ||
{{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}: | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}: | ||
+ | {{!}} id="infoboxdetail" {{!}} {{{xp|}}} | ||
+ | }}{{#if:{{{difficulty|}}}|<nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishingxp}}: | ||
{{!}} id="infoboxdetail" {{!}}<!-- | {{!}} id="infoboxdetail" {{!}}<!-- | ||
--> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- | --> {{#arraydefine:$legendary|{{ParseInputValues|code=legend|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}}<!-- |
Revision as of 15:14, 4 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) |