Template:IPA audio link/doc

From Pantonian Republic Wiki
< Template:IPA audio link
Revision as of 15:20, 28 May 2023 by Sebbog (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template formats the audio link used by Template:IPA-all and similar templates at Category:International Phonetic Alphabet templates. It should not be used directly in articles.

Usage

Usage within an IPA template will typically be something similar to:
{{#if:{{{3|}}}|{{IPA audio link|{{{3}}}|attribution={{{attribution|}}} }} }}

In the sample code above, "3" is the parameter for the file name (e.g. "Fr-Avignon.ogg") and "attribution" is an optional parameter specifying whether or not to create an attribution link (i.e. a link to the file page).

Example output

Note that this template is not intended for use directly in articles. The following examples are purely to show variations in output.

Basic
Without attribution link

Audio files which are licensed as CC0 or public domain may be linked to without an attribution link:

TemplateData

<templatedata> { "params": { "1": { "label": "Audio file", "description": "The audio file without the \"File:\" prefix", "example": "En-us-Foobar.ogg" }, "attribution": { "label": "Attribution link", "description": "Set attribution to \"no\" to only display a speaker icon that links directly to the audio file (with no link to the File page).", "example": "no" } }, "paramOrder": [ "1", "attribution" ], "description": "Formats the audio link used by IPA-all and similar templates" } </templatedata>