Difference between revisions of "Template:Infobox Bug"

From Nookipedia, the Animal Crossing wiki
m (Removing game-specific parameters (now replaced by Template:Critter Info))
(adding sentence case invoke)
 
(14 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Infobox 2.0
+
<noinclude>{{#cargo_declare:
  | title          = {{{name|Bug}}}
+
_table=bug
 +
|url = String
 +
|name = String
 +
|image = String
 +
|image_url = String
 +
|icon = String
 +
|icon_url = String
 +
|bug_sort = Integer
 +
|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=bug
 +
|url = {{canonicalurl:{{PAGENAME}}}}
 +
|name = {{{name|{{PAGENAME}}}}}
 +
|image = {{{image|}}}
 +
|image_url = {{filepath:{{{image|}}}}}
 +
|icon = {{{icon|}}}
 +
|icon_url = {{filepath:{{{icon|}}}}}
 +
|bug_sort = {{#incat:Doubutsu no Mori bugs|1|{{#incat:Animal Crossing bugs|2|{{#incat:Doubutsu no Mori e+ bugs|3|{{#incat:Wild World bugs|4|{{#incat:City Folk bugs|5|{{#incat:New Leaf bugs|6|{{#incat:New Horizons bugs|7}}}}}}}}}}}}}}
 +
|dnm = {{#incat:Doubutsu no Mori bugs|Yes|No}}
 +
|ac =  {{#incat:Animal Crossing bugs|Yes|No}}
 +
|e_plus =  {{#incat:Doubutsu no Mori e+ bugs|Yes|No}}
 +
|ww =  {{#incat:Wild World bugs|Yes|No}}
 +
|cf =  {{#incat:City Folk bugs|Yes|No}}
 +
|nl =  {{#incat:New Leaf bugs|Yes|No}}
 +
|nh =  {{#incat:New Horizons bugs|Yes|No}}
 +
|film =  {{#incat:Gekijōban Doubutsu no Mori bugs|Yes|No}}
 +
|hhd =  {{#incat:Happy Home Designer bugs|Yes|No}}
 +
|pc =  {{#incat:Pocket Camp bugs|Yes|No}}
 +
}}}}{{#incat:Removed bugs|<metakeywords>bugs,bug,insect,critter,animal crossing</metakeywords>|<metakeywords>bugs,bug,insect,critter,animal crossing, acnh, new horizons</metakeywords>}}{{#seo:|image={{{image|}}}}}</includeonly>{{Infobox 2.0
 +
  | title          = {{#invoke:SentenceCase|main|{{{name|Bug}}}}}
 
  | primarycolor  = 78 76
 
  | primarycolor  = 78 76
 +
| 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|200px}}}|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}}}''
 
  
 
  | appearances    = bugs
 
  | appearances    = bugs
 
  | o-appearances  = bugs
 
  | o-appearances  = bugs
  
  | languages      = Name
+
  | languages      = Names
 
  | ja-name        = {{{ja-name|}}}
 
  | ja-name        = {{{ja-name|}}}
 
  | ko-name        = {{{ko-name|}}}
 
  | ko-name        = {{{ko-name|}}}
Line 28: Line 66:
 
  | 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|}}}| [[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_rarity" style="display:none;">{{{rarity|Unknown}}}</span><span id="api-critter_price" style="display:none;">{{{price|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]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>
 

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

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

Bug
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 Bug
|name               = 
|ja-name            = 
|ko-name            = 
|zh-name            = 
|fr-name            = 
|it-name            = 
|es-name            = 
|de-name            = 
|nl-name            = 
|ru-name            = 
|image              = 
|imagesize          = 
|scientific name    = 
|family             = 
}}

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

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

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

Example

Common Butterfly
Artwork of Common Butterfly
Real-world info
Name: Pieris rapae
Family: Pieridae
Main appearances

Other appearances
Names in other languages
 モンシロチョウ
 白粉蝶
 Piéride de la rave
 Mariposa común
 Farfalla comune
 Белянка
 배추흰나비
 白粉蝶
 Piéride de la rave
 Mariposa común
 Kohlweißling
 Koolwitje
{{Infobox Bug
|name               = Common Butterfly
|ja-name            = モンシロチョウ
|ko-name            = 배추흰나비
|zh-name            = 白粉蝶
|fr-name            = Piéride de la rave
|it-name            = Farfalla comune
|es-name            = Mariposa común
|de-name            = Kohlweißling
|nl-name            = Koolwitje
|ru-name            = Белянка
|image              = Common Butterfly NH.png
|imagesize          = 200px
|scientific name    = Pieris rapae
|family             = Pieridae
}}