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

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
imported>Nicolas Love
Line 7: Line 7:
  
 
==Usage==
 
==Usage==
<pre>{{Extra musicsample
+
<pre>{{Extra music sample
| 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"
| 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''' 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.
*'''description''' should probably be left blank in this context; otherwise, provide a brief description specific to the sample such as the duration.
+
*'''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.
 
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.
  
== Microformat ==
+
==Microformat==
 
{{UF-audio}}
 
{{UF-audio}}
  

Revision as of 15:12, 5 October 2010

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 music sample
| 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.

Microformat

Template:UF-audio