Template:Pronunciation/doc
Appearance
This is a documentation subpage for Template:Pronunciation. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This is equivalent of {{Audio}}, except scaled smaller and with the label predefined to "pronunciation".
These codes are equivalent:
Guy Verhofstadt ({{pronunciation|Nl-be guy verhofstadt.ogg|Dutch pronunciation|help=no}}) is ...
Guy Verhofstadt ({{small|{{Audio|Nl-be guy verhofstadt.ogg|Dutch pronunciation|help=no}}}}) is ...
which produce:
- Guy Verhofstadt () is ...
- Guy Verhofstadt () is ...
If only the first parameter (the file name) is specified:
{{pronunciation|En-us-eye.ogg}}
→
The second parameter can be used to override the label that links to the audio:
{{pronunciation|En-us-eye.ogg|listen}}
→
Set the third parameter to either (
or )
to enclose the template in parentheses. Compare:
{{IPA|[aɪ]}} {{pronunciation|En-us-eye.ogg|listen|(|help=no}}
→ [aɪ] ( ){{IPA|[aɪ]}} {{pronunciation|En-us-eye.ogg|(listen)|help=no}}
→ [aɪ]{{IPA|[aɪ]}} ({{pronunciation|En-us-eye.ogg|listen|help=no}})
→ [aɪ] ()
See also
[edit]- {{Pronunciation needed}}
- {{IPA}}
- {{Respell}} (for pronunciation respelling)
- {{Listen}} – sets an audio clip off from the main text
- {{Listen image}} – sets an audio clip and an associated image off from the main text
- {{Audio}} – for inline sounds like pronunciations
- {{Audio-IPA}} – a variant of this template to be used with IPA notation
- {{Pronunciation}} – a shortcut for
{{small|{{Audio|soundfile.ogg|pronunciation}}}}
- {{Spoken Wikipedia}} – for linking spoken Wikipedia article versions
- {{Audio icon}} – adds only the small icon with no links
- {{Inline audio}} – adds a notice with link to Wikipedia:Media help
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Pronunciation in articles based on its TemplateData.
TemplateData for Pronunciation
provides inline audio for the pronunciation of a term
Parameter | Description | Type | Status | |
---|---|---|---|---|
sound file | 1 | a sound file to link for the term's pronunciation
| File | required |
label | 2 | The text to display for the template inline, linked to play the sound file.
| String | suggested |
surround with parentheses? | 3 | if "(" or ")", encloses the template in parentheses
| String | suggested |
show help? | help | if "no", disables the help link
| String | optional |