Difference between revisions of "Template:Infobox Special"
From Nookipedia, the Animal Crossing wiki
SuperHamster (talk | contribs) (Storing birthday to nh_calendar) |
PanchamBro (talk | contribs) m |
||
(10 intermediate revisions by 4 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 | ||
Line 30: | Line 32: | ||
|hhd = Boolean | |hhd = Boolean | ||
|pc = Boolean | |pc = Boolean | ||
− | }}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:New Horizons characters|{{NHCalendar/CargoAttach}}{{#cargo_store: | + | }}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:New Horizons characters|{{NHCalendar/CargoAttach}}{{#if:{{{disablebirthday|}}}||{{#cargo_store: |
_table=nh_calendar | _table=nh_calendar | ||
|date={{CURRENTYEAR}}-{{#time: m-d | {{{birthdaymonth|}}} {{{birthday|}}} }} | |date={{CURRENTYEAR}}-{{#time: m-d | {{{birthdaymonth|}}} {{{birthday|}}} }} | ||
Line 42: | Line 44: | ||
|type=Birthday | |type=Birthday | ||
|link={{PAGENAME}} | |link={{PAGENAME}} | ||
− | }}|}}{{#cargo_store: | + | }}}}|}}{{#cargo_store: |
_table=special_character | _table=special_character | ||
|url = {{canonicalurl:{{PAGENAME}}}} | |url = {{canonicalurl:{{PAGENAME}}}} | ||
Line 48: | Line 50: | ||
|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|}}} | ||
Line 70: | Line 74: | ||
|wa = {{#incat:New Leaf characters|Yes|{{#incat:Welcome amiibo 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 = {{#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 90: | Line 94: | ||
| rightlabel = Gender | | rightlabel = Gender | ||
| leftdata = {{#ifeq:{{{species|}}}|Unknown|Unknown|[[{{{species|}}}]]}} | | 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|}}}}}|}}|}} | ||
Revision as of 14:41, June 15, 2022
This template defines the table "special_character". View table.
| ||||||||
Species | Gender | |||||||
---|---|---|---|---|---|---|---|---|
[[]] | Unknown | |||||||
Star 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 |
---|
- For query instructions see our Cargo documentation.
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 putExample.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.