Template:Audio

You don't need to be Editor-In-Chief to add or edit content to WikiDoc. You can begin to add to or edit text on this WikiDoc page by clicking on the edit button at the top of this page. Next enter or edit the information that you would like to appear here. Once you are done editing, scroll down and click the Save page button at the bottom of the page.

Jump to: navigation, search

[[:Media:|]] 

[view] [edit] Template documentation

Contents

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.

Usage

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

Example:

'''Bordeaux''' ({{Audio|Fr-Bordeaux.ogg|pronunciation}}) is a [[Seaport|port]] city in...

gives this:

Bordeaux (pronunciation ) is a port city in...

Note that a printout of the page will remove the "help·info" bit and give:

Bordeaux (pronunciation ) is a port city in...

Using on other wikis

This is one of several templates that use CSS to format the template instead of containing all the formatting inline. It will not work on another wiki unless you copy both the template and the CSS rules.

This particular template depends on the "audiolink" css class to add the loudspeaker icon as a background image for the link, which allows it to be clicked and go to the same link destination instead of the image's description page.

These CSS rules are in MediaWiki:Common.css (the part that starts with .audiolink a {). You will need to get an administrator on your local wiki to add the rules to your site's CSS. (Likewise, tweaking the size and placement of the icon is done by changing the CSS; not the template itself.)

See also

bg:Шаблон:Audioeo:Ŝablono:Sondosiero fa:الگو:صدا it:Template:Audio ko:틀:듣기 mk:Шаблон:Аудио no:Mal:Audio rmy:Format:Shun sl:Predloga:Avdio sv:Mall:Audio th:Template:เสียง

vi:Tiêu bản:Âm thanh
Personal tools