Difference between revisions of "Template:Audio-nohelp"

From blackwiki
Jump to navigation Jump to search
imported>Davykamanzi
(→‎top: Including option to exclude info)
imported>Davykamanzi
Line 1: Line 1:
<span class="haudio"><span class="unicode audiolink fn">[[:Media:{{{1}}}|{{{2}}}]]</span> {{#ifeq:{{Yesno|{{{info|yes}}}}}|no||<span class="metadata audiolinkinfo"><small>([[:Image:{{{1}}}|info]])</small></span>}}</span>{{category handler|main=[[Category:Articles with hAudio microformats]]}}<noinclude>
+
<span class="haudio"><span class="unicode audiolink fn">[[:Media:{{{1}}}|{{{2}}}]]</span>{{#ifeq:{{Yesno|{{{info|yes}}}}}|no||&nbsp;<span class="metadata audiolinkinfo"><small>([[:Image:{{{1}}}|info]])</small></span>}}</span>{{category handler|main=[[Category:Articles with hAudio microformats]]}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 22:25, 4 November 2016

[[:Media:{{{1}}}|{{{2}}}]] 

Template documentation[view] [edit] [history] [purge]

Purpose

This template links to an audio file for quick listening. It is meant to be used inline with text, for pronunciations and the like; many times in succession and when individual help links are not necessary. (see Morse code for an example).

Since the template does not include a help link, an explanation like {{Inline audio}} needs to be provided elsewhere in the article.

Usage

{{Audio-nohelp|<name of sound file>|<text to use as link to soundfile>|no-info= }}

Example 1:

{{Audio-nohelp|X morse code.ogg|X}}

gives this:

X 

Example 2:

{{Audio-nohelp|X morse code.ogg|X|no-info=yes}}

gives this:

X 

Microformat

Template:UF-audio

See also