Difference between revisions of "Template:Infobox Special"

From Nookipedia, the Animal Crossing wiki
(Cargo store)
m
(24 intermediate revisions by 9 users not shown)
Line 5: Line 5:
 
|name_sort = String
 
|name_sort = String
 
|alt_name = String
 
|alt_name = String
 +
|title_color = String
 +
|text_color = String
 
|ID = String
 
|ID = String
 
|image = String
 
|image = String
 
|image_url = String
 
|image_url = String
 +
|nh_phone_texture = String
 +
|nh_phone_texture_url = String
 
|species = String
 
|species = String
 
|gender = String
 
|gender = String
 
|gender_japan = String
 
|gender_japan = String
 
|birthday = String
 
|birthday = String
 +
|birthday_month = String
 +
|birthday_day = Integer
 
|birthday_sort = Integer
 
|birthday_sort = Integer
 
|sign = String
 
|sign = String
Line 26: Line 32:
 
|hhd = Boolean
 
|hhd = Boolean
 
|pc = Boolean
 
|pc = Boolean
}}</noinclude>{{#if:{{{newinfobox|}}}|<includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:New Horizons characters|{{NHCalendar/CargoAttach}}{{#if:{{{disablebirthday|}}}||{{#cargo_store:
_table=villager
+
_table=nh_calendar
 +
|date={{CURRENTYEAR}}-{{#time: m-d | {{{birthdaymonth|}}} {{{birthday|}}} }}
 +
|event={{{name|{{PAGENAME}}}}}'s birthday
 +
|type=Birthday
 +
|link={{PAGENAME}}
 +
}}{{#cargo_store:
 +
_table=nh_calendar
 +
|date={{#expr: {{CURRENTYEAR}} + 1 }}-{{#time: m-d | {{{birthdaymonth|}}} {{{birthday|}}} }}
 +
|event={{{name|{{PAGENAME}}}}}'s birthday
 +
|type=Birthday
 +
|link={{PAGENAME}}
 +
}}}}|}}{{#cargo_store:
 +
_table=special_character
 
|url = {{canonicalurl:{{PAGENAME}}}}
 
|url = {{canonicalurl:{{PAGENAME}}}}
 
|name = {{{name|{{PAGENAME}}}}}
 
|name = {{{name|{{PAGENAME}}}}}
 
|name_sort = {{{name-sort|{{{name|}}}}}}
 
|name_sort = {{{name-sort|{{{name|}}}}}}
 
|alt_name = {{{alt-name|}}}
 
|alt_name = {{{alt-name|}}}
 +
|title_color = {{#replace:{{{titlecolor|}}}|#|}}
 +
|text_color = {{#replace:{{{textcolor|}}}|#|}}
 
|ID = {{{ID|}}}
 
|ID = {{{ID|}}}
 
|image = {{{image|}}}
 
|image = {{{image|}}}
 
|image_url = {{filepath:{{{image|}}}}}
 
|image_url = {{filepath:{{{image|}}}}}
 +
|nh_phone_texture = {{{nh-phone-texture|}}}
 +
|nh_phone_texture_url = {{filepath:{{{nh-phone-texture|}}}}}
 
|species = {{{species|}}}
 
|species = {{{species|}}}
 
|gender = {{{gender|}}}
 
|gender = {{{gender|}}}
 +
|gender_japan = {{{gender-japan|}}}
 
|birthday = {{{birthdaymonth|}}} {{{birthday|}}}
 
|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|}}}}}
 
|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|}}}
 
|sign = {{{sign|}}}
Line 47: Line 72:
 
|cf =  {{#incat:City Folk characters|Yes|No}}
 
|cf =  {{#incat:City Folk characters|Yes|No}}
 
|nl =  {{#incat:New Leaf characters|Yes|No}}
 
|nl =  {{#incat:New Leaf characters|Yes|No}}
|wa =  {{#incat:New Leaf characters|Yes|{{#incat:New Leaf update characters|Yes|No}}}}
+
|wa =  {{#incat:New Leaf characters|Yes|{{#incat:Welcome amiibo characters|Yes|No}}}}
 
|nh =  {{#incat:New Horizons characters|Yes|No}}
 
|nh =  {{#incat:New Horizons characters|Yes|No}}
|film =  {{#incat:Doubutsu no Mori (film) characters|Yes|No}}
+
|film =  {{#incat:Gekijōban Doubutsu no Mori characters|Yes|No}}
 
|hhd =  {{#incat:Happy Home Designer characters|Yes|No}}
 
|hhd =  {{#incat:Happy Home Designer characters|Yes|No}}
 
|pc =  {{#incat:Pocket Camp characters|Yes|No}}
 
|pc =  {{#incat:Pocket Camp characters|Yes|No}}
Line 68: Line 93:
 
| leftlabel      = Species
 
| leftlabel      = Species
 
| rightlabel    = Gender
 
| rightlabel    = Gender
| leftdata      = [[{{{species|Unknown}}}]]
+
| leftdata      = {{#ifeq:{{{species|}}}|Unknown|Unknown|[[{{{species|}}}]]}}
| rightdata      = {{#if:{{{gender-japan|}}}|[[:Category:{{{gender-japan|}}} characters|{{{gender-japan|}}}]]{{Note|Japan}}<br>|}}[[:Category:{{{gender|}}} characters|{{{gender|Unknown}}}]]{{#if:{{{gender-japan|}}}|{{Note|International}}|}}
+
| 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}}
 
| label          = {{#if:{{{birthday|}}}|Birthday|Star sign}}
| data          = {{#if:{{{disablebirthday|}}}||{{#if:{{{birthday|}}}| [[{{{birthdaymonth|}}}]] {{Date|{{{birthday|}}}}}{{#if:{{{birthday-note|}}}|{{Note|{{{birthday-note|}}}}}|}}|[[File:Starsign {{{sign|Aries}}} NH Icon.png|25px|link{{=}}{{{sign}}}|{{{sign}}}]] [[{{{sign|}}}]]}}}}
+
| data          = {{#if:{{{disablebirthday|}}}||{{#if:{{{birthday|}}}| [[{{#ifeq:{{{birthdaymonth|}}}|June|June (month)|{{{birthdaymonth|}}}}}|{{{birthdaymonth|}}}]] {{Date|{{{birthday|}}}}}{{#if:{{{birthday-note|}}}|{{Note|{{{birthday-note|}}}}}|}}|[[File:Starsign {{{sign|Aries}}} NH Icon.png|25px|link{{=}}{{{sign}}}|{{{sign}}}]] [[{{{sign|}}}]]}}}}
 
| subdata        = {{#if:{{{birthday|}}}|[[File:Starsign {{{sign|}}} NH Icon.png|25px|link{{=}}{{{sign}}}|{{{sign}}}]] {{#if:{{{sign2|}}} | [[File:Starsign {{{sign2|}}} NH Icon.png|25px|link{{=}}{{{sign2}}}|{{{sign2}}}]]{{Note|{{{note2|}}}}}|}}|}}
 
| subdata        = {{#if:{{{birthday|}}}|[[File:Starsign {{{sign|}}} NH Icon.png|25px|link{{=}}{{{sign}}}|{{{sign}}}]] {{#if:{{{sign2|}}} | [[File:Starsign {{{sign2|}}} NH Icon.png|25px|link{{=}}{{{sign2}}}|{{{sign2}}}]]{{Note|{{{note2|}}}}}|}}|}}
  
| label2        = Role
+
| label2        = {{#if:{{{disableservice|}}}||Role}}
| data2          = {{{service|Unknown}}}
+
| data2          = {{#if:{{{disableservice|}}}||{{{service|Unknown}}}}}
  
 
| appearances    = characters
 
| appearances    = characters
Line 94: Line 119:
 
| nl-name        = {{{nl-name|}}}
 
| nl-name        = {{{nl-name|}}}
 
| ru-name        = {{{ru-name|}}}
 
| ru-name        = {{{ru-name|}}}
}}|{{Infobox Special/Old
+
}}<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}}
|name= {{{name|{{PAGENAME}}}}}
+
{{Documentation}}
|image= {{{image|[[File:Nia.png|175px]]}}}
+
[[Category:Cargo templates]]
|species= {{{species|}}}
 
|gender= {{{gender|}}}
 
|birthday= {{{birthday|}}}
 
|sign= {{{sign|}}}
 
|sign2= {{{sign2|}}}
 
|service= {{{service|}}}
 
| 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|}}}
 
| ja-phrase= {{{ja-phrase|}}}
 
| ko-phrase= {{{ko-phrase|}}}
 
| zh-phrase= {{{zh-phrase|}}}
 
| zht-phrase= {{{zht-phrase|{{{zh-phrase|}}}}}}
 
| fr-phrase= {{{fr-phrase||}}}
 
| frq-phrase= {{{frq-phrase|{{{fr-phrase||}}}}}}
 
| es-phrase= {{{es-phrase|}}}
 
| esl-phrase= {{{esl-phrase|{{{es-phrase|}}}}}}
 
| it-phrase= {{{it-phrase|}}}
 
| de-phrase= {{{de-phrase|}}}
 
| nl-phrase= {{{nl-phrase|}}}
 
| ru-phrase= {{{ru-phrase|}}}
 
}}}}<includeonly>
 
{| style="display:none;"
 
|-
 
|<span id="api-villager_name" style="display:none;">{{{name|{{PAGENAME}}}}}</span><span id="api-villager_image" style="display:none;">{{filepath:{{{image|Nia.png}}}|{{{imagesize|200px}}}}}</span><span id="api-villager_quote" style="display:none;">{{{quote|Unknown}}}</span><span id="api-villager_gender" style="display:none;">{{{gender|Unknown}}}</span><span id="api-villager_personality" style="display:none;">{{{personality|Unknown}}}</span><span id="api-villager_species" style="display:none;">{{{species|Unknown}}}</span><span id="api-villager_birthday" style="display:none;">{{{birthday|Unknown}}}</span><span id="api-villager_sign" style="display:none;">{{{sign|Unknown}}}</span><span id="api-villager_phrase" style="display:none;">{{{phrase|Unknown}}}</span><span id="api-villager_clothes" style="display:none;">{{{clothes|Unknown}}}</span><span id="api-villager_umbrella" style="display:none;">{{{umbrella|Unknown}}}</span><span id="api-villager_song" style="display:none;">{{{song|Unknown}}}</span><span id="api-villager_appearances" style="display:none;">{{{appearances|Unknown}}}</span><span id="api-villager_other-appearances" style="display:none;">{{{other|Unknown}}}</span><span id="api-villager_islander-favorite" style="display:none;">{{{favorite|N/A}}}</span><span id="api-villager_islander-allergic" style="display:none;">{{{allergic|N/A}}}</span><span id="api-villager_link" style="display:none;">{{fullurl:{{FULLPAGENAME}}}}</span><span id="api-villager_updated" style="display:none;">{{REVISIONMONTH1}}/{{REVISIONDAY}}/{{REVISIONYEAR}}</span><span id="api-villager_cached" style="display:none;">{{LOCALMONTH}}/{{LOCALDAY}}/{{LOCALYEAR}} {{LOCALTIME}}</span>
 
|}</includeonly>
 
<includeonly>{{#ifeq:{{NAMESPACE}}||[[Category:Characters]][[Category:Special Characters]]}}</includeonly><noinclude>
 
==Usage==
 
<pre>
 
{{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=
 
|birthday=
 
|sign=
 
|other=
 
}}</pre>
 
 
 
== 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 <code><nowiki>[[File:Example.jpg]]</nowiki></code>! In this case, you would put <code>Example.jpg</code>.
 
*'''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.
 
 
 
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#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>
 

Revision as of 14:41, June 15, 2022

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

SpecialSpeciesIconSilhouette.png Infobox Special  
Nia.png
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.