Difference between revisions of "Template:Infobox Fish"

From Nookipedia, the Animal Crossing wiki
m
(Switching to CSS colour class)
 
(19 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Infobox 2.0
+
<noinclude>{{#cargo_declare:
  | title          = {{{name|Fish}}}
+
_table=fish
 +
|url = String
 +
|name = String
 +
|image = String
 +
|image_url = String
 +
|icon = String
 +
|icon_url = String
 +
|fish_sort = Integer
 +
|sea_creature = Boolean
 +
|dnm = Boolean
 +
|ac = Boolean
 +
|e_plus = Boolean
 +
|ww = Boolean
 +
|cf = Boolean
 +
|nl = Boolean
 +
|nh = Boolean
 +
|film = Boolean
 +
|hhd = Boolean
 +
|pc = Boolean
 +
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 +
_table=fish
 +
|url = {{canonicalurl:{{PAGENAME}}}}
 +
|name = {{{name|{{PAGENAME}}}}}
 +
|image = {{{image|}}}
 +
|image_url = {{filepath:{{{image|}}}}}
 +
|icon = {{{icon|}}}
 +
|icon_url = {{filepath:{{{icon|}}}}}
 +
|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}}}}}}}}}}}}}}
 +
|sea_creature = No
 +
|dnm = {{#incat:Doubutsu no Mori fish|Yes|No}}
 +
|ac =  {{#incat:Animal Crossing fish|Yes|No}}
 +
|e_plus =  {{#incat:Doubutsu no Mori e+ fish|Yes|No}}
 +
|ww =  {{#incat:Wild World fish|Yes|No}}
 +
|cf =  {{#incat:City Folk fish|Yes|No}}
 +
|nl =  {{#incat:New Leaf fish|Yes|No}}
 +
|nh =  {{#incat:New Horizons fish|Yes|No}}
 +
|film =  {{#incat:Gekijōban Doubutsu no Mori fish|Yes|No}}
 +
|hhd =  {{#incat:Happy Home Designer fish|Yes|No}}
 +
|pc =  {{#incat:Pocket Camp fish|Yes|No}}
 +
}}}}{{#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
 +
| colorclass    = color-fish
 +
  | title          = {{#invoke:SentenceCase|main|{{{name|Fish}}}}}
 
  | primarycolor  = 200 100
 
  | primarycolor  = 200 100
 +
| lefticon      = {{#if:{{{icon|}}}|[[File:{{{icon|}}}|sub|32px|link=|class=sprite]]}}
 +
| righticon      = {{#if:{{{icon|}}}|&nbsp;}}
  
  | image          = [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
+
  | image          = [[File:{{{image|Nia.png}}}|{{{imagesize|200x200px}}}|alt=Artwork of {{{name|}}}]]
  
 
  | subtitlebelow  = gallery
 
  | subtitlebelow  = gallery
  
  | widelabel      = Scientific name
+
  | widelabel      = Real-world info
  | widedata      = ''{{{scientific name|Unknown}}}''
+
  | widedata      = Name: ''{{{scientific name|Unknown}}}''<br>Family: ''{{{family|Unknown}}}''
| widelabel2    =  Family
 
| widedata2      = ''{{{family|Unknown}}}''
 
 
 
| label          = Months available
 
| data          = {{{timeyear|}}}
 
| label2        = Times available
 
| data2          = {{{timeday|}}}
 
| label3        = Location
 
| data3          = {{{found|}}}
 
| label4        = Size
 
| data4          = {{{size|}}}
 
| label5        = Shadow size
 
| data5          = {{{shadow|}}}
 
| label6        = Rarity
 
| data6          = {{{rarity|}}}
 
| label7        = Sell price
 
| data7          = {{{price|}}}
 
  
 
  | appearances    = fish
 
  | appearances    = fish
 
  | o-appearances  = fish
 
  | o-appearances  = fish
  
  | languages      = Name
+
  | languages      = Names
 
  | ja-name        = {{{ja-name|}}}
 
  | ja-name        = {{{ja-name|}}}
 
  | ko-name        = {{{ko-name|}}}
 
  | ko-name        = {{{ko-name|}}}
Line 43: Line 69:
 
  | nl-name        = {{{nl-name|}}}
 
  | nl-name        = {{{nl-name|}}}
 
  | ru-name        = {{{ru-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>
<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>
 
|}{{#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:{{{appearances|}}}{{{appearance|}}}| [[Category:Pages with an outdated infobox critter template]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>
 

Latest revision as of 18:39, May 17, 2024

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

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

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>
}}