Register / Create an Account

Difference between revisions of "Template:Extra musicsample"

From Beatles Wiki - Interviews, Music, Beatles Quotes

Jump to: navigation, search
(New page: <includeonly> |- ! style="background: {{Template:Extra musicsample/color|{{{Type|}}}}};" colspan="3" align="{{{align|left}}}" {{!}} Music sample |- {{!}} style="vertical-align: top;" colsp...)
 
m (1 revision)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
|-
+
<tr>
! style="background: {{Template:Extra musicsample/color|{{{Type|}}}}};" colspan="3" align="{{{align|left}}}" {{!}} Music sample
+
<th style="background: {{Template:Extra musicsample/color|{{{Type|}}}}};" colspan="{{{colspan|3}}}"> Music sample</td>
|-
+
</tr><tr>
{{!}} style="vertical-align: top;" colspan="3" {{!}} <div class="medialist listenlist" style="margin:0;">
+
<td colspan="{{{colspan|3}}}"> {{listen
{{#if: {{{artist|}}}|{{{artist}}}<br/>}}
+
|style=border:none; background:transparent; width:100%; margin:0;
"[[:Image:{{{filename}}}|{{{title}}}]]" [[Image:{{{filename}}}|180px|noicon]]
+
|header={{{artist|}}}
{{#if: {{{description|}}} | <br/>{{{description}}}}}
+
|filename={{{filename}}}
<small>''Problems? See [[Wikipedia:Media help|media help]].''</small></div><noinclude>
+
|title={{{title}}}
|}</includeonly> __NOTOC__
+
|description={{{description|}}}
==Purpose==
+
}}</td>
Use this template to add a music sample within {{tl|Infobox Song}} or {{tl|Infobox Single}}.
+
</tr></includeonly><noinclude>
 
+
{{documentation}}
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==
+
<pre>{{Extra musicsample
+
| Type          = single
+
| filename      = The_Beatles_-_Ticket_to_Ride.ogg
+
| format        = [[Ogg]]
+
| title          = Ticket to Ride
+
| artist        = The Beatles
+
| description    =
+
}}</pre>
+
 
+
*'''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.
+
*'''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''' 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.
+
 
+
{{DEFAULTSORT:Extra musicsample}}
+
 
</noinclude>
 
</noinclude>

Latest revision as of 10:05, 18 May 2009

[create] 50px Template documentation
Personal tools