Difference between revisions of "Template:Infobox Music"

From Nookipedia, the Animal Crossing wiki
(Updating documentation)
(Switching to CSS colour class)
 
(44 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{| align="right" style="background: #cd5c5c; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #8b0000; width: 25%"
+
<noinclude>{{#cargo_declare:
|- align="center"
+
_table=song
| colspan="2" | <big><big>'''{{{name|{{PAGENAME}}}}}'''</big></big>
+
|url = String
|- align="center"
+
|name = String
| style="background: #ffffff; {{roundy|10px}}" colspan="2" | {{{image|[[File:KK Slider on Note.png|100px]]}}}
+
|name_sort = String
|-
+
|order_number = Integer
! style="background: #b22222; {{roundytl|10px}}" align="right" | Game(s)
+
|image = String
| style="background:#ffffff; {{roundytr|10px}}" align="left" | {{{games|Unknown}}}
+
|image_url = String
|- {{#if:{{{mood|}}}|
+
|aircheck = String
{{!-}}
+
|aircheck_url = String
! style="background: #b22222" align="right" {{!}} Mood
+
|live = String
{{!}} style="background:#ffffff" align="left" {{!}} {{{mood|}}}}}
+
|live_url = String
|- {{#if:{{{time|}}}|
+
|mood = String
{{!-}}
+
|debut = String
! style="background: #b22222" align="right" {{!}} Time
+
|debut_aircheck = String
{{!}} style="background:#ffffff" align="left" {{!}} {{{time|}}}}}
+
|label = String
|- {{#if:{{{instruments|}}}|
+
|dnm = Boolean
{{!-}}
+
|ac = Boolean
! style="background: #b22222" align="right" {{!}} Instruments
+
|e_plus = Boolean
{{!}} style="background:#ffffff" align="left" {{!}} {{{instruments|}}}}}
+
|ww = Boolean
|- {{#if:{{{owned by|}}}|
+
|cf = Boolean
{{!-}}
+
|nl = Boolean
! style="background: #b22222" align="right" {{!}} Owned by
+
|nh = Boolean
{{!}} style="background:#ffffff" align="left" {{!}} {{{owned by|}}}}}
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:K.K. Slider songs|{{#cargo_store:
|-
+
_table=song
! style="background: #b22222; {{roundybl|10px}}" align="right" | Order number
+
|url = {{canonicalurl:{{PAGENAME}}}}
| style="background:#ffffff; {{roundybr|10px}}" align="left" | {{{order#|Unknown}}}
+
|name = {{{name|{{PAGENAME}}}}}
|}<noinclude>
+
|name_sort = {{{name-sort|{{{name|}}}}}}
<pre>
+
|order_number = {{{order#|}}}
{{Infobox Music
+
|image = {{{image|}}}
|name=  
+
|image_url = {{filepath:{{{image|}}}}}
|image=  
+
|aircheck = {{{audiofile|}}}
|games=
+
|aircheck_url = {{filepath:{{{audiofile|}}}}}
|mood=  
+
|live = {{{audiofile2|}}}
|time=  
+
|live_url = {{filepath:{{{audiofile2|}}}}}
|instruments=  
+
|mood = {{{mood|}}}
|owned by=  
+
|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|}}}}}}}}}}}}}}}}}}
|order#=  
+
|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|}}
}}</pre>
+
|label = {{{label|}}}
[[Category:Infobox templates]]</noinclude>
+
|dnm = {{#incat:Doubutsu no Mori songs|Yes|No}}
 +
|ac = {{#incat:Animal Crossing songs|Yes|No}}
 +
|e_plus = {{#incat:Doubutsu no Mori e+ songs|Yes|No}}
 +
|ww = {{#incat:Wild World songs|Yes|No}}
 +
|cf = {{#incat:City Folk songs|Yes|No}}
 +
|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          = Composed by
 +
| data          = {{{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 18:44, May 17, 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
Aircheck
Live Performance
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