Difference between revisions of "Template:Infobox Bug"

From Nookipedia, the Animal Crossing wiki
m
(adding sentence case invoke)
 
(25 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{| id="Infobox-bug" class="infobox" align="right" style="background: #A2DB1E; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #77AC3F; width: 25%"
+
<noinclude>{{#cargo_declare:
|- align="center"
+
_table=bug
! colspan="3" align="center" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
+
|url = String
|-
+
|name = String
| colspan="3" style="width:100%; border-top: 1px solid #77AC3F; 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"
+
|bug_sort = Integer
| [[File:Flag of Japan.png|Japanese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{ja-name|}}}|{{{ja-name|}}}|{{Colorshow|53700f|Unknown}}}}</span>
+
|dnm = 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|53700f|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|ac = 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|53700f|Unknown}}}}</span>
+
|e_plus = Boolean
|-
+
|ww = Boolean
| [[File:Flag of France.png|French|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{fr-name|}}}|{{{fr-name|}}}|{{Colorshow|53700f|Unknown}}}}</span>
+
|cf = 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|53700f|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|nl = Boolean
| [[File:Flag of Spain.png|Spanish|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{es-name|}}}|{{{es-name|}}}|{{Colorshow|53700f|Unknown}}}}</span>
+
|nh = Boolean
|-
+
|film = Boolean
| [[File:Flag of Germany.png|German|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{de-name|}}}|{{{de-name|}}}|{{Colorshow|53700f|Unknown}}}}</span>
+
|hhd = 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|53700f|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|pc = Boolean
| [[File:Flag of Russia.png|Russian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{ru-name|}}}|{{{ru-name|}}}|{{Colorshow|53700f|Unknown}}}}</span>
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
|}</div>
+
_table=bug
|- align="center"
+
|url = {{canonicalurl:{{PAGENAME}}}}
| style="background: #caecc9; {{roundy|10px}}" colspan="2" | [[File:{{{image|Nia.png}}}|{{{imagesize|180px}}}]]
+
|name = {{{name|{{PAGENAME}}}}}
|-
+
|image = {{{image|}}}
! style="background: #77AC3F; {{roundytl|10px}}" align="right" | Scientific name
+
|image_url = {{filepath:{{{image|}}}}}
| style="background:#ffffff; {{roundytr|10px}}" align="left" | ''{{{scientific name|Unknown}}}''
+
|icon = {{{icon|}}}
|- {{#if:{{{family|}}}|
+
|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}}}}}}}}}}}}}}
! style="background: #77AC3F" align="right" {{!}} Family
+
|dnm = {{#incat:Doubutsu no Mori bugs|Yes|No}}
{{!}} style="background:#ffffff" align="left" {{!}} ''{{{family|}}}}}''
+
|ac = {{#incat:Animal Crossing bugs|Yes|No}}
|- {{#if:{{{timeyear|}}}|
+
|e_plus = {{#incat:Doubutsu no Mori e+ bugs|Yes|No}}
{{!-}}
+
|ww = {{#incat:Wild World bugs|Yes|No}}
! style="background: #77AC3F" align="right" {{!}} Time of year
+
|cf = {{#incat:City Folk bugs|Yes|No}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{timeyear|}}}}}
+
|nl = {{#incat:New Leaf bugs|Yes|No}}
|- {{#if:{{{timeday|}}}|
+
|nh = {{#incat:New Horizons bugs|Yes|No}}
{{!-}}
+
|film = {{#incat:Gekijōban Doubutsu no Mori bugs|Yes|No}}
! style="background: #77AC3F" align="right" {{!}} Time of day
+
|hhd = {{#incat:Happy Home Designer bugs|Yes|No}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{timeday|}}}}}
+
|pc =  {{#incat:Pocket Camp bugs|Yes|No}}
|- {{#if:{{{found|}}}|
+
}}}}{{#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}}}}}
! style="background: #77AC3F" align="right" {{!}} Location
+
| primarycolor  = 78 76
{{!}} style="background:#ffffff" align="left" {{!}} {{{found|}}}}}
+
| lefticon      = {{#if:{{{icon|}}}|[[File:{{{icon|}}}|sub|32px|link=|class=sprite]]}}
|- {{#if:{{{size|}}}|
+
| righticon      = {{#if:{{{icon|}}}|&nbsp;}}
{{!-}}
 
! style="background: #77AC3F" align="right" {{!}} Size
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{size|}}}}}
 
|- {{#if:{{{rarity|}}}|
 
{{!-}}
 
! style="background: #77AC3F" align="right" {{!}} Rarity
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{rarity|}}}}}
 
|- {{#if:{{{price|}}}|
 
{{!-}}
 
! style="background: #77AC3F" align="right" {{!}} Selling price
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{price|}}}}}
 
|-
 
! style="background: #77AC3F; text-align:right; vertical-align:top; padding:0 3px 0 0;" {{!}} Main Appearances
 
{{!}} id="Infobox-bug-debut" colspan="2" style="background:#fff; border: 1px solid #fff; {{!}}
 
{{#incat:Doubutsu no Mori bugs|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=no}}}}
 
{{#incat:Animal Crossing bugs|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}}
 
{{#incat:Doubutsu no Mori e+ bugs|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}}}}
 
{{#incat:Wild World bugs|{{Infobox Appearance|game={{WW|shortest}}|appears=yes}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}}
 
{{#incat:City Folk bugs|{{Infobox Appearance|game={{CF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}}
 
{{#incat:New Leaf bugs|{{Infobox Appearance|game={{NL|shortest}}|appears=yes}}|{{Infobox Appearance|game={{NL|shortest}}|appears=no}}}}
 
{{#incat:New Horizons bugs|{{Infobox Appearance|game={{NH|shortest}}|appears=yes}}|{{Infobox Appearance|game={{NH|shortest}}|appears=no}}}}
 
|-
 
! style="background: #77AC3F; 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 bugs|{{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_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>
 
|}</includeonly><noinclude>
 
<pre>
 
{{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=
 
|timeyear=
 
|timeday=
 
|found=
 
|size=
 
|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|200px}}}|alt=Artwork of {{{name|}}}]]
 +
 
 +
| subtitlebelow  = gallery
 +
 
 +
| 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>

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