Difference between revisions of "Template:Infobox Music"

From Nookipedia, the Animal Crossing wiki
m
 
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Infobox 2.0
+
<noinclude>{{#cargo_declare:
 +
_table=song
 +
|url = String
 +
|name = String
 +
|name_sort = String
 +
|order_number = Integer
 +
|image = String
 +
|image_url = String
 +
|aircheck = String
 +
|aircheck_url = String
 +
|live = String
 +
|live_url = String
 +
|mood = String
 +
|debut = String
 +
|debut_aircheck = String
 +
|composer = String
 +
|label = String
 +
|dnm = Boolean
 +
|ac = Boolean
 +
|e_plus = Boolean
 +
|ww = Boolean
 +
|cf = Boolean
 +
|nl = Boolean
 +
|nh = Boolean
 +
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#incat:K.K. Slider songs|{{#cargo_store:
 +
_table=song
 +
|url = {{canonicalurl:{{PAGENAME}}}}
 +
|name = {{{name|{{PAGENAME}}}}}
 +
|name_sort = {{{name-sort|{{{name|}}}}}}
 +
|order_number = {{{order#|}}}
 +
|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|}}}
 +
|composer = {{{composer|}}}
 +
|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}}}
 
  | title          = {{{name|Music}}}
 
  | lefticon      = {{#if:{{{order#|}}}|<big>'''''#{{{order#|0}}}'''''</big>|}}
 
  | lefticon      = {{#if:{{{order#|}}}|<big>'''''#{{{order#|0}}}'''''</big>|}}
 
  | righticon      = {{#if:{{{order#|}}}|&nbsp;|}}
 
  | righticon      = {{#if:{{{order#|}}}|&nbsp;|}}
 
  | primarycolor  = 0 59
 
  | primarycolor  = 0 59
  | image          = {{{image|[[File:KK Slider on Note.png|180px]]}}}
+
  | image          = [[File:{{{image|Nia.png|}}}|{{{imagesize|256px}}}]]
 
  | caption        = {{{caption|}}}
 
  | caption        = {{{caption|}}}
 
  | image2        = {{{image2|}}}
 
  | image2        = {{{image2|}}}
 
  | caption2      = {{{caption2|}}}
 
  | caption2      = {{{caption2|}}}
 
+
<!--
 
  | widelabel      = {{{audiotitle|Audio}}}
 
  | widelabel      = {{{audiotitle|Audio}}}
  | widedata      = {{{audiofile|}}}
+
  | widedata      = {{#if:{{{audiofile|}}}|[[File:{{{audiofile|}}}]]|}}
  | widelabel2    = {{{audiotitle2}}}
+
  | widelabel2    = {{{audiotitle2|Audio}}}
  | widedata2      = {{{audiofile2|}}}
+
  | widedata2      = {{#if:{{{audiofile2|}}}|[[File:{{{audiofile2|}}}]]|}}
 
+
-->
  | label          = Genre
+
  | label          = {{#if:{{{composer|}}}|Composed by}}
  | data          = {{{genre|}}}
+
  | data          = {{#if:{{{composer|}}}|[[{{{composer|}}}]]|[[Category:K.K. Slider songs with no known composer]]}}
 
  | label2        = Mood
 
  | label2        = Mood
 
  | data2          = {{{mood|}}}
 
  | data2          = {{{mood|}}}
  | label3        = Time
+
  | label3        = Owned by
  | data3          = {{{time|}}}
+
  | data3          = <div style="width:100%; overflow-x: hidden; overflow-y: auto; max-height: 200px;">{{{owned by|}}}</div>
  | label4        = Instruments
+
 
  | data4          = {{{instruments|}}}
+
  | label4        = Genre
  | label5        = Owned by
+
  | data4          = {{{genre|}}}
  | data5          = {{{owned by|}}}
+
  | label5        = Instruments
 +
  | data5          = {{{instruments|}}}
  
 
| appearances    = songs
 
| appearances    = songs
<!-- | o-appearances  = songs -->
+
| o-appearances  = songs
  
  | languages      = Name
+
  | languages      = Names
 
  | ja-name        = {{{ja-name|}}}
 
  | ja-name        = {{{ja-name|}}}
 
  | zh-name        = {{{zh-name|}}}
 
  | zh-name        = {{{zh-name|}}}
Line 47: Line 97:
 
  | ko-note        =
 
  | ko-note        =
 
  | ru-note        =
 
  | ru-note        =
}}<noinclude>{{Documentation}}[[Category:Infobox templates]]</noinclude>
+
}}<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