Difference between revisions of "Template:Infobox Music"

From Nookipedia, the Animal Crossing wiki
(Fixing alignment of names in other languages)
m
 
(38 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Infobox
+
<noinclude>{{#cargo_declare:
|bordercolor    = E08585
+
_table=song
|primarycolor  = E08585
+
|url = String
|secondarycolor = f0c1c1
+
|name = String
|title          = {{{name|Music}}}
+
|name_sort = String
|subtitleabove  =
+
|order_number = Integer
<table>
+
|image = String
<tr>
+
|image_url = String
<td>[[File:Flag of Japan.png|Japanese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{j-name|}}}|{{{j-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|aircheck = String
<td>[[File:Flag of Korea.png|Korean|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{k-name|}}}|{{{k-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|aircheck_url = String
<td>[[File:Flag of the People's Republic of China.png|Chinese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{c-name|}}}|{{{c-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|live = String
</tr>
+
|live_url = String
<tr>
+
|mood = String
<td>[[File:Flag of France.png|French|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{f-name|}}}|{{{f-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|debut = String
<td>[[File:Flag of Italy.png|Italian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{i-name|}}}|{{{i-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|debut_aircheck = String
<td>[[File:Flag of Spain.png|Spanish|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{s-name|}}}|{{{s-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|composer = String
</tr>
+
|label = String
<tr>
+
|dnm = Boolean
<td>[[File:Flag of Germany.png|German|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{g-name|}}}|{{{g-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|ac = Boolean
<td>[[File:Flag of the Netherlands.png|Dutch|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{d-name|}}}|{{{d-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|e_plus = Boolean
<td>[[File:Flag of Russia.png|Russian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{r-name|}}}|{{{r-name|}}}|{{Colorshow|d75b5b|Unknown}}}}</span></td>
+
|ww = Boolean
</tr>
+
|cf = Boolean
</table>
+
|nl = Boolean
|subtitlebelow  =  
+
|nh = Boolean
|image          = {{{image|[[File:KK Slider on Note.png|180px]]}}}
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:K.K. Slider songs|{{#cargo_store:
|caption        = {{{caption|}}}
+
_table=song
|widelabelsolo  = {{{audiosolotitle}}}
+
|url = {{canonicalurl:{{PAGENAME}}}}
|widedatasolo  = {{{audiosolofile|}}}
+
|name = {{{name|{{PAGENAME}}}}}
|widelabel      = {{{audio1title}}}
+
|name_sort = {{{name-sort|{{{name|}}}}}}
|widedata      = {{{audio1file|}}}
+
|order_number = {{{order#|}}}
|widelabelend  = {{{audio2title}}}
+
|image = {{{image|}}}
|widedataend    = {{{audio2file|}}}
+
|image_url = {{filepath:{{{image|}}}}}
|label          = Genre
+
|aircheck = {{{audiofile|}}}
|data          = {{{genre|}}}
+
|aircheck_url = {{filepath:{{{audiofile|}}}}}
|label2        = Mood
+
|live = {{{audiofile2|}}}
|data2          = {{{mood|}}}
+
|live_url = {{filepath:{{{audiofile2|}}}}}
|label3        = Time
+
|mood = {{{mood|}}}
|data3          = {{{time|}}}
+
|debut = {{#incat:Doubutsu no Mori songs|DnM|{{#incat:Animal Crossing songs|PG|{{#incat:Doubutsu no Mori e+ songs|DnMe+|{{#incat:Wild World songs|WW|{{#incat:City Folk songs|CF|{{#incat:New Leaf songs|NL|{{#incat:Happy Home Designer songs|HHD|{{#incat:Welcome amiibo songs|NLWa|{{#incat:New Horizons songs|NH|}}}}}}}}}}}}}}}}}}
|label4        = Instruments
+
|debut_aircheck = {{#switch:{{{name|{{PAGENAME}}}}}|Forest Life|To the Edge|My Place=DnMe+|Spring Blossoms|Stale Cupcakes|Wandering=CF|K.K. Birthday|K.K. Island|K.K. Stroll|Hypno K.K.=NL|Animal City|Drivin'|Farewell=NH|}}
|data4          = {{{instruments|}}}
+
|label = {{{label|}}}
|label5        = Owned by
+
|composer = {{{composer|}}}
|data5          = {{{owned by|}}}
+
|dnm = {{#incat:Doubutsu no Mori songs|Yes|No}}
|label6        = Order
+
|ac = {{#incat:Animal Crossing songs|Yes|No}}
|data6          = <b><i>{{{order#|}}}</i><b>
+
|e_plus = {{#incat:Doubutsu no Mori e+ songs|Yes|No}}
|labelend       = Main<br>appearances
+
|ww = {{#incat:Wild World songs|Yes|No}}
|dataend       = <small>{{{games|Unknown}}}</small>
+
|cf = {{#incat:City Folk songs|Yes|No}}
}}<noinclude>{{Documentation}}[[Category:Infobox templates]]</noinclude>
+
|nl = {{#incat:New Leaf songs|Yes|No}}
 +
|nh = {{#incat:New Horizons songs|Yes|No}}
 +
}}|}}}}<metakeywords>music,song,songs,k.k.,kk,k.k. slider,kk slider,animal crossing, acnh, new horizons</metakeywords>{{#seo:|image={{{image|}}}}}</includeonly>{{Infobox 2.0
 +
| colorclass    = color-music
 +
| title          = {{{name|Music}}}
 +
| lefticon      = {{#if:{{{order#|}}}|<big>'''''#{{{order#|0}}}'''''</big>|}}
 +
| righticon      = {{#if:{{{order#|}}}|&nbsp;|}}
 +
| primarycolor  = 0 59
 +
| image          = [[File:{{{image|Nia.png|}}}|{{{imagesize|256px}}}]]
 +
| caption        = {{{caption|}}}
 +
| image2        = {{{image2|}}}
 +
| caption2      = {{{caption2|}}}
 +
<!--
 +
| widelabel      = {{{audiotitle|Audio}}}
 +
| widedata      = {{#if:{{{audiofile|}}}|[[File:{{{audiofile|}}}]]|}}
 +
| widelabel2    = {{{audiotitle2|Audio}}}
 +
| widedata2      = {{#if:{{{audiofile2|}}}|[[File:{{{audiofile2|}}}]]|}}
 +
-->
 +
| label          = {{#if:{{{composer|}}}|Composed by}}
 +
| data          = {{#if:{{{composer|}}}|[[{{{composer|}}}]]|[[Category:K.K. Slider songs with no known composer]]}}
 +
| label2        = Mood
 +
| data2          = {{{mood|}}}
 +
| label3        = Owned by
 +
| data3          = <div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{{owned by|}}}</div>
 +
 
 +
| label4        = Genre
 +
| data4          = {{{genre|}}}
 +
| label5        = Instruments
 +
| data5          = {{{instruments|}}}
 +
 
 +
| appearances    = songs
 +
| o-appearances  = songs
 +
 
 +
| languages      = Names
 +
| ja-name        = {{{ja-name|}}}
 +
| zh-name        = {{{zh-name|}}}
 +
| zht-name      = {{{zht-name|{{{zh-name|}}} }}}
 +
| ko-name        = {{{ko-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-note        =
 +
| zh-note        =
 +
| zht-note      =
 +
| ko-note        =
 +
| ru-note        =
 +
}}<noinclude>{{Clear}}
 +
{{Documentation}}[[Category:Cargo templates]][[Category:Infobox templates]]</noinclude>

Latest revision as of 00:13, November 24, 2024

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

Nia.png
Owned by
Main appearances

Other appearances
Names in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown

Template documentation (view)


More Cargo templates

Usage

{{Infobox Music
|order#      = 
|name        = 
|ja-name     = 
|ko-name     = 
|zh-name     = 
|fr-name     = 
|it-name     = 
|es-name     = 
|de-name     = 
|nl-name     = 
|ru-name     = 
|image       = 
|imagesize   = 
|caption     = 
|audiotitle  = 
|audiofile   = 
|audiotitle2 = 
|audiofile2  = 
|genre       = 
|mood        = 
|time        = 
|instruments = 
|composer    = 
|label       = 
|owned by    = 
}}

This infobox is for articles about music in the series. Many of the parameters are straightforward, but the below ones require special consideration:

  • order# is the internal order for each song throughout the games. This manifests in-game as the order in which the songs appear in the playlist menu.
  • audiotitle is for the title for the below parameter.
  • audiofile is where an audio file can be placed to appear below the image in the infobox.
  • audiotitle2 for the second file's title
  • audiofile2 for the second file's link
    • For best practice, use the following titles depending on the context of the article and audio files:
      • Aircheck for K.K. Slider song recordings
      • Live Performance for audio of K.K. Slider's live performances
      • Title Theme for video game title themes
      • Background Theme for all location and hourly music

Example

K.K. Chorale NH Texture.png
Album cover in Animal Crossing: New Horizons
Composed by Toru Minegishi
Mood A little blue...
Owned by
Genre Classical
Instruments Organ
Main appearances

Other appearances
Names in other languages
 けけさんびか
 K.K.赞美诗歌
 Chorale de Kéké
 Tota-góspel
 K.K. Corale
 Хорал К. К.
 K.K.찬송가
 K.K.讚美詩歌
 Chorale de Kéké
 Tota-góspel
 K.K. Choral
 K.K.-koraal
{{Infobox Music
|order#      = 1
|name        = K.K. Chorale
|ja-name     = けけさんびか
|ko-name     = K.K.찬송가
|zh-name     = K.K.赞美诗歌
|zht-name    = K.K.讚美詩歌
|fr-name     = Chorale de Kéké
|es-name     = Tota-góspel
|it-name     = K.K. Corale
|de-name     = K.K. Choral
|nl-name     = K.K.-koraal
|ru-name     = Хорал К. К.
|image       = AlbumArt-Chorale NH.png
|caption     = Album cover in {{NH|nolink}}
|audiotitle  = Aircheck
|audiofile   = NH BGM Audio 001 Sanbika Hifi.flac
|audiotitle2 = Live Performance
|audiofile2  = NH BGM Live 001 Sanbika.flac
|genre       = Classical
|mood        = A little blue...
|instruments = Organ
|composer    = Toru Minegishi
|label       = Gaia
|owned by    = {{Availability|Villager|Kitt|nb=true}}{{Note|name=PGWWCFNL|In {{PG}}, {{WW|short}}, {{CF|short}}, and {{NL|short}}}}<br>{{Availability|Villager|Chevre|nb=true}}{{Note|name=PGWWCFNLNH|In {{PG}}, {{WW|short}}, {{CF|short}}, {{NL|short}}, and {{NH|short}}}}<br>{{Availability|Villager|Nan|nb=true}}{{Note|name=DnMe|In {{DnMe+}} only}}<br>{{Availability|Villager|Alli|nb=true}}{{Note|name=WWCFNL|In {{DnMe+}}, {{WW|short}}, {{CF|short}}, and {{NL|short}}}}<br>{{Availability|Villager|Cookie|nb=true}}{{Note|name=CF|In {{CF|short}} only}}<br>{{Availability|Villager|Becky|nb=true}}{{Note|name=NH|In {{NH|short}} only}}<br>{{Availability|Villager|Colton|nb=true}}{{Note|name=NH}}<br>{{Availability|Villager|Kitty|nb=true}}{{Note|name=NH}}<br>{{Availability|Villager|Knox|nb=true}}{{Note|name=NH}}<br>{{Availability|Villager|Mathilda|nb=true}}{{Note|name=NH}}<br>{{Availability|Villager|Purrl|nb=true}}{{Note|name=NH}}<br>{{Availability|Villager|Skye|nb=true}}{{Note|name=HHP|In {{HHP|short}} only}}<br>{{Availability|Villager|Boomer|nb=true}}{{Note|name=HHPHHD|In {{HHP|short}} and {{HHD|short}}}}<br>{{Availability|Villager|Elise|nb=true}}{{Note|name=HHPHHD}}<br>{{Availability|Villager|Monique|nb=true}}{{Note|name=HHD|In {{HHD|short}} only}}<br>{{Availability|Villager|Pashmina|nb=true}}{{Note|name=HHD}}<br>{{Availability|Villager|Penelope|nb=true}}{{Note|name=HHD}}
}}

Notes