Difference between revisions of "Template:Infobox Music"

From Nookipedia, the Animal Crossing wiki
(Update to use Template:Infobox. Refreshed visual design to match new theme. Audio files can now be placed directly in the infobox.)
(changing collapsible element to scrollbar)
 
(40 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
|subtitlebelow  =
+
|image = String
|image          = {{{image|[[File:KK Slider on Note.png|180px]]}}}
+
|image_url = String
|caption        = {{{caption|}}}
+
|aircheck = String
|widelabelsolo  = {{{audiosolotitle}}}
+
|aircheck_url = String
|widedatasolo  = {{{audiosolofile|}}}
+
|live = String
|widelabel      = {{{audio1title}}}
+
|live_url = String
|widedata      = {{{audio1file|}}}
+
|mood = String
|widelabelend  = {{{audio2title}}}
+
|debut = String
|widedataend    = {{{audio2file|}}}
+
|debut_aircheck = String
|label          = Genre
+
|label = String
|data          = {{{genre|}}}
+
|dnm = Boolean
|label2        = Mood
+
|ac = Boolean
|data2          = {{{mood|}}}
+
|e_plus = Boolean
|label3        = Time
+
|ww = Boolean
|data3          = {{{time|}}}
+
|cf = Boolean
|label4        = Instruments
+
|nl = Boolean
|data4          = {{{instruments|}}}
+
|nh = Boolean
|label5        = Owned by
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:K.K. Slider songs|{{#cargo_store:
|data5          = {{{owned by|}}}
+
_table=song
|label6        = Order
+
|url = {{canonicalurl:{{PAGENAME}}}}
|data6          = <i>{{{order#|}}}</i>
+
|name = {{{name|{{PAGENAME}}}}}
|labelend       = Main appearances
+
|name_sort = {{{name-sort|{{{name|}}}}}}
|dataend       = {{{games|Unknown}}}
+
|order_number = {{{order#|}}}
}}<noinclude>{{Documentation}}[[Category:Infobox templates]]</noinclude>
+
|image = {{{image|}}}
 +
|image_url = {{filepath:{{{image|}}}}}
 +
|aircheck = {{{audiofile|}}}
 +
|aircheck_url = {{filepath:{{{audiofile|}}}}}
 +
|live = {{{audiofile2|}}}
 +
|live_url = {{filepath:{{{audiofile2|}}}}}
 +
|mood = {{{mood|}}}
 +
|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|}}}}}}}}}}}}}}}}}}
 +
|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|}}
 +
|label = {{{label|}}}
 +
|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
 +
| 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 20:53, July 15, 2022

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

Music
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

#1 K.K. Chorale  
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