Difference between revisions of "Template:Infobox fish"
Jump to navigation
Jump to search
m (ditto) |
(add nopricebonus parameter; fix formatting of roe links) |
||
Line 74: | Line 74: | ||
{{!}}- | {{!}}- | ||
{{!}}} }} }} }} | {{!}}} }} }} }} | ||
− | |- | + | {{#if:{{{nopricebonus|}}}| |
− | {|style="width: 100%; margin-top: -2px;" | + | {{!}}- |
− | + | {{!}}id="infoboxsection"{{!}}Sell Price: | |
− | + | {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{sellprice|0}}}|{{#if:{{{iridium|}}}|iridium=true|}}}} | |
− | + | | | |
− | { | + | {{!}}- |
− | + | {{{!}}style="width: 100%; margin-top: -2px;" | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection" colspan="2" style="text-align: center; padding-left: 0; padding-right: 0;"{{!}}Sell Prices | |
− | + | {{!}}- | |
− | + | {{{!}}style="margin: -2px 0 0 0 !important; padding: 0 !important; width: 100% !important;" | |
− | + | {{!}}- | |
− | + | {{!}}id="infoboxsection" style="width: 30%;"{{!}}Base<br />Price: | |
− | + | {{!}}id="infoboxsection" style="width: 35%;"{{!}}[[File:Fisher.png|24px|link=]] [[Skills#Fishing|<span style="color: white;">Fisher</span>]]:<br />''(+25%)'' | |
− | + | {{!}}id="infoboxsection" style="width: 35%;"{{!}}[[File:Angler Icon.png|24px|link=]] [[Skills#Fishing|<span style="color: white;">Angler</span>]]:<br />''(+50%)'' | |
− | + | {{!}}- | |
+ | {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{price|0}}}|{{#if:{{{iridium|}}}|iridium|}}|hide={{{hideprice|}}} }} | ||
+ | {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{price|0}}}|prof_mult=1.25|{{#if:{{{iridium|}}}|iridium|}}|hide={{{hideprice|}}} }} | ||
+ | {{!}}id="infoboxdetail"{{!}}{{Qualityprice|{{{name|{{PAGENAME}}}}}|{{{price|0}}}|prof_mult=1.50|{{#if:{{{iridium|}}}|iridium|}}|hide={{{hideprice|}}} }} | ||
+ | {{!}}} | ||
+ | {{!}}} | ||
+ | }} | ||
{{#if:{{{roe|}}}| | {{#if:{{{roe|}}}| | ||
{{!}}- | {{!}}- | ||
Line 96: | Line 102: | ||
{{{!}}style="margin: -2px 0 0 0 !important; padding: 0 !important; width: 100% !important;" | {{{!}}style="margin: -2px 0 0 0 !important; padding: 0 !important; width: 100% !important;" | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection" style="width: 30%;"{{!}}[[Roe]]: | + | {{!}}id="infoboxsection" style="width: 30%;"{{!}}[[Roe|<span style="color: white;">Roe</span>]]: |
− | {{!}}id="infoboxsection" style="width: 35%;"{{!}}[[{{#ifeq:{{{name|{{PAGENAME}}}}}|Sturgeon|Caviar|Aged Roe}}]]: | + | {{!}}id="infoboxsection" style="width: 35%;"{{!}}[[{{#ifeq:{{{name|{{PAGENAME}}}}}|Sturgeon|Caviar|Aged Roe}}|<span style="color: white;">{{#ifeq:{{{name|{{PAGENAME}}}}}|Sturgeon|Caviar|Aged Roe}}</span>]]: |
− | {{!}}id="infoboxsection" style="width: 35%;"{{!}}[[{{#ifeq:{{{name|{{PAGENAME}}}}}|Sturgeon|Caviar|Aged Roe}}]]:<br/>[[File:Artisan.png|24px|link=]] ''(+40%)'' | + | {{!}}id="infoboxsection" style="width: 35%;"{{!}}[[{{#ifeq:{{{name|{{PAGENAME}}}}}|Sturgeon|Caviar|Aged Roe}}|<span style="color: white;">{{#ifeq:{{{name|{{PAGENAME}}}}}|Sturgeon|Caviar|Aged Roe}}</span>]]:<br/>[[File:Artisan.png|24px|link=]] ''(+40%)'' |
{{!}}- | {{!}}- | ||
{{!}}id="infoboxdetail"{{!}}[[{{#ifexist: File:{{{roe|}}}_Roe.png|File:{{{roe|}}}_Roe.png|File:Orange_Roe.png}}|24px]] {{#expr:trunc(30+{{{price|0}}}/2)}}g | {{!}}id="infoboxdetail"{{!}}[[{{#ifexist: File:{{{roe|}}}_Roe.png|File:{{{roe|}}}_Roe.png|File:Orange_Roe.png}}|24px]] {{#expr:trunc(30+{{{price|0}}}/2)}}g |
Revision as of 15:24, 30 August 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) |