Template:es-pr
Jump to navigation
Jump to search
- The following documentation is located at Template:es-pr/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
Uses Lua:
This template generates the pronunciation section of a Spanish term, including the phonemic and phonetic pronunciations, rhymes, and hyphenation, as well as (if manually specified) audio files and homophones.
This template is intended to replace the use of {{es-IPA}}
along with {{rhymes}}
, {{hyph}}
, {{audio}}
, and similar templates specifying auxiliary pronunciation information. It uses the same respelling conventions as {{es-IPA}}
, but automatically generates the information for rhymes and hyphenation.
Usage
Quick reference table
Page | Example | Comment |
---|---|---|
universidad | {{es-pr}}
|
Most of the time, no parameters are needed. |
cebolla | {{es-pr}}
|
As with {{es-IPA}} , dialect-specific variants are handled automatically.
|
| ||
Minnesota | {{es-pr|Minesota}}
|
If the automatically generated pronunciation is incorrect, use respelling to indicate the correct pronunciation. |
henna | {{es-pr|jenna,jena}}
|
Multiple comma-separated respellings can be given. |
joystick | {{es-pr|choistic|yoistic}}
|
Multiple respellings can also be given as separate parameters, or comma-separated and separate-parameter respellings can be combined. Comma-separated respellings are displayed comma-separated on the same line, while separate-parameter respellings are displayed on separate lines. Here, the respelling yoistic generates different dialect-specific outputs so it's better to place it on its own line. |
| ||
habeas corpus | {{es-pr|+|hábeas corpus}}
|
Use + to stand for the pagename in a respelling. |
performance | {{es-pr|perfórmans|pérformans<q:sometimes>}}
|
Use the inline modifier syntax (also found in {{affix}} , {{desc}} , {{syn}} , {{col}} and several other templates) to add properties of specific respellings. Here, a qualifier is added to the second respelling.
|
punk | {{es-pr|+|panc<a:nonstandard><rhyme:->}}
|
Multiple modifiers can be stacked onto a single respelling. Here we suppress the rhyme and associated category when giving a nonstandard pronunciation. |
poliamor | {{es-pr|poli.amor}}
|
Explicit syllable dividers can be given to force a syllable division where it would not normally occur, or to specify a different division than the default. |
beethoveniano | {{es-pr|betoveniano<hyph:bee.tho.ve.nia.no>}}
|
A hyphenation is not normally displayed if the respelling is different from the pagename (unless the respelling differs from the pagename only in having an additional accent or explicit syllable divider). Here we give an explicit hyphenation. |
Afrodita | {{es-pr|+<audio:LL-Q1321 (spa)-Millars-Afrodita.wav>}}
|
Here we give an audio pronunciation. No special respelling is needed so we use + .
|
Colombia | {{es-pr|+<audio:Es-República de Colombia.oga<a:Colombia><text:República de Colombia>><audio:es-Colombia.ogg<a:Peru><text:Colombia; capital: Bogotá>>}}
|
A more complex example with audio pronunciations. Here, two audio files are given. Certain inline modifiers (<audio:...> , <hyph:...> to override the hyphenation, <rhyme:...> to override the rhyme, and <hmp:...> to specify a homophone) can themselves take embedded inline modifiers. Here we attach an accent qualifier to each audio file to specify the accent being illustrated, and specify the text of the audio files, which contain additional words beyond just the word Colombia.
|
d | {{es-pr|raw:/d/<q:phoneme>,raw:[ð̞]|dé<q:letter name><audio:letter d es es.flac<a:Spain>>}}
|
A respelling preceded by raw: is a "raw" pronunciation, and should be followed by /.../ to specify the phonemic pronunciation, [...] to specify the phonetic pronunciation, or /.../ [...] to specify both. Here we give a phonemic and phonetic pronunciation of the letter on one line along with a qualifier (which is displayed before the pronunciation, hence we attach it to the first respelling), and the respelling of the letter name on a separate line.
|
Parameters
The allowed parameters are as follows:
|1=
,|2=
, ...- Specify a line of pronunciation; see above.
|rhyme=
- Specify one or more comma-separated rhymes that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for
<rhyme:...>
. Use this when there are multiple lines of pronunciations, to avoid additional indentation. |hyph=
- Specify one or more comma-separated hypenations that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for
<hyph:...>
. Use this when there are multiple lines of pronunciations, to avoid additional indentation. |hmp=
- Specify one or more comma-separated homophones that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for
<hmp:...>
. Use this when there are multiple lines of pronunciations, to avoid additional indentation. |audio=
,|audio2=
, ...- Specify one or more audio files that apply to all pronunciations and are displayed below all of them, without additional indentation. Inline modifiers can be specified, as for
<audio:...>
. (You cannot specify multiple comma-separated audio files in a single parameter, as audio filenames sometimes have embedded commas in them not followed by a space.) Use this when there are multiple lines of pronunciations, to avoid additional indentation. |pagename=
- Explicitly specify the pagename, for testing purposes and for use on documentation pages.