Difference between revisions of "Template:Audio sample/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jc86035
(TemplateData)
imported>Jc86035
Line 25: Line 25:
 
|}
 
|}
  
<includeonly>
+
=== TemplateData ===
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
[[Category:Exclude in print]]
 
[[Category:Music infobox templates|Audiosample]]
 
[[Category:Embeddable templates]]
 
</includeonly>
 
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 77: Line 72:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
<includeonly>
 +
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 +
[[Category:Exclude in print]]
 +
[[Category:Music infobox templates|Audiosample]]
 +
[[Category:Embeddable templates]]
 +
</includeonly>

Revision as of 11:05, 10 May 2017

Usage

Syntax

{{Audiosample
| file    = 
| header  = 
| type    = 
}}

Parameters

Parameter Description
file Name of the audio file. For example, for File:americaog.ogg, specify americaog.ogg
header Putting anything in this parameter adds an infobox header reading "Audio sample".
type Specifies the background color of the caption from {{Infobox album/color}}; defaults to single. See that template's page for all values.

TemplateData

Adds an audio sample for album and song infoboxes. Use in the "misc" parameter of those templates.

Template parameters

ParameterDescriptionTypeStatus
Filefile Audio file

Audio file to be shown.

Example
Example.ogg
Filerequired
Headerheader caption upper_caption Upper caption

Toggles header reading "Audio sample".

Example
yes
Booleanoptional
Typetype Type background Background

Type of recording; defaults to "single" (this changes the colour of the header). See «Template:Infobox album/color» for all values

Example
song
Stringsuggested