Difference between revisions of "Template:Extra music sample/doc"

From blackwiki
Jump to navigation Jump to search
imported>John Cardinal
m (update example; quotes should be added to title= value for songs)
imported>John Cardinal
m (Show "type=" as preferred; might as well have all the parameters the same case)
Line 8: Line 8:
 
==Usage==
 
==Usage==
 
<pre>{{Extra musicsample
 
<pre>{{Extra musicsample
| Type           = single
+
| type           = single
 
| filename      = The_Beatles_-_Ticket_to_Ride.ogg
 
| filename      = The_Beatles_-_Ticket_to_Ride.ogg
 
| title          = "Ticket to Ride"
 
| title          = "Ticket to Ride"
Line 14: Line 14:
 
}}</pre>
 
}}</pre>
  
*'''Type''' should be "song" for songs and "single" for singles (without the quotes).  
+
*'''type''' should be "song" for songs and "single" for singles (without the quotes).  
 
*'''filename''' is the name of the audio file.
 
*'''filename''' is the name of the audio file.
 
*'''title''' is the name of the song.
 
*'''title''' is the name of the song.

Revision as of 15:26, 20 November 2009

This template is for adding a music sample within {{Infobox song}} or {{Infobox single}}.

Please think carefully—and test—before changing it, and make sure you explain the change in your edit summary. Any unexplained changes may be reverted.

Usage

{{Extra musicsample
| type           = single
| filename       = The_Beatles_-_Ticket_to_Ride.ogg
| title          = "Ticket to Ride"
| description    = 
}}
  • type should be "song" for songs and "single" for singles (without the quotes).
  • filename is the name of the audio file.
  • title is the name of the song.
  • description should probably be left blank in this context; otherwise, provide a brief description specific to the sample such as the duration.

Note: This template must be wrapped in an infobox; it does not provide the outer table markup and relies on a table being open when used. See "Ticket to Ride" for an example.