साँचा:Extra musicsample/doc
{{
साँचा:namespace detect
| type = notice
| image =
| imageright =
| class =
| style = margin-bottom:1.0em;
| textstyle =
| text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page.
| small =
| smallimage =
| smallimageright =
| smalltext =
| subst =
| date =
| name =
}}
This template is for adding a music sample within साँचा:tl or साँचा:tl.
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
The HTML mark up produced by this template includes an hAudio microformat, which makes the recording's details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a playlist or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Date-of-publication ("published") information will only be included in the microformat if साँचा:tlx (or साँचा:tlx where appropriate) is used in a parent template or infobox (but do not use these if the date is before 1583 CE).
For the length or duration of a recording, say 3 minutes 45 seconds, use {{Duration}} thus: {{Duration|m=3|s=45}}
, which renders as Error: 'h'
and 'm'
values must be integers.. An optional h parameter can be used for hours.
hAudio uses HTML classes including:
- haudio
- fn
- album
- description
- category
- contributor
- duration
- h
- item
- min
- photo
- position
- price
- published
- s
Please do not rename or remove these classes; nor collapse nested elements which use them.