Difference between revisions of "Template:Infobox Fish"

From Nookipedia, the Animal Crossing wiki
m
(adding sentence case invoke)
 
(31 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| id="Infobox-fish" class="infobox" align="right" style="background: #66ccff; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #4f9fc6; width: 25%"
+
<noinclude>{{#cargo_declare:
|-
+
_table=fish
! colspan="3" align="center" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
+
|url = String
|-
+
|name = String
| colspan="3" style="width:100%; border-top: 1px solid #4f9fc6; line-height:2px;" | &nbsp;
+
|image = String
|- style="text-align:center;"
+
|image_url = String
| colspan="3" |
+
|icon = String
<div style="display:inline-block;">
+
|icon_url = String
{| style="text-align:left; width:100%; line-height:14px"
+
|fish_sort = Integer
| [[File:Flag of Japan.png|Japanese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{ja-name|}}}|{{{ja-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span>
+
|sea_creature = Boolean
| <span style="padding-left:{{{spacing|.6em}}};"></span>[[File:Flag of Korea.png|Korean|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{ko-name|}}}|{{{ko-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|dnm = Boolean
| [[File:Flag of the People's Republic of China.png|Chinese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{zh-name|}}}|{{{zh-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span>
+
|ac = Boolean
|-
+
|e_plus = Boolean
| [[File:Flag of France.png|French|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{fr-name|}}}|{{{fr-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span>
+
|ww = Boolean
| <span style="padding-left:{{{spacing|.6em}}};"></span>[[File:Flag of Italy.png|Italian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{it-name|}}}|{{{it-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|cf = Boolean
| [[File:Flag of Spain.png|Spanish|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{es-name|}}}|{{{es-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span>
+
|nl = Boolean
|-
+
|nh = Boolean
| [[File:Flag of Germany.png|German|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{de-name|}}}|{{{de-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span>
+
|film = Boolean
| <span style="padding-left:{{{spacing|.6em}}};"></span>[[File:Flag of the Netherlands.png|Dutch|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{nl-name|}}}|{{{nl-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|hhd = Boolean
| [[File:Flag of Russia.png|Russian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{ru-name|}}}|{{{ru-name|}}}|{{Colorshow|00aaff|Unknown}}}}</span>
+
|pc = Boolean
|}</div>
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
|-
+
_table=fish
| style="background-color: #fff; text-align:center; {{roundy|10px}}; padding:12px;" colspan="3" {{!}} [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
+
|url = {{canonicalurl:{{PAGENAME}}}}
|-
+
|name = {{{name|{{PAGENAME}}}}}
! style="background: #4f9fc6; {{roundytl|10px}}" align="right" | Scientific name
+
|image = {{{image|}}}
| style="background:#ffffff; {{roundytr|10px}}" align="left" | ''{{{scientific name|Unknown}}}''
+
|image_url = {{filepath:{{{image|}}}}}
|- {{#if:{{{family|}}}|
+
|icon = {{{icon|}}}
{{!-}}
+
|icon_url = {{filepath:{{{icon|}}}}}
! style="background: #4f9fc6" align="right" {{!}} Family
+
|fish_sort = {{#incat:Doubutsu no Mori fish|1|{{#incat:Animal Crossing fish|2|{{#incat:Doubutsu no Mori e+ fish|3|{{#incat:Wild World fish|4|{{#incat:City Folk fish|5|{{#incat:New Leaf fish|6|{{#incat:New Horizons fish|7}}}}}}}}}}}}}}
{{!}} style="background:#ffffff" align="left" {{!}} ''{{{family|}}}}}''
+
|sea_creature = No
|- {{#if:{{{timeyear|}}}|
+
|dnm = {{#incat:Doubutsu no Mori fish|Yes|No}}
{{!-}}
+
|ac = {{#incat:Animal Crossing fish|Yes|No}}
! style="background: #4f9fc6" align="right" {{!}} Time of year
+
|e_plus = {{#incat:Doubutsu no Mori e+ fish|Yes|No}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{timeyear|}}}}}
+
|ww = {{#incat:Wild World fish|Yes|No}}
|- {{#if:{{{timeday|}}}|
+
|cf = {{#incat:City Folk fish|Yes|No}}
{{!-}}
+
|nl = {{#incat:New Leaf fish|Yes|No}}
! style="background: #4f9fc6" align="right" {{!}} Time of day
+
|nh = {{#incat:New Horizons fish|Yes|No}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{timeday|}}}}}
+
|film = {{#incat:Gekijōban Doubutsu no Mori fish|Yes|No}}
|- {{#if:{{{found|}}}|
+
|hhd = {{#incat:Happy Home Designer fish|Yes|No}}
{{!-}}
+
|pc =  {{#incat:Pocket Camp fish|Yes|No}}
! style="background: #4f9fc6" align="right" {{!}} Location
+
}}}}{{#incat:Removed fish|<metakeywords>fish,critter,animal crossing</metakeywords>|<metakeywords>fish,critter,animal crossing, acnh, new horizons</metakeywords>}}{{#seo:|image={{{image|}}}}}</includeonly>{{Infobox 2.0
{{!}} style="background:#ffffff" align="left" {{!}} {{{found|}}}}}
+
| title          = {{#invoke:SentenceCase|main|{{{name|Fish}}}}}
|- {{#if:{{{size|}}}|
+
| primarycolor  = 200 100
{{!-}}
+
| lefticon      = {{#if:{{{icon|}}}|[[File:{{{icon|}}}|sub|32px|link=|class=sprite]]}}
! style="background: #4f9fc6" align="right" {{!}} Size
+
| righticon      = {{#if:{{{icon|}}}|&nbsp;}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{size|}}}}}
 
|- {{#if:{{{shadow|}}}|
 
{{!-}}
 
! style="background: #4f9fc6" align="right" {{!}} Shadow size
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{shadow|}}}}}
 
|- {{#if:{{{movement|}}}|
 
{{!-}}
 
! style="background: #4f9fc6" align="right" {{!}} Shadow movement
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{movement|}}}}}
 
|- {{#if:{{{rarity|}}}|
 
{{!-}}
 
! style="background: #4f9fc6" align="right" {{!}} Rarity
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{rarity|}}}}}
 
|- {{#if:{{{price|}}}|
 
{{!-}}
 
! style="background: #4f9fc6" align="right" {{!}} Selling price
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{price|}}}}}
 
|-
 
! style="border: 1px solid #4f9fc6; background: #4f9fc6; text-align:right; vertical-align:top; padding:0 3px 0 0;" {{!}} Main Appearances
 
{{!}} id="Infobox-fish-debut" colspan="2" style="background:#fff; border: 1px solid #fff; {{!}}
 
{{#incat:Doubutsu no Mori fish|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=no}}}}
 
{{#incat:Animal Crossing fish|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}}
 
{{#incat:Doubutsu no Mori e+ fish|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}}}}
 
{{#incat:Wild World fish|{{Infobox Appearance|game={{WW|shortest}}|appears=yes}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}}
 
{{#incat:City Folk fish|{{Infobox Appearance|game={{CF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}}
 
{{#incat:New Leaf fish|{{Infobox Appearance|game={{NL|shortest}}|appears=yes}}|{{Infobox Appearance|game={{NL|shortest}}|appears=no}}}}
 
{{#incat:New Horizons fish|{{Infobox Appearance|game={{NH|shortest}}|appears=yes}}|{{Infobox Appearance|game={{NH|shortest}}|appears=no}}}}
 
|-
 
! style="border: 1px solid #4f9fc6; background: #4f9fc6; text-align:right; vertical-align:top; padding:0 3px 0 0; {{roundybl|10px}};" {{!}} Other Appearances
 
{{!}} id="Infobox-fish-debut" colspan="2" style="background:#fff; border: 1px solid #fff; {{roundybr|10px}};" {{!}}
 
{{#incat:Pocket Camp fish|{{Infobox Appearance|game={{PC|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PC|shortest}}|appears=no}}}}
 
|}<includeonly>
 
{| style="display:none;"
 
|-
 
|<span id="api-critter_name" style="display:none;">{{{name|Unknown}}}</span><span id="api-critter_image" style="display:none;">{{filepath:{{{image|Nia.png}}}|{{{imagesize|200px}}}}}</span><span id="api-critter_scientific-name" style="display:none;">{{{scientific name|Unknown}}}</span><span id="api-critter_family" style="display:none;">{{{family|Unknown}}}</span><span id="api-critter_time-year" style="display:none;">{{{timeyear|Unknown}}}</span><span id="api-critter_time-day" style="display:none;">{{{timeday|Unknown}}}</span><span id="api-critter_location" style="display:none;">{{{found|Unknown}}}</span><span id="api-critter_size" style="display:none;">{{{size|Unknown}}}</span><span id="api-critter_shadow" style="display:none;">{{{shadow|Unknown}}}</span><span id="api-critter_rarity" style="display:none;">{{{rarity|Unknown}}}</span><span id="api-critter_price" style="display:none;">{{{price|Unknown}}}</span><span id="api-critter_movement" style="display:none;">{{{movement|Unknown}}}</span><span id="api-critter_link" style="display:none;">{{fullurl:{{FULLPAGENAME}}}}</span><span id="api-critter_updated" style="display:none;">{{REVISIONMONTH1}}/{{REVISIONDAY}}/{{REVISIONYEAR}}</span><span id="api-critter_cached" style="display:none;">{{LOCALMONTH}}/{{LOCALDAY}}/{{LOCALYEAR}} {{LOCALTIME}}</span>
 
|}</includeonly><noinclude>
 
<pre>
 
{{Infobox Fish
 
|name=
 
|ja-name=
 
|ko-name=
 
|zh-name=
 
|fr-name=
 
|it-name=
 
|es-name=
 
|de-name=
 
|nl-name=
 
|ru-name=
 
|image=
 
|imagesize=
 
|scientific name=
 
|family=
 
|timeyear=
 
|timeday=
 
|found=
 
|size=
 
|shadow=
 
|movement=
 
|rarity=
 
|price=
 
}}</pre>
 
[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>
 
  
<includeonly>{{#ifeq:{{NAMESPACE}}|#default|{{#if:{{{ja-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:Critters with missing other language information]]}}}}</includeonly>
+
| image          = [[File:{{{image|Nia.png}}}|{{{imagesize|200x200px}}}|alt=Artwork of {{{name|}}}]]
 +
 
 +
| subtitlebelow  = gallery
 +
 
 +
| widelabel      = Real-world info
 +
| widedata      = Name: ''{{{scientific name|Unknown}}}''<br>Family: ''{{{family|Unknown}}}''
 +
 
 +
| appearances    = fish
 +
| o-appearances  = fish
 +
 
 +
| languages      = Names
 +
| ja-name        = {{{ja-name|}}}
 +
| ko-name        = {{{ko-name|}}}
 +
| zh-name        = {{{zh-name|}}}
 +
| zht-name      = {{{zht-name|{{{zh-name|}}}}}}
 +
| fr-name        = {{{fr-name||}}}
 +
| frq-name      = {{{frq-name|{{{fr-name||}}}}}}
 +
| es-name        = {{{es-name|}}}
 +
| esl-name      = {{{esl-name|{{{es-name|}}}}}}
 +
| it-name        = {{{it-name|}}}
 +
| de-name        = {{{de-name|}}}
 +
| nl-name        = {{{nl-name|}}}
 +
| ru-name        = {{{ru-name|}}}
 +
}}<includeonly>{{#ifeq:{{NAMESPACE}}||{{#if:{{{ja-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:Critters with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:Critters with missing other language information]]}} {{#if:{{{icon|}}}||[[Category:Pages missing critter icon in infobox]]}}  {{#if:{{{appearances|}}}{{{appearance|}}}| [[Category:Pages with an outdated infobox critter template]]}}}} {{#incat:Articles with Blathers template implementation||[[Category:Articles requiring Blathers template]]}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>

Latest revision as of 20:17, November 26, 2022

This template defines the table "fish". View table.

Fish
Artwork of
Real-world info
Name: Unknown
Family: Unknown
Main appearances

Other appearances
Names in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown

Template documentation (view)


Usage

{{Infobox Fish
|name               = 
|ja-name            = 
|ko-name            = 
|zh-name            = 
|fr-name            = 
|it-name            = 
|es-name            = 
|de-name            = 
|nl-name            = 
|ru-name            = 
|image              = 
|imagesize          = 
|scientific name    = 
|family             = 
|timeyear           = 
|timeday            = 
|found              = 
|size               = 
|shadow             = 
|rarity             = 
|price              = 
}}

This infobox is for articles about fish in the series. Many of the parameters are straightforward, but the below ones require special consideration:

  • scientific name is the scientific name of the fish in Latin.
  • family is the family of the fish in Latin.

The following parameters should not be removed because it still using in API, even if information moved to separate info templates:

  • timeyear is the months that the fish is available.
  • timeday is the time of the day that the fish is available.
  • found is the where the fish can be found.
  • size is the size of the fish (legacy games).
  • shadow is the shadow size of the fish.
  • rarity is the rarity of the fish.
  • price is the sell price of the fish.

The appearances are auto-assigned depending on category using Template:Infobox Appearance and PageInCat extension.

Example

Sea Bass
Artwork of Sea Bass
Real-world info
Name: Lateolabrax japonicus
Family: Lateolabracidae
Main appearances

Other appearances
Names in other languages
 スズキ
 농어
 Spigola
 Seebarsch
 鲈鱼
 Bar commun
 Lubina
 Zeebaars
 鲈鱼
 Bar commun
 Lubina
 Морской судак
{{Infobox Fish
|name               = Sea Bass
|ja-name            = スズキ
|ko-name            = 농어
|zh-name            = 鲈鱼
|fr-name            = Bar commun
|it-name            = Spigola
|es-name            = Lubina
|de-name            = Seebarsch
|nl-name            = Zeebaars
|ru-name            = Морской судак
|image              = Sea Bass NH.png
|imagesize          = 200px
|scientific name    = Lateolabrax japonicus
|family             = Lateolabracidae
|timeyear           = Mid-September to Mid-August (''Animal Crossing'')<br> All year (other games)
|timeday            = All day
|found              = [[Sea]]
|size               = 0.99 m
|shadow             = Large <small>({{PG|nolink}})</small> <br> Very large <small>({{WW|short|nolink}}, {{CF|short|nolink}}, {{NL|short|nolink}}, {{NH|short|nolink}})</small>
|rarity             = Common
|price              = 120 Bells <small>(''Animal Crossing'')</small><br>160 Bells <small>({{WW|short|nolink}})</small><br>140 Bells <small>(PAL {{WW|short|nolink}})</small><br>200 Bells <small>({{CF|short|nolink}}, {{NL|short|nolink}}, {{aF|short|nolink}})</small><br>400 Bells <small>({{NH|short|nolink}})</small>
}}