Difference between revisions of "Template:Infobox Sea Creature"

From Nookipedia, the Animal Crossing wiki
m
(Adding simple alt text for infobox image)
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Infobox 2.0
+
<noinclude>{{#cargo_declare:
 +
_table=sea_creature
 +
|url = String
 +
|name = String
 +
|image = String
 +
|image_url = String
 +
|nl = Boolean
 +
|nh = Boolean
 +
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:Removed fish|{{Infobox Fish/CargoAttach}}|}}{{#cargo_store:
 +
_table=sea_creature
 +
|url = {{canonicalurl:{{PAGENAME}}}}
 +
|name = {{{name|{{PAGENAME}}}}}
 +
|image = {{{image|}}}
 +
|image_url = {{filepath:{{{image|}}}}}
 +
|nl =  {{#incat:New Leaf sea creatures|Yes|No}}
 +
|nh =  {{#incat:New Horizons sea creatures|Yes|No}}
 +
}}<!-- Cargo Store for former fishes --> {{#incat:Removed fish|
 +
{{#cargo_store:
 +
_table=fish
 +
|url = {{canonicalurl:{{PAGENAME}}}}
 +
|name = {{{name|{{PAGENAME}}}}}
 +
|image = {{{image|}}}
 +
|image_url = {{filepath:{{{image|}}}}}
 +
|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}}
 +
|pc = {{#incat:Pocket Camp fish|Yes|No}}
 +
|nl = No
 +
|nh = No
 +
|film = No
 +
|hhd = No
 +
}} | }} }}</includeonly>{{Infobox 2.0
 
  | title          = {{{name|Sea Creature}}}
 
  | title          = {{{name|Sea Creature}}}
 
  | primarycolor  = 215 100
 
  | primarycolor  = 215 100
  
  | image          = [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
+
  | image          = [[File:{{{image|Nia.png}}}|{{{imagesize|150px}}}|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    = sea creatures
 
  | appearances    = sea creatures
 +
| customcat-eplus= {{#if:{{{customcat-eplus|}}}|{{{customcat-eplus}}}|sea creatures}}
 +
| customcat-ww  = {{#if:{{{customcat-ww|}}}|{{{customcat-ww}}}|sea creatures}}
 +
| customcat-cf  = {{#if:{{{customcat-cf|}}}|{{{customcat-cf}}}|sea creatures}}
 
  | o-appearances  = sea creatures
 
  | o-appearances  = sea creatures
 +
| customcat-pc  = {{#if:{{{customcat-pc|}}}|{{{customcat-pc}}}|sea creatures}}
  
 
  | languages      = Name
 
  | languages      = Name
Line 43: Line 63:
 
  | 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:{{{appearances|}}}| [[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|}}}| [[Category:Pages with an outdated infobox critter template]]}}}}{{#if:{{{name|}}}||[[Category:Critters with missing parameters]]}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>
 

Revision as of 20:35, September 25, 2021

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

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

Other appearances
Name in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown

Template documentation (view)


Usage

{{Infobox Sea Creature
|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               = 
|movement           =
|shadow             = 
|rarity             = 
|price              = 
}}

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

  • scientific name is the scientific name of the sea creature in Latin.
  • family is the family of the sea creature 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 sea creature is available.
  • timeday is the time of the day that the sea creature is available.
  • found is the where the sea creature can be found.
  • size is the size of the sea creature (legacy games).
  • shadow is the shadow size of the sea creature.
  • movement is the movement speed of the sea creature.
  • rarity is the rarity of the sea creature.
  • price is the sell price of the sea creature.

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

Example

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

Other appearances
Name in other languages
 ホタテ
 虾夷扇贝
 Pétoncle
 Vieira
 Capasanta
 Гребешок
 가리비
 虾夷扇贝
 Pétoncle
 Vieira
 Kammmuschel
 Mantelschelp
{{Infobox Sea Creature
|name               = Scallop
|ja-name            = ホタテ
|ko-name            = 가리비
|zh-name            = 虾夷扇贝
|fr-name            = Pétoncle
|it-name            = Capasanta
|es-name            = Vieira
|de-name            = Kammmuschel
|nl-name            = Mantelschelp
|ru-name            = Гребешок
|image              = Scallop NH.png
|imagesize          = 200px
|family             = Pectinidae
|timeyear           = All year
|timeday            = All day
|found              = [[Sea]] and [[Tortimer Island|Island]]
|size               = 14 cm
|shadow             = Medium
|movement           = Erratic
|rarity             = Uncommon
|price              = 1,000 [[Bells]]
}}