Difference between revisions of "Template:Audio/doc"

From blackwiki
Jump to navigation Jump to search
imported>Odie5533
(added help=no info)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(40 intermediate revisions by 33 users not shown)
Line 1: Line 1:
{{documentation subpage}}<includeonly>{{pp-template|small=yes}}</includeonly>
+
{{Documentation subpage}}
<!--PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE-->
+
<!--PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE-->
 +
{{for|instructions on inserting audio files|Wikipedia:Creation and usage of media files#Audio}}
 +
=== 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. Please note that this just creates a link to the file and does not actually embed the file. If the file is Non-Free and only referenced via this template it is not in compliance with [[WP:NFCC#7|Wikipedia:Non-free content criteria § Policy #7]].
  
== Purpose ==
+
=== Usage ===
 
+
; Basic:
This template links to an audio file for quick listening.  It is meant to be used inline with text, for pronunciations and the like.
+
<code><nowiki>{{Audio|name of sound file|text to use as link to soundfile|help=}}</nowiki></code>
 
 
== Usage ==
 
 
 
<code><nowiki>{{Audio|name of sound file|text to use as link to soundfile}}</nowiki></code>
 
 
 
Example:
 
 
 
:<code><nowiki>'''Bordeaux''' ({{Audio|Fr-Bordeaux.ogg|pronunciation}}) is a [[Seaport|port]] city in...</nowiki></code>
 
 
 
gives this:
 
 
 
:'''Bordeaux''' ({{Audio|Fr-Bordeaux.ogg|pronunciation}}) is a [[Seaport|port]] city in...
 
 
 
Note that a printout of the page will remove the "help·info" bit and give:
 
 
 
:'''Bordeaux''' (<span class="unicode audiolink">[[:Media:Fr-Bordeaux.ogg|pronunciation]]</span>&nbsp;) is a [[Seaport|port]] city in...
 
  
 +
; Simple
 +
: <code><nowiki>'''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation}}) is a state located in...</nowiki></code>
 +
: → '''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation}}) is a state located in...
 +
; Help links
 
Setting {{para|help|no}} disables the "help/info" links. If this is done the template {{tlx|inline audio}} ''must'' be shown on the page.
 
Setting {{para|help|no}} disables the "help/info" links. If this is done the template {{tlx|inline audio}} ''must'' be shown on the page.
  
 +
: <code><nowiki>'''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation of "Alabama"|help=no}})</nowiki></code>
 +
: → '''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation|help=no}})
 +
: Todo: add {{tlx|inline audio}} to this page.
  
== See also ==
+
=== Microformat ===
 
+
{{UF-audio}}
* {{tiw|Audio-IPA}}, a variant of this template to be used with [[International Phonetic Alphabet|IPA]] notation.
 
* {{tiw|Spoken}}, which adds only the small icon with no links.
 
* {{tiw|Listen}}, which sets an audio clip off from the main text.
 
 
 
<includeonly>
 
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 
[[Category:Audio templates|{{PAGENAME}}]]
 
[[Category:Exclude in print|{{PAGENAME}}]]
 
  
 +
=== See also ===
 +
{{Audio templates}}
  
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
+
<includeonly>{{Sandbox other|
[[de:Vorlage:Audio]]
+
| <!-- PLEASE ADD CATEGORIES BELOW THIS LINE: -->
[[be-x-old:Шаблён:Праслухаць]]
+
[[Category:Audio templates]]
[[bg:Шаблон:Audio]]
+
[[Category:Templates that add a tracking category]]
[[es:Plantilla:Audio]]
+
}}</includeonly>
[[eo:Ŝablono:Sondosiero]]
 
[[fa:الگو:صدا]]
 
[[fr:Modèle:Prononciation]]
 
[[is:Snið:Hljóð]]
 
[[it:Template:Audio]]
 
[[ko:틀:듣기]]
 
[[mk:Шаблон:Аудио]]
 
[[mn:Template:Audio]]
 
[[ja:Template:Audio]]
 
[[ka:თარგი:აუდიო]]
 
[[no:Mal:Audio]]
 
[[pl:Szablon:Wymowa]]
 
[[pt:Predefinição:Áudio]]
 
[[ru:Шаблон:Audio]]
 
[[rmy:Format:Shun]]
 
[[sl:Predloga:Avdio]]
 
[[sv:Mall:Audio]]
 
[[th:Template:เสียง]]
 
[[uk:Template:Audio]]
 
[[vi:Tiêu bản:Âm thanh]]
 
</includeonly>
 

Latest revision as of 23:23, 23 April 2020

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. Please note that this just creates a link to the file and does not actually embed the file. If the file is Non-Free and only referenced via this template it is not in compliance with Wikipedia:Non-free content criteria § Policy #7.

Usage

Basic

{{Audio|name of sound file|text to use as link to soundfile|help=}}

Simple
'''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation}}) is a state located in...
Alabama (About this soundpronunciation ) is a state located in...
Help links

Setting |help=no disables the "help/info" links. If this is done the template {{inline audio}} must be shown on the page.

'''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation of "Alabama"|help=no}})
Alabama (About this soundpronunciation)
Todo: add {{inline audio}} to this page.

Microformat

Template:UF-audio

See also