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

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(links)
imported>John Cardinal
(Update doc to match current template)
Line 4: Line 4:
 
This template is for adding a music sample within {{tl|Infobox song}} or {{tl|Infobox single}}.
 
This template is for adding a music sample within {{tl|Infobox song}} or {{tl|Infobox single}}.
  
Please think carefully—and test—before changing it, and make sure you explain the change in your [[Help:Edit summary|edit summary]]. Any unexplained changes may be reverted.
+
Please think carefully—and test—before changing it, and make sure you explain the change in your [[Help:Edit summary|edit summary]]. Any unexplained changes may be reverted.
  
 
==Usage==
 
==Usage==
Line 10: Line 10:
 
| Type          = single
 
| Type          = single
 
| filename      = The_Beatles_-_Ticket_to_Ride.ogg
 
| filename      = The_Beatles_-_Ticket_to_Ride.ogg
| format        = [[Ogg]]
 
 
| title          = Ticket to Ride
 
| title          = Ticket to Ride
| artist        = The Beatles
 
 
| description    =  
 
| description    =  
 
}}</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''' and '''format''' have the same meaning and use as on the {{tl|listen}} template.
+
*'''filename''' is the name of the audio file.
 
*'''title''' is the name of the song.
 
*'''title''' is the name of the song.
*'''artist''' is the name of the performer, band, etc.; should probably be omitted in most cases (infoboxes already contain the performer's name); if supplied it can be wikilinked
+
*'''description''' should probably be left blank in this context; otherwise, provide a brief description specific to the sample such as the duration.
*'''description''' has the same meaning and use as on the {{tl|listen}} template; 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 table markup and relies on a table being open when used. See "[[Ticket to Ride]]" for an example.
+
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.
  
 
<includeonly><!--
 
<includeonly><!--

Revision as of 21:44, 4 September 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.