FANDOM


Line 3: Line 3:
 
! colspan="2" style="border-top-left-radius:4px; border-top-right-radius:4px; background-color:{{{headercolor|#d91b80}}}; color:{{{headerfontcolor|#e78aaf}}}; font-size:{{{headerfontsize|140%}}}; padding:12px;" | {{{song|{{PAGENAME}}}}}
 
! colspan="2" style="border-top-left-radius:4px; border-top-right-radius:4px; background-color:{{{headercolor|#d91b80}}}; color:{{{headerfontcolor|#e78aaf}}}; font-size:{{{headerfontsize|140%}}}; padding:12px;" | {{{song|{{PAGENAME}}}}}
 
|-
 
|-
{{#if: {{{youtubeid|}}}|
+
{{#if: {{{youtube|}}}|
{{!}}align="center" colspan="2" style="text-align:center; padding:0.5em;"{{!}}<div style="margin: 0 auto">{{#tag:youtube|{{{youtubeid}}}|width={{{youtubewidth|300}}}|height={{{youtubeheight|169}}}}}</div>
+
{{!}}align="center" colspan="2" style="text-align:center; padding:0.5em;"{{!}}<div style="margin: 0 auto">{{#tag:youtube|{{{youtube}}}|width={{{youtubewidth|300}}}|height={{{youtubeheight|169}}}}}</div>
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Revision as of 03:20, July 25, 2019

Infobox song

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox_song/doc to edit this documentation. (How does this work?)
Description
This template is used to create a song infobox.
Syntax
Type {{infobox song|<...>}} somewhere, with parameters as shown below. # depicts an integer that is either 1, 2, 3, ...., or 6. Please use it consecutively
{{infobox song
| song            = Name of the song [defaults to pagename]
| youtubeid       = Alphanumeric string after "v=" in YouTube URL of video
| youtubewidth    = The width of the YouTube video (defaults to 300)
| youtubeheight   = The height of the YouTube video (defaults to 169)
| video           = Video used (if not available on YouTube)
| episode         = Episode appeared
| character       = Singer of the song (as an LPS character)
| sung            = Singer of the song (as an actress)
| length          = Length of the song
| season          = Season the song appeared
| international   = Links to international page page
}}
Sample input
{{infobox song
| song            = The Littlest Pet Shop Pets [defaults to pagename]
| youtubeid       = criiv2P90uw
| episode         = Blythe's Big Adventure Part One
| character       = Zoe Trent
| sung            = Kylee Epp
| length          = 2:50
| season          = 1
}}

Results in...

The Littlest Pet Shop Pets
Episode Blythe's Big Adventure Part One
Character(s) Zoe Trent
Sung by Kylee Epp
Length 2:50
Season Season 1
Episode Transcript Blythe's Big Adventure Part One
All parameters are optional.
Community content is available under CC-BY-SA unless otherwise noted.