Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:External music video/doc: Difference between revisions

Template page
No edit summary
No edit summary
Line 24: Line 24:
; type : Enter <code>single</code> to produce a khaki header or <code>song</code> for light blue for other Infobox song types, so that the headers will have a consistent color.  
; type : Enter <code>single</code> to produce a khaki header or <code>song</code> for light blue for other Infobox song types, so that the headers will have a consistent color.  
; header : Enter the text for the header. If not used, the default is <code>Music video</code>. For no header, enter {{para|header|no}}. For multiple music video links, set the first to {{para|header|Music videos}} and the succeeding links to {{para|header|no}}, so only one header for all will be created (see Example 2).
; header : Enter the text for the header. If not used, the default is <code>Music video</code>. For no header, enter {{para|header|no}}. For multiple music video links, set the first to {{para|header|Music videos}} and the succeeding links to {{para|header|no}}, so only one header for all will be created (see Example 2).
; 1 : Enter the video link, plus the song title in quote marks, followed by the name of the video site (see Example 1). For YouTube links, use {{tl|YouTube}}, instead of <code>[http:{{nbsp}}...]</code> (see Example 2).
; 1 : Enter the video link, plus the song title in quote marks, followed by the name of the video site (see Example 1). For YouTube links, use {{tl|YouTube}}, instead of <code>[http:...]</code> (see Example 2).


==Examples==
==Examples==

Revision as of 04:11, 9 April 2025

This page uses Creative Commons Licensed content from Wikipedia (view authors).

Template:High-use

Most music videos cannot be uploaded to Wikipedia because of copyright restrictions. However, it is permissible to link to videos if they are hosted on a site that has licensed them for online viewing. Use this template to add a music video link to an infobox created by {{Infobox song}}, {{Infobox album}}, or other appropriate infobox.

Usage

This template is used with the |misc= parameter of the infobox template. It should not be used on its own. If this template is substituted, it will return a cleaned-up copy of itself with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.

Code

Music video
{{Infobox song
...
| misc         = {{subst:External music video
 | type        = 
 | header      = 
 | 1           = 
}}
type
Enter single to produce a khaki header or song for light blue for other Infobox song types, so that the headers will have a consistent color.
header
Enter the text for the header. If not used, the default is Music video. For no header, enter |header=no. For multiple music video links, set the first to |header=Music videos and the succeeding links to |header=no, so only one header for all will be created (see Example 2).
1
Enter the video link, plus the song title in quote marks, followed by the name of the video site (see Example 1). For YouTube links, use {{YouTube}}, instead of [http:...] (see Example 2).

Examples

{{Infobox song
...
| misc         = {{subst:External music video
 | type        = song
 | header      = Music video
 | 1           = [http://www.cmt.com/videos/johnny-cash/26385/hurt.jhtml "Hurt"] at CMT.com
}}
{{Infobox song
...
| misc         = {{subst:External music video
 | type        = single
 | header      = Music videos
 | 1           = {{YouTube|qzU9OrZlKb8|"Till the World Ends"}}
}}{{subst:External music video
 | type = single
 | header = no
 | 1 = {{YouTube|M3Lqg-46mDo|"Till the World Ends" (dance version)}}
 }}
{{Infobox album
...
| misc       = 
{{External music video|1={{YouTube|gl23DgzqPZk|"Waratchaō yo Boyfriend"}}|header=Music videos|type= studio}}
{{External music video|1={{YouTube|rOhFfXEL0K0|"Munasawagi Scarlet"}}|header=no|type= studio}}
{{External music video|1={{YouTube|I4oMgjalu4o|"Very Beauty"}}|header=no|type= studio}}
{{External music video|1={{YouTube|7dNV4gg9lqI|"Kokuhaku no Funsui Hiroba"}}|header=no|type= studio}}
}}

TemplateData

External music video template

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
11

Link to the internet location holding the video

Default
Empty
Example
| 1 = {{YouTube|qzU9OrZlKb8|"Till the World Ends"}}
Stringrequired
Headerheader

Header text

Default
Music video
Example
Music video
Auto value
Music video
Stringrequired
Upper captionUpper caption

no description

Auto value
Stringdeprecated
typetype

Type field - Enter the same type specified in the infobox

Default
Empty
Example
type=single
Auto value
Stringrequired
TypeType

no description

Stringdeprecated