Template:rad-pr: Difference between revisions

From Laenkea
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke:rad-pronunciation|show|{{SUBPAGENAME}}|{{{1|}}}}}</includeonly><noinclude>{{documentation}}</noinclude>")
(No difference)

Revision as of 21:43, 21 August 2023

TemplateDocumentation.svg Template documentation [view] [edit] [purge]

Usage

This template can be added to a Radestrian entry, and it will automatically generate and format the pronunciation section.

There are no mandatory parameters: the template alone will generate the pronunciation from the page title and create the relevant list of rhymes and syllabification.

{{rad-pr}}

on a polysyllabic word's page, such as Aroír, will generate the standard pronunciation, the corresponding rhyme and the syllabification of the word:


  • IPA(key)/ˈarɔ.iːr/, /rad-pr/
  • Rhymes: -arɔ.iːr, -iːr (9), -ad-pr
  • Syllabification: A–ro–ír

On a monosyllabic word's page, such as hars, the syllabification will not be present:


  • IPA(key)/hars/, /rad-pr/
  • Rhymes: -ars (3), -ad-pr

On a multi-word entry's page, such as Arans ag Eurúpjeșe, the rhyme will not be present. Words may also appear with a narrower phonetic transcription if applicable:


  • IPA(key)/ˈarans aɡ œˈruːpjɛʃɛ/ [ˈarãˑs aɡ œˈruːpjɛʃɛ], /rad-pr/
  • Rhyme: -ad-pr
  • Syllabification: A–rans ag Eu–rú–pje–șe

On an affix's page, such as sjavair·, the rhyme list will not be present:


  • IPA(key)/ˌʃavair-/, /rad-pr/
  • Syllabification: sja–vair·

With words pronounced differently in the hjádvanþs standard, such as hjárs, it will appear in the dialect section:



Modes

Extra information can be added through extra arguments. There are three modes of extra argument:

  1. |IPA
  2. |syllables
  3. |homophones

All arguments given after the activation of a mode are interpreted as arguments for that mode. |IPA, however, is selected by default. Additional arguments given in IPA will come with a generated rhyme where possible.


us
{{rad-pr|IPA|/us/}}
  • IPA(key)/ɤs/, /rad-pr/, /us/
  • Rhymes: -ɤs (24), -ad-pr, -us (2)

You can toggle modes by calling their name.


as
{{rad-pr|homophones|às|'as|IPA|/ɤs/}}
  • IPA(key)/as/, /rad-pr/, /ɤs/
  • Homophones: 'as
  • Rhymes: -as (11), -ad-pr, -ɤs (24)

In syllables mode, syllables are divided as arguments, with multiple entries divided by ||, as in {{syllables}}.


asedua
{{rad-pr|syllables|a|se|dua||a|sed|ua}}
  • IPA(key)/aˈsɛdu.a/, /rad-pr/
  • Rhymes: -ɛdu.a, -a (58), -ad-pr
  • Syllabification: a–se–du–a, se–dua, a–sed–ua

Alternative pronunciation generation

Alternative pronunciation can also be generated orthographically using <angle brackets>, which will generate a pronunciation for the bracketed word. This is useful if a word is not pronounced as it is written, but is still predictable from a more native spelling.


herands
{{rad-pr|<ħerands>}}
  • IPA(key)/ˈhɛrandz/, /rad-pr/, /ˈɣɛrandz/
  • Rhymes: -ad-pr, -ɛrandz
  • Syllabification: he–rands


Washingtons
{{rad-pr|noauto|<Woșiņtons>|syllables|noauto|Wa|shing|tons}}
  • IPA(key)/rad-pr/
  • Rhyme: -ad-pr
  • Syllabification: Wa–shing–tons

Adding notes

Notes can be added in (round brackets) in the parameter they apply to.


a
{{rad-pr|/ɤ/ (definite article)}}
  • IPA(key)/a/, /rad-pr/, /ɤ/ (definite article)
  • Rhymes: -a (58), -ad-pr, (5)

Dialects and registers

Dialects and registers are sub-modes under IPA. Calling these will set the arguments to be interpreted under the previously selected dialect/register. The standard dialect and plain register are selected by default. Calling a dialect will reset the register. Calling a dialect or register outside of IPA mode will switch to IPA mode, and the dialect and register will be reset. Non-standard dialects do not contribute to the rhyme generation.


ag
{{rad-pr|colloquial|/ɤɡ/}}
  • IPA(key)/aɡ/, /rad-pr/
  • Rhymes: -aɡ, -ad-pr

rvaus
{{rad-pr|insular|/rˠoːs/}}
  • IPA(key)/rvaus/, /rad-pr/
  • Rhymes: -aus (6), -ad-pr

rvaus
{{rad-pr|insular|/rˠoːs/|colloquial|[ɹoːs]}}
  • IPA(key)/rvaus/, /rad-pr/
  • Rhymes: -aus (6), -ad-pr

Disabling auto-generation

Automatic IPA and syllables can be turned off by calling |no( )auto in their respective modes. Note that rhyme is automatically generated for each standard input regardless. Although automatic generation can be turned off, a standard IPA transcription in plain register must still be inputted. Otherwise, you get an error.


Aroír
{{rad-pr|syllables|no auto}}
  • IPA(key)/ˈarɔ.iːr/, /rad-pr/
  • Rhymes: -arɔ.iːr, -iːr (9), -ad-pr
  • Syllabification: A–ro–ír

ag
{{rad-pr|no auto|/ɤɡ/}}
  • IPA(key)/rad-pr/
  • Rhyme: -ad-pr

Entry name override

There is one last parameter, |entry=, which can be used to override the automatic input from the page name, though this is only applicable in exemplification settings, such as this one. Calling this parameter will suppress all categorisation.


Aroír
 {{rad-pr|syllables|no auto|entry=Aroír}}

allows me to call {{rad-pr|syllables|no auto}} outside of the Aroír page.