https://en.seminaverbi.bibleget.io/w/index.php?title=Template:Audio_sample/doc&feed=atom&action=historyTemplate:Audio sample/doc - Revision history2024-03-28T14:36:19ZRevision history for this page on the wikiMediaWiki 1.41.0https://en.seminaverbi.bibleget.io/w/index.php?title=Template:Audio_sample/doc&diff=24820&oldid=prevJohnrdorazio: 1 revision imported2020-12-11T02:12:50Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:12, December 11, 2020</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Johnrdoraziohttps://en.seminaverbi.bibleget.io/w/index.php?title=Template:Audio_sample/doc&diff=24819&oldid=preven>Zyxw: keep /sandbox out of categories2020-03-10T17:51:53Z<p>keep /sandbox out of categories</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --><br />
{{infobox|data1={{parameter names example||type=song|file=Wikipedia.ogg}}}}<br />
<br />
Once an audio sample has been uploaded to Wikipedia (see the [[WP:SAMPLE]] guideline for information and links), use this template to add an audio sample link to an infobox; to add samples to the main body of an article, use {{tl|Listen}}.<br />
<br />
== Code ==<br />
This template is used with the {{para|misc}} parameter of the infobox template. It should not be used on its own. If this template is substituted, it will return a cleaned-up copy of itself with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.<br />
<pre style="overflow:auto;">{{Infobox song<br />
...<br />
| misc = {{subst:Audio sample<br />
| type = <br />
| header = <!-- leave blank for "Audio sample" --><br />
| file = <br />
| description =<br />
}}<br />
</pre><br />
<br />
==Parameters==<br />
===type===<br />
Enter <code>single</code> to produce a khaki header or <code>song</code> for light blue for other Infobox song types, so that the headers will have a consistent color. Other header colors are shown at {{tl|Infobox album/color}}.<br />
<br />
===header===<br />
If this parameter is left blank, <code>Audio sample</code> (the default setting) will be generated. A custom header may be created by entering text in this field. For no header, enter {{para|header|no}}. For multiple audio samples, set the first to {{para|header|Audio samples}} and the succeeding links to {{para|header|no}}, so only one header for all will be created (see Example with multiple samples).<br />
<br />
===file===<br />
Enter the name of the audio file, without the preceding <code>File:</code>. For example for [[:File:Silent Night (choral).ogg]], enter <code>Silent Night (choral).ogg</code>.<br />
<br />
===description===<br />
Since the infobox already provides the name of the song, artist, dates, etc., an additional description is usually not necessary. However, "First verse", "Chorus", etc., may be added to identify a specific sample. Generally, commentary about the composition, techniques used, etc., should be included in the main body of the article and not in the infobox.<br />
<br />
==Example with multiple samples==<br />
<pre style="overflow:auto;">{{Infobox song<br />
...<br />
| misc = {{subst:Audio sample<br />
| type = song<br />
| header = Audio samples<br />
| file = Silent Night (choral).ogg<br />
| description = Choral version<br />
}}{{subst:Audio sample<br />
| type = song<br />
| header = no<br />
| file = Gruber - Schumann-Heink - Stille Nacht.ogg<br />
| description = Soprano solo version<br />
}}<br />
</pre><br />
<br />
== Microformat ==<br />
{{UF-audio}}<br />
<br />
== TemplateData ==<br />
{{TemplateDataHeader}}<br />
<br />
<templatedata><br />
{<br />
"params": {<br />
"type": {<br />
"label": "Type",<br />
"description": "Type of recording (this changes the colour of the header), such as single for khaki or song for light blue. For album types, see [[Template:Infobox album/color]]",<br />
"example": "song, single",<br />
"type": "string",<br />
"suggested": true,<br />
"required": true<br />
},<br />
"header": {<br />
"label": "Header",<br />
"description": "Change the header text. If value is \"none\", then the header will not be displayed.",<br />
"example": "none",<br />
"type": "string"<br />
},<br />
"file": {<br />
"label": "File",<br />
"description": "Audio file to be shown.",<br />
"example": "Example.ogg",<br />
"type": "wiki-file-name",<br />
"required": true,<br />
"suggested": true<br />
},<br />
"description": {<br />
"label": "Description",<br />
"description": "Description of the audio file",<br />
"example": "\"O Kazakhstan\" (instrumental)",<br />
"type": "string"<br />
}<br />
},<br />
"description": "Adds an audio sample for album and song infoboxes. Use in the \"misc\" parameter of those templates.",<br />
"paramOrder": [<br />
"type",<br />
"header",<br />
"file",<br />
"description"<br />
],<br />
"format": "block"<br />
}<br />
</templatedata><br />
<br />
<includeonly>{{sandbox other||<br />
<!-- Categories below this line, please; interwikis at Wikidata --><br />
[[Category:Exclude in print]]<br />
[[Category:Music infobox templates]]<br />
[[Category:Audio templates]]<br />
[[Category:Embeddable templates]]<br />
}}</includeonly></div>en>Zyxw