Difference between revisions of "Template:Infobox Special"

From Nookipedia, the Animal Crossing wiki
(Adding NH appearances (icon only appears as green if NH category is present; if not present, gray icon is NOT shown, so that readers don't think the villager has been confirmed as not making an appearance))
(Switching to CSS colour class)
 
(61 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| style="background: #defe77; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #c8e56b; width: 25%; float:right"
+
<noinclude>{{#cargo_declare:
|-
+
_table=special_character
! style="text-align: center; width: 25%;" colspan="2" | <big><big>{{{name|{{PAGENAME}}}}}</big></big> {{#if:{{{appearances|}}}| [[Category:Pages with an outdated infobox special template]]}} {{#if:{{{debut|}}}| [[Category:Pages with an outdated infobox special template]]}}
+
|url = String
{{#if:{{{japanese|}}}|{{!}}-
+
|name = String
{{!}} style="background-color: #fff; text-align:center; {{roundy|5px}}; padding:5px 0 5px 0;" colspan="3" {{!}} '''{{{japanese|}}}'''|}}
+
|name_sort = String
|-
+
|alt_name = String
| style="background: #ffffff; text-align:center; {{roundy|10px}}" colspan="3" {{!}} {{{image|[[File:Nia.png|175px]]}}}<br>{{#if:{{{caption|}}}|<small>''{{{caption|}}}''</small>|}}
+
|title_color = String
|-
+
|text_color = String
| colspan="3" style="padding:0px" |
+
|ID = String
{| class="roundy" style="{{roundy}}; background:transparent; width:100%" border-collapse="collapse; margin:0px"
+
|image = String
! style="{{roundytl|10px}} border: 1px solid #c8e56b; background: #c8e56b; text-align:center; width=50%" | Species
+
|image_url = String
! style="{{roundytr|10px}} border: 1px solid #c8e56b; background: #c8e56b; text-align:center; width=50%" | Gender
+
|species = String
|-
+
|gender = String
| style="background:#ffffff; text-align:center; {{roundybl|10px}}; width=50%" | {{{species|Unknown}}}
+
|gender_japan = String
| style="background:#ffffff; text-align:center; {{roundybr|10px}}; width=50%" | {{{gender|Unknown}}}
+
|birthday = String
|}
+
|birthday_month = String
|- valign="top"
+
|birthday_day = Integer
{{#if:{{{service|}}}|
+
|birthday_sort = Integer
! style="border: 1px solid #c8e56b; background: #c8e56b; text-align:right; {{roundytl|10px}}" {{!}} Service
+
|sign = String
{{!}} colspan="2" style="border: 1px solid #ffffff; {{roundytr|10px}}" bgcolor="#ffffff" {{!}} {{{service|}}}}}
+
|quote = String
|- valign="top"
+
|quote_character = String
{{#if:{{{birthday|}}}|
+
|quote2 = String
! style="border: 1px solid #c8e56b; background: #c8e56b; text-align:right; {{#if:{{{service|}}}||{{roundytl|10px}}}}" {{!}} Birthday
+
|quote2_character = String
{{!}} colspan="2" style="border: 1px solid #ffffff; {{#if:{{{birthday|}}}||{{roundytr|10px}}}}" bgcolor="#ffffff" {{!}} {{{birthday|}}}}}
+
|speciespage_debut = String
|-
+
|dnm = Boolean
{{#if:{{{sign|}}}|
+
|plus = Boolean
! style="border: 1px solid #c8e56b; background: #c8e56b; text-align:right; vertical-align:top; padding:0 3px 0 0; {{#if: {{{birthday|}}} | | {{roundytl|10px}}}}" {{!}} Star sign
+
|ac = Boolean
{{!}} colspan="2" style="background:#ffffff; border: 1px solid #ffffff; {{#if: {{{birthday|}}} | | {{roundytr|10px}}}}" {{!}} [[File:{{{sign|}}}.png|link{{=}}{{{sign}}}|{{{sign}}}]] [[{{{sign|}}}|{{{sign|}}}]] {{{note1|}}}}} {{#if: {{{sign2|}}}| <br>[[File:{{{sign2|}}}.png|link{{=}}{{{sign2}}}|{{{sign2}}}]] [[{{{sign2|}}}|{{{sign2|}}}]] {{{note2|}}} |}}
+
|e_plus = Boolean
|-
+
|ww = Boolean
! style="border: 1px solid #c8e56b; background: #c8e56b; text-align:right; vertical-align:top; padding:0 3px 0 0;" {{!}} Main Appearances
+
|cf = Boolean
{{!}} id="Infobox-special-debut" colspan="2" style="background:#fff; border: 1px solid #fff; {{!}}
+
|nl = Boolean
{{#incat:Animal Forest characters|{{Infobox Appearance|game={{DnM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM|shortest}}|appears=no}}}}
+
|wa = Boolean
{{#incat:Animal Forest + characters|{{Infobox Appearance|game={{DnM+|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnM+|shortest}}|appears=no}}}}
+
|nh = Boolean
{{#incat:Animal Crossing characters|{{Infobox Appearance|game={{PG|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PG|shortest}}|appears=no}}}}
+
|film = Boolean
{{#incat:Animal Forest e+ characters|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=yes}}|{{Infobox Appearance|game={{DnMe+|shortest}}|appears=no}}}}
+
|hhd = Boolean
{{#incat:Animal Crossing: Wild World characters|{{Infobox Appearance|game={{WW|shortest}}|appears=yes}}|{{Infobox Appearance|game={{WW|shortest}}|appears=no}}}}
+
|pc = Boolean
{{#incat:Animal Crossing: City Folk characters|{{Infobox Appearance|game={{CF|shortest}}|appears=yes}}|{{Infobox Appearance|game={{CF|shortest}}|appears=no}}}}
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:New Horizons characters|{{NHCalendar/CargoAttach}}{{#if:{{{disablebirthday|}}}||{{#cargo_store:
{{#incat:Animal Crossing: New Leaf characters|{{Infobox Appearance|game={{NL|shortest}}|appears=yes}}|{{#incat:Animal Crossing: New Leaf update characters|{{Infobox Appearance|game={{NL|shortest}}<sup>[[Animal Crossing: New Leaf - Welcome amiibo|a]]</sup>|appears=yes}}|{{Infobox Appearance|game={{NL|shortest}}|appears=no}}}}}}
+
_table=nh_calendar
{{#incat:Animal Crossing: New Horizons characters|{{Infobox Appearance|game={{NH|shortest}}|appears=yes}}|}}
+
|date={{CURRENTYEAR}}-{{#time: m-d | {{{birthdaymonth|}}} {{{birthday|}}} }}
|-
+
|event={{{name|{{PAGENAME}}}}}'s birthday
! style="border: 1px solid #c8e56b; background: #c8e56b; text-align:right; vertical-align:top; padding:0 3px 0 0;" {{!}} Other Appearances
+
|type=Birthday
{{!}} id="Infobox-special-debut" colspan="2" style="background:#fff; border: 1px solid #fff; {{!}}
+
|link={{PAGENAME}}
{{#incat:Animal Crossing: Happy Home Designer characters|{{Infobox Appearance|game={{HHD|shortest}}|appears=yes}}|{{Infobox Appearance|game={{HHD|shortest}}|appears=no}}}}
+
}}{{#cargo_store:
{{#incat:Animal Crossing: amiibo Festival characters|{{Infobox Appearance|game={{AMF|short}}|appears=yes}}|{{Infobox Appearance|game={{AMF|short}}|appears=no}}}}
+
_table=nh_calendar
{{#incat:Animal Crossing: The Movie characters|{{Infobox Appearance|game={{AM|shortest}}|appears=yes}}|{{Infobox Appearance|game={{AM|shortest}}|appears=no}}}}
+
|date={{#expr: {{CURRENTYEAR}} + 1 }}-{{#time: m-d | {{{birthdaymonth|}}} {{{birthday|}}} }}
{{#incat:Animal Crossing: Pocket Camp characters|{{Infobox Appearance|game={{PC|shortest}}|appears=yes}}|{{Infobox Appearance|game={{PC|shortest}}|appears=no}}}}
+
|event={{{name|{{PAGENAME}}}}}'s birthday
|}
+
|type=Birthday
<includeonly>[[Category:Characters]][[Category:Special Characters]]</includeonly><noinclude>
+
|link={{PAGENAME}}
==Usage==
+
}}}}|}}{{#cargo_store:
<pre>
+
_table=special_character
{{Infobox Special
+
|url = {{canonicalurl:{{PAGENAME}}}}
|name=
+
|name = {{{name|{{PAGENAME}}}}}
|japanese=
+
|name_sort = {{{name-sort|{{{name|}}}}}}
|image=
+
|alt_name = {{{alt-name|}}}
|imagesize=
+
|title_color = {{#replace:{{{titlecolor|}}}|#|}}
|caption=
+
|text_color = {{#replace:{{{textcolor|}}}|#|}}
|gender=
+
|ID = {{{ID|}}}
|species=
+
|image = {{{image|}}}
|service=
+
|image_url = {{filepath:{{{image|}}}}}
|birthday=
+
|species = {{{species|}}}
|sign=
+
|gender = {{{gender|}}}
|other=
+
|gender_japan = {{{gender-japan|}}}
}}</pre>
+
|birthday = {{{birthdaymonth|}}} {{{birthday|}}}
 +
|birthday_month = {{{birthdaymonth|}}}
 +
|birthday_day = {{{birthday|}}}
 +
|birthday_sort = {{#switch:{{{birthdaymonth|}}}|January=01|February=02|March=03|April=04|May=05|June=06|July=07|August=08|September=09|October=10|November=11|December=12}}{{#switch:{{{birthday|}}}|1=01|2=02|3=03|4=04|5=05|6=06|7=07|8=08|9=09|10=10|{{{birthday|}}}}}
 +
|sign = {{{sign|}}}
 +
|quote = {{{quote|}}}
 +
|quote_character = {{{quote-character|{{{name|{{PAGENAME}}}}}}}}
 +
|quote2 = {{{quote2|}}}
 +
|quote2_character = {{{quote2-character|}}}
 +
|speciespage_debut = {{#incat:Doubutsu no Mori characters|DnM|{{#incat:Doubutsu no Mori characters|DnM+|{{#incat:Animal Crossing characters|AC|{{#incat:Doubutsu no Mori e+ characters|DnMe+|{{#incat:Wild World characters|WW|{{#incat:City Folk characters|CF|{{#incat:New Leaf characters|NL|{{#incat:Happy Home Designer characters|HHD|{{#incat:New Leaf update characters|NLWa|{{#incat:Pocket Camp characters|PC|{{#incat:New Horizons characters|ACNH|}}}}}}}}}}}}}}}}}}}}}}
 +
|dnm = {{#incat:Doubutsu no Mori characters|Yes|No}}
 +
|plus = {{#incat:Doubutsu no Mori+ characters|Yes|No}}
 +
|ac = {{#incat:Animal Crossing characters|Yes|No}}
 +
|e_plus = {{#incat:Doubutsu no Mori e+ characters|Yes|No}}
 +
|ww = {{#incat:Wild World characters|Yes|No}}
 +
|cf = {{#incat:City Folk characters|Yes|No}}
 +
|nl = {{#incat:New Leaf characters|Yes|No}}
 +
|wa = {{#incat:New Leaf characters|Yes|{{#incat:Welcome amiibo characters|Yes|No}}}}
 +
|nh = {{#incat:New Horizons characters|Yes|No}}
 +
|film = {{#incat:Gekijōban Doubutsu no Mori characters|Yes|No}}
 +
|hhd =  {{#incat:Happy Home Designer characters|Yes|No}}
 +
|pc = {{#incat:Pocket Camp characters|Yes|No}}
 +
}}}}</includeonly>{{Infobox 2.0
 +
| colorclass    = color-special
 +
| primarycolor  = 81 87
 +
| title          = {{{name|{{PAGENAME}}}}}
 +
| titlecolor    = {{{titlecolor|}}}
 +
| textcolor      = {{{textcolor|}}}
 +
| lefticon      = [[File:SpecialSpeciesIconSilhouette.png|30px|link=]]
 +
| righticon      = {{#if:{{{ID|}}}|<small><code>[[Villager#Villager ID|{{{ID|}}}]]</code></small>|&nbsp;}}
  
== Syntax Guide ==
+
| subtitleabove  =  
This is a quick reference on how to use each field.
+
| subtitlebelow  = gallery
  
*'''name:''' The name of the character will go here.
+
| image          = [[File:{{{image|}}}|{{{imagesize|150px}}}|{{{imagesize|150px}}}|alt=Artwork of {{{name|{{PAGENAME}}}}}]]
*'''japanese:''' The Japanese name of the character will go here; [[Template:JN]] should be used.
+
| caption        = {{{caption|}}}
*'''image:''' The image file. '''''Do not''''' include <nowiki>[[Image:Example.jpg]]</nowiki>! In this case, you would put Example.jpg.
 
*'''imagesize:''' the size of the image. Please be sure to include "px" at the end.
 
*'''gender:''' The gender of the character will go here. Male/Female/Unknown.
 
*'''species:''' The species of animal the character is. If not known, leave blank.
 
*'''service:''' The service the character provides to the player. For example, Kicks would have "shoe store owner."
 
*'''birthday:''' The day the character was born.
 
*'''sign:''' The character's zodiac sign.
 
  
 +
| leftlabel      = Species
 +
| rightlabel    = Gender
 +
| leftdata      = {{#ifeq:{{{species|}}}|Unknown|Unknown|[[{{{species|}}}]]}}
 +
| rightdata      = {{#if:{{{gender-japan|}}}|[[File:{{#switch:{{{gender-japan|}}}| Male = Male | Female = Female | Intersex = Intersex | #default = Gender }} symbol.png|18px|link=|alt=]] [[:Category:{{{gender-japan|}}} characters|{{{gender-japan|}}}]]{{Note|Japan and Korea}}<br>|}}[[File:{{#switch:{{{gender|}}}| Male = Male | Female = Female | Intersex = Intersex | #default = Gender }} symbol.png|18px|link=|alt=]]  [[:Category:{{{gender|}}} characters|{{{gender|Unknown}}}]]{{#if:{{{gender-japan|}}}|{{Note|International}}|}}
 +
 +
| label          = {{#if:{{{birthday|}}}|Birthday|Star sign}}
 +
| data          = {{#if:{{{disablebirthday|}}}||{{#if:{{{birthday|}}}| [[{{#ifeq:{{{birthdaymonth|}}}|June|June (month)|{{{birthdaymonth|}}}}}|{{{birthdaymonth|}}}]] {{Date|{{{birthday|}}}}}{{#if:{{{birthday-note|}}}|{{Note|{{{birthday-note|}}}}}|}}|[[File:{{{sign|Aries}}} NookLink Icon.svg|25px|link{{=}}{{{sign}}}|{{{sign}}}]] [[{{{sign|}}}]]}}}}
 +
| subdata        = {{#if:{{{birthday|}}}|[[File:{{{sign|}}} NookLink Icon.svg|25px|link{{=}}{{{sign}}}|{{{sign}}}]] {{#if:{{{sign2|}}} | [[File:{{{sign2|}}} NookLink Icon.svg|25px|link{{=}}{{{sign2}}}|{{{sign2}}}]]{{Note|{{{note2|}}}}}|}}|}}
 +
 +
| label2        = Favorite saying
 +
| data2          = {{#if:{{{quote|}}}|"''{{{quote|}}}''" {{#if:{{{quote2|}}}|({{{quote-character}}})}}|}}{{#if:{{{quote2|}}}|<br>"''{{{quote2|}}}''" ({{{quote2-character}}})|}}
 +
 +
| label3        = {{#if:{{{disableservice|}}}||Role}}
 +
| data3          = {{#if:{{{disableservice|}}}||{{{service|Unknown}}}}}
 +
 +
| appearances    = characters
 +
| o-appearances  = characters
 +
 +
| languages      = Name
 +
| 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}}||[[Category:Characters]][[Category:Special characters]]}}{{#ifeq:{{NAMESPACE}}||{{#if:{{{ja-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:Characters with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:Characters with missing other language information]]}}}}</includeonly><noinclude>{{Clear}}
 +
{{Documentation}}
 +
[[Category:Cargo templates]]
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

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

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

[[File:|150px|150px|alt=Artwork of Infobox Special]]
Species Gender
[[]] Unknown
Star sign {{{sign}}} [[]]
Role Unknown
Main appearances

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

Template documentation (view)


More Cargo templates

Usage

{{Infobox Special
|name= 
|ja-name= 
|ko-name=
|zh-name=
|fr-name=
|it-name=
|es-name=
|de-name=
|nl-name=
|ru-name=
|image= 
|imagesize= 
|caption= 
|gender= 
|species= 
|service= 
|birthdaymonth= 
|birthday= 
|sign=
}}

Syntax Guide

This is a quick reference on how to use each field.

  • name: The name of the character will go here.
  • spacing: Set custom spacing between villager name translations. (optional)
  • ja-name: The character's Japanese name.
  • ko-name: The character's Korean name.
  • zh-name: The character's Simplified Chinese name from New Horizons onwards.
  • fr-name: The character's French name.
  • it-name: The character's Italian name.
  • es-name: The character's Spanish name.
  • de-name: The character's German name.
  • nl-name: The character's Dutch name.
  • ru-name: The character's Russian name.
  • image: The image file. Do not include [[File:Example.jpg]]! In this case, you would put Example.jpg.
  • imagesize: the size of the image. Please be sure to include "px" at the end.
  • gender: The gender of the character will go here. Male/Female/Unknown.
  • species: The species of animal the character is. If not known, leave blank.
  • service: The service the character provides to the player. For example, Kicks would have "shoe store owner."
  • birthdaymonth: The month the character was born.
  • birthday: The day the character was born.
  • sign: The character's zodiac sign.