Difference between revisions of "Template:Infobox Bug"

From Nookipedia, the Animal Crossing wiki
(Match image background.)
(adding sentence case invoke)
(55 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{| align="right" style="background: #ADFF2F; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #9ACD32; width: 25%"
+
<noinclude>{{#cargo_declare:
|- align="center"
+
_table=bug
| colspan="2" | <big><big>'''{{{name|{{PAGENAME}}}}}'''</big></big>
+
|url = String
|- align="center"
+
|name = String
| style="background: #CAECC9; {{roundy|10px}}" colspan="2" | [[File:{{{image}}}|{{{size|200px}}}]]
+
|image = String
|-
+
|image_url = String
! style="background: #86DF2D; {{roundytl|10px}}" align="right" | Scientific name
+
|icon = String
| style="background:#FFFFFF; {{roundytr|10px}}" align="left" | {{{scientific name|Unknown}}}
+
|icon_url = String
|-
+
|bug_sort = Integer
! style="background: #86DF2D;" align="right" | Family
+
|dnm = Boolean
| style="background:#FFFFFF;" align="left" | {{{family|Unknown}}}
+
|ac = Boolean
|-
+
|e_plus = Boolean
! style="background: #86DF2D;" align="right" | Time of year
+
|ww = Boolean
| style="background:#FFFFFF;" align="left" | {{{Timeyear|Unknown}}}
+
|cf = Boolean
|-
+
|nl = Boolean
! style="background: #86DF2D;" align="right" |Time of day
+
|nh = Boolean
| style="background:#FFFFFF;" align="left" | {{{timeday|Unknown}}}
+
|film = Boolean
|-
+
|hhd = Boolean
! style="background: #86DF2D;" align="right" | Location
+
|pc = Boolean
| style="background:#FFFFFF;" align="left" | {{{found|Unknown}}}
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
|-
+
_table=bug
! style="background: #86DF2D;" align="right" | Size
+
|url = {{canonicalurl:{{PAGENAME}}}}
| style="background:#FFFFFF;" align="left" | {{{size|Unknown}}}
+
|name = {{{name|{{PAGENAME}}}}}
|-
+
|image = {{{image|}}}
! style="background: #86DF2D;" align="right" | Rarity
+
|image_url = {{filepath:{{{image|}}}}}
| style="background:#FFFFFF;" align="left" | {{{rarity|Unknown}}}
+
|icon = {{{icon|}}}
|-
+
|icon_url = {{filepath:{{{icon|}}}}}
! style="background: #86DF2D;" align="right" | Selling price
+
|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}}}}}}}}}}}}}}
| style="background:#FFFFFF;" align="left" | {{{price|Unknown}}}
+
|dnm = {{#incat:Doubutsu no Mori bugs|Yes|No}}
|-
+
|ac = {{#incat:Animal Crossing bugs|Yes|No}}
! style="background: #86DF2D; {{roundybl|10px}}" align="right" | Appearances
+
|e_plus =  {{#incat:Doubutsu no Mori e+ bugs|Yes|No}}
| style="background:#FFFFFF; {{roundybr|10px}}" align="left" | {{{appearances|Unknown}}}
+
|ww =  {{#incat:Wild World bugs|Yes|No}}
|}<noinclude>
+
|cf = {{#incat:City Folk bugs|Yes|No}}
<pre>
+
|nl =  {{#incat:New Leaf bugs|Yes|No}}
{{Infobox Bug
+
|nh =  {{#incat:New Horizons bugs|Yes|No}}
|name=
+
|film =  {{#incat:Gekijōban Doubutsu no Mori bugs|Yes|No}}
|image=
+
|hhd =  {{#incat:Happy Home Designer bugs|Yes|No}}
|scientific name=
+
|pc = {{#incat:Pocket Camp bugs|Yes|No}}
|family=
+
}}}}{{#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
|timeyear=
+
| title          = {{#invoke:SentenceCase|main|{{{name|Bug}}}}}
|timeday=
+
| primarycolor  = 78 76
|found=
+
| lefticon      = {{#if:{{{icon|}}}|[[File:{{{icon|}}}|sub|32px|link=|class=sprite]]}}
|size=
+
| righticon      = {{#if:{{{icon|}}}|&nbsp;}}
|rarity=
+
 
|price=
+
| image          = [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}|alt=Artwork of {{{name|}}}]]
|appearances=
+
 
}}</pre>
+
| subtitlebelow  = gallery
[[Category:Infobox templates]]</noinclude>
+
 
 +
| widelabel      = Real-world info
 +
| widedata      = Name: ''{{{scientific name|Unknown}}}''<br>Family: ''{{{family|Unknown}}}''
 +
 
 +
| appearances    = bugs
 +
| o-appearances  = bugs
 +
 
 +
| 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|}}}| [[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>

Revision as of 20:17, November 26, 2022

This template defines the table "bug". 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 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

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