Template:Infobox song: Difference between revisions
MusikAnimal (talk | contribs) No edit summary |
MusikAnimal (talk | contribs) (here we go!) |
||
Line 1: | Line 1: | ||
<noinclude>{{#cargo_declare:_table=songs | <templatestyles src="Template:Infobox song/styles.css" /><templatestyles src="Template:Infobox/styles.css" /><noinclude>{{#cargo_declare:_table=songs | ||
|name = String(mandatory=1) | |name = String(mandatory=1) | ||
|type = List (,) of String (mandatory=1;allowed values=song,single,promo,cover,instrumental) | |type = List (,) of String (mandatory=1;allowed values=song,single,promo,cover,instrumental) | ||
Line 12: | Line 12: | ||
|musicbrainz = String | |musicbrainz = String | ||
|cover = File | |cover = File | ||
}}</noinclude> | }}</noinclude>{{#invoke:Infobox song|infobox| | ||
| bodyclass = vevent | | bodyclass = vevent | ||
| aboveclass = summary | | aboveclass = summary | ||
| abovestyle = background-color: {{Infobox song/color|{{{type|{{{Type|}}}}}} }}; | | abovestyle = background-color: {{Infobox song/color|{{{type|{{{Type|}}}}}} }}; | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{cover|{{{Cover|}}}}}}}}}|size={{{cover_size|{{{cover size|{{{Cover size|}}}}}}}}}|upright={{{cover_upright|}}}|sizedefault=frameless|alt={{{alt|{{{Alt|}}}}}}|border={{{border|{{{Border|}}}}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{cover|{{{Cover|}}}}}}}}}|size={{{cover_size|{{{cover size|{{{Cover size|}}}}}}}}}|upright={{{cover_upright|}}}|sizedefault=frameless|alt={{{alt|{{{Alt|}}}}}}|border={{{border|{{{Border|}}}}}}}} | ||
Line 45: | Line 31: | ||
-->{{#ifeq:{{yesno-yes|{{{lyrics|}}}}}|yes|<span><div class="mw-no-invert">[[File:Breezeicons-actions-22-view-media-lyrics.svg|40px|link=#Lyrics|alt=Lyrics]]</div>[[#Lyrics|Lyrics]]</span>|[[Category:Instrumental songs]]}}<!-- | -->{{#ifeq:{{yesno-yes|{{{lyrics|}}}}}|yes|<span><div class="mw-no-invert">[[File:Breezeicons-actions-22-view-media-lyrics.svg|40px|link=#Lyrics|alt=Lyrics]]</div>[[#Lyrics|Lyrics]]</span>|[[Category:Instrumental songs]]}}<!-- | ||
-->{{#if:{{{notabs|}}}||{{#ifexist:Tab:{{PAGENAME}}|<span><div class="mw-no-invert">[[File:Guitar (23727) - The Noun Project.svg|40px|link=Tab:{{PAGENAME}}]]</div>[[Tab:{{PAGENAME}}|Tabs]]</span>|<span class="plainlinks"><div>[[File:Guitar (23727) - The Noun Project.svg|40px|link=https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|The Smashing Pumpkins}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}}]]</div>[https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|The Smashing Pumpkins}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}} Tabs]</span>}}}}<!-- | -->{{#if:{{{notabs|}}}||{{#ifexist:Tab:{{PAGENAME}}|<span><div class="mw-no-invert">[[File:Guitar (23727) - The Noun Project.svg|40px|link=Tab:{{PAGENAME}}]]</div>[[Tab:{{PAGENAME}}|Tabs]]</span>|<span class="plainlinks"><div>[[File:Guitar (23727) - The Noun Project.svg|40px|link=https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|The Smashing Pumpkins}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}}]]</div>[https://www.ultimate-guitar.com/search.php?search_type=title&value={{urlencode:{{delink|{{{artist|The Smashing Pumpkins}}}}}|QUERY}}%20{{urlencode:{{{name|{{PAGENAME}}}}}|QUERY}} Tabs]</span>}}}}<!-- | ||
-->{{#if:{{{video|}}}| | -->{{#if:{{{video|}}}|<span><div>[[File:Video Camera - The Noun Project.svg|40x40px|link=#Music video]]</div>[[#Music video|Video]]</span>}}<!-- | ||
-->{{#if:{{{spotify|}}}|<span class="plainlinks"><div>[[File:Spotify logo without text.svg|40px|link=https://open.spotify.com/track/{{{spotify}}}]]</div>[https://open.spotify.com/track/{{{spotify}}} Spotify]</span>}} | -->{{#if:{{{spotify|}}}|<span class="plainlinks"><div>[[File:Spotify logo without text.svg|40px|link=https://open.spotify.com/track/{{{spotify}}}]]</div>[https://open.spotify.com/track/{{{spotify}}} Spotify]</span>}} | ||
</div> | </div> | ||
Line 69: | Line 55: | ||
| label10 = Released | | label10 = Released | ||
| class10 = plainlist | | class10 = plainlist | ||
Line 77: | Line 62: | ||
| label12 = {{#if:{{{recorded|}}}|Recorded<includeonly>[[Category:Infobox song using recorded parameter]]</includeonly>|[[Studio sessions]]}} | | label12 = {{#if:{{{recorded|}}}|Recorded<includeonly>[[Category:Infobox song using recorded parameter]]</includeonly>|[[Studio sessions]]}} | ||
| class12 = plainlist | | class12 = plainlist | ||
| label13 = Studio | | label13 = Studio | ||
| class13 = plainlist | | class13 = plainlist | ||
Line 100: | Line 83: | ||
| label40 = <span class="nowrap">Songwriter(s)</span> | | label40 = <span class="nowrap">Songwriter(s)</span> | ||
| class40 = hlist | | class40 = hlist | ||
Line 132: | Line 114: | ||
| belowclass = nomobile | | belowclass = nomobile | ||
}}{{main other|{{#if:{{{Type|}}}{{{Writer|}}}{{{Tracks|}}}{{{Recorded|}}}{{{Length|}}}{{{prev|}}}{{{next|}}}{{{prev_no|}}}{{{track_no|}}}{{{next_no|}}}{{{Chronology|}}}{{{Name|}}}{{{Cover|}}}{{{cover size|}}}{{{Cover size|}}}{{{Alt|}}}{{{Border|}}}{{{Caption|}}}{{{Artist|}}}{{{side_project|}}}{{{Album|}}}{{{from Album|}}}{{{Language|}}}{{{a-side|}}}{{{b-side|}}}{{{Written|}}}{{{Published|}}}{{{Released|}}}{{{Format|}}}{{{Studio|}}}{{{Venue|}}}{{{Genre|}}}{{{Label|}}}{{{Composer|}}}{{{Lyricist|}}}{{{Producer|}}}{{{prev_single|}}}{{{next_single|}}}{{{Misc|}}}{{{Last single|}}}{{{last_single|}}}{{{This single|}}}{{{this_single|}}}{{{Next single|}}}|[[Category:Pages using infobox song with deprecated parameters]]}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox song with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox song]] with unknown parameter "_VALUE_"|ignoreblank=y|type|Type|EP|writer|Writer|title2|tracks|Tracks|recorded|Recorded|length|Length|prev_track|prev|next_track|next|prev_no|track_no|next_no|chronology|Chronology|name|Name|title|image|cover|Cover|cover_size|cover size|Cover size|cover_upright|alt|Alt|border|Border|caption|Caption|artist|Artist|nonstandard_artist|side_project|original_artist|album|Album|from_album|from Album|album_photo|notabs|spotify|video|language|Language|English_title|english_title|A-side|a-side|B-side|b-side|written|Written|published|Published|released|Released|format|Format|studio|Studio|venue|Venue|genre|Genre|label|Label|composer|Composer|lyricist|Lyricist|producer|Producer|prev_title|next_title|prev_single|next_single|__µ|prev_title2|prev_year|next_year|year|next_title2|misc|lyrics|Misc|discogs|musicbrainz|is_ep|released_cargo}} | |||
}}{{main other|{{#if:{{{Type|}}}{{{Writer|}}}{{{Tracks|}}}{{{Recorded|}}}{{{Length|}}}{{{prev|}}}{{{next|}}}{{{prev_no|}}}{{{track_no|}}}{{{next_no|}}}{{{Chronology|}}}{{{Name|}}}{{{Cover|}}}{{{cover size|}}}{{{Cover size|}}}{{{Alt|}}}{{{Border|}}}{{{Caption|}}}{{{Artist|}}}{{{side_project|}}}{{{Album|}}}{{{from Album|}}}{{{Language|}}}{{{a-side|}}}{{{b-side|}}}{{{Written|}}}{{{Published|}}}{{{Released|}}}{{{Format|}}}{{{Studio|}}}{{{Venue|}}}{{{Genre|}}}{{{Label|}}}{{{Composer|}}}{{{Lyricist|}}}{{{Producer|}}}{{{prev_single|}}}{{{next_single|}}}{{{Misc|}}}{{{Last single|}}}{{{last_single|}}}{{{This single|}}}{{{this_single|}}}{{{Next single|}}}|[[Category:Pages using infobox song with deprecated parameters]]}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using infobox song with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Infobox song]] with unknown parameter "_VALUE_"|ignoreblank=y|type|Type|EP|writer|Writer|title2|tracks|Tracks|recorded|Recorded|length|Length|prev_track|prev|next_track|next|prev_no|track_no|next_no|chronology|Chronology|name|Name|title|image|cover|Cover|cover_size|cover size|Cover size|cover_upright|alt|Alt|border|Border|caption|Caption|artist|Artist|nonstandard_artist|side_project|original_artist|album|Album|from_album|from Album|album_photo|notabs|spotify|video|language|Language|English_title|english_title|A-side|a-side|B-side|b-side|written|Written|published|Published|released|Released|format|Format|studio|Studio|venue|Venue|genre|Genre|label|Label|composer|Composer|lyricist|Lyricist|producer|Producer|prev_title|next_title|prev_single|next_single|__µ|prev_title2|prev_year|next_year|year|next_title2|misc|lyrics|Misc|discogs|musicbrainz|is_ep|released_cargo | }}<noinclude> | ||
}} | |||
<!-- please place language and category links on the /doc page and not here --> | <!-- please place language and category links on the /doc page and not here --> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |