Template:rad-pr/documentation: Difference between revisions

From Laenkea
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 6: Line 6:
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.
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.


  {{tempn|rad-pronunciation}}
  {{tempn|rad-pr}}


on a polysyllabic word's page, such as {{m|rad|Aroír}}, will generate the standard pronunciation, the corresponding rhyme and the syllabification of the word:
on a polysyllabic word's page, such as {{m|rad|Aroír}}, will generate the standard pronunciation, the corresponding rhyme and the syllabification of the word:
<hr>
<hr>
{{rad-pronunciation|entry=Aroír}}
{{rad-pr|entry=Aroír}}
<hr>
<hr>


On a monosyllabic word's page, such as {{m|rad|hars}}, the syllabification will not be present:
On a monosyllabic word's page, such as {{m|rad|hars}}, the syllabification will not be present:
<hr>
<hr>
{{rad-pronunciation|entry=hars}}
{{rad-pr|entry=hars}}
<hr>
<hr>


On a multi-word entry's page, such as {{m|rad|Arans ag Eurúpjeșe}}, the rhyme will not be present. Words may also appear with a narrower phonetic transcription if applicable:
On a multi-word entry's page, such as {{m|rad|Arans ag Eurúpjeșe}}, the rhyme will not be present. Words may also appear with a narrower phonetic transcription if applicable:
<hr>
<hr>
{{rad-pronunciation|entry=Arans ag Eurúpjeșe}}
{{rad-pr|entry=Arans ag Eurúpjeșe}}
<hr>
 
On an affix's page, such as {{m|rad|sjavair·}}, the rhyme list will not be present:
<hr>
{{rad-pr|entry=sjavair·}}
<hr>
<hr>


With words pronounced differently in the ''[[:Appendix:Radestrian_pronunciation|hjádvanþs]]'' standard, such as {{m|rad|hjárs}}, it will appear in the dialect section:
With words pronounced differently in the ''[[:Appendix:Radestrian_pronunciation|hjádvanþs]]'' standard, such as {{m|rad|hjárs}}, it will appear in the dialect section:
<hr>
<hr>
{{rad-pronunciation|entry=hjárs}}
{{rad-pr|entry=hjárs}}
<hr>
<hr>


==Additional parameters==
===Modes===
Extra information can be added through extra arguments. There are three ''modes'' of extra argument:
Extra information can be added through extra arguments. There are three ''modes'' of extra argument:
# <code>|IPA</code>
# <code>|'''IPA'''</code>
# <code>|syllables</code>
# <code>|'''syllables'''</code>
# <code>|homophones</code>
# <code>|'''homophones'''</code>
All arguments given after the activation of a mode are interpreted as arguments for that mode. <code>|IPA</code>, however, is selected by default. Additional arguments given in <code>IPA</code> will come with a generated rhyme where possible.
All arguments given after the activation of a mode are interpreted as arguments for that mode. <code>|IPA</code>, however, is selected by default. Additional arguments given in <code>IPA</code> will come with a generated rhyme where possible.


<hr>
<hr>
: <big>{{l|rad|us}}</big>
: <big>{{l|rad|us}}</big>
  {{tempn|rad-pronunciation|/us/}}
  {{tempn|rad-pr|<s>'''IPA'''|</s>/us/}}
{{rad-pronunciation|entry=us|/us/}}
{{rad-pr|entry=us|/us/}}
<hr>
<hr>


Line 44: Line 49:


<hr>
<hr>
: <big>{{l|rad|às}}</big>
: <big>{{l|rad|as}}</big>
  {{tempn|rad-pronunciation|homophones|as|‘as}}
  {{tempn|rad-pr|'''homophones'''|às|'as|'''IPA'''|/ɤs/}}
{{rad-pronunciation|entry=às|homophones|as|‘as}}
{{rad-pr|entry=as|homophones|às|'as|IPA|/ɤs/}}
<hr>
<hr>


Line 53: Line 58:
<hr>
<hr>
: <big>{{l|rad|asedua}}</big>
: <big>{{l|rad|asedua}}</big>
  {{tempn|rad-pronunciation|syllables|a|se|dua||a|sed|ua}}
  {{tempn|rad-pr|'''syllables'''|a|se|dua'''||'''a|sed|ua}}
{{rad-pronunciation|entry=asedua|syllables|a|se|dua||a|sed|ua}}
{{rad-pr|entry=asedua|syllables|a|se|dua||a|sed|ua}}
<hr>
<hr>


Dialects and registers are <i>sub-modes</i> under <code>IPA</code>. 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 <code>IPA</code> mode will switch to <code>IPA</code> mode, and the dialect and register will be reset. Non-standard dialects do not contribute to the rhyme generation.
====Alternative pronunciation generation====
Alternative pronunciation can also be generated orthographically using <code><nowiki><angle brackets></nowiki></code>, 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.


<hr>
<hr>
: <big>{{l|rad|ag}}</big>
: <big>{{l|rad|herands}}</big>
  {{tempn|rad-pronunciation|colloquial|/ɤɡ/}}
  {{tempn|rad-pr|<ħerands>}}
{{rad-pronunciation|entry=ag|colloquial|/ɤɡ/}}
{{rad-pr|entry=herands|<ħerands>}}
<hr>
<hr>
: <big>{{l|rad|rvaus}}</big>
 
{{tempn|rad-pronunciation|insular|/rˠoːs/}}
{{rad-pronunciation|entry=rvaus|insular|/rˠoːs/}}
<hr>
<hr>
: <big>{{l|rad|rvaus}}</big>
: <big>{{l|rad|Washingtons}}</big>
  {{tempn|rad-pronunciation|insular|/rˠoːs/|colloquial|[ɹoːs]}}
  {{tempn|rad-pr|noauto|<Woșiņtons>|syllables|noauto|Wa|shing|tons}}
{{rad-pronunciation|entry=rvaus|insular|/rˠoːs/|colloquial|[ɹoːs]}}
{{rad-pr|entry=Washingtons|noauto|<Woșiņtons>|syllables|noauto|Wa|shing|tons}}
<hr>
<hr>


Automatic <code>IPA</code> and <code>syllables</code> can be turned off by calling <code>|no auto</code> 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.
====Adding notes====
Notes can be added in <code>(round brackets)</code> in the parameter they apply to.


<hr>
<hr>
: <big>{{l|rad|Aroír}}</big>
: <big>{{l|rad|a}}</big>
  {{tempn|rad-pronunciation|syllables|no auto}}
  {{tempn|rad-pr|/ɤ/ (definite article)}}
{{rad-pronunciation|entry=Aroír|syllables|no auto}}
{{rad-pr|entry=a|/ɤ/ (definite article)}}
<hr>
: <big>{{l|rad|ag}}</big>
{{tempn|rad-pronunciation|no auto|/ɤɡ/}}
{{rad-pronunciation|entry=ag|no auto|/ɤɡ/}}
<hr>
<hr>


Otherwise you get an error:
===Dialects and registers===
Dialects and registers are <i>sub-modes</i> under <code>IPA</code>. 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 <code>IPA</code> mode will switch to <code>IPA</code> mode, and the dialect and register will be reset. Non-standard dialects do not contribute to the rhyme generation.


<hr>
<hr>
: <big>{{l|rad|ag}}</big>
: <big>{{l|rad|ag}}</big>
  {{tempn|rad-pronunciation|no auto}}
  {{tempn|rad-pr|'''colloquial'''|/ɤɡ/}}
{{rad-pronunciation|entry=ag|no auto}}
{{rad-pr|entry=ag|colloquial|/ɤɡ/}}
<hr>
: <big>{{l|rad|rvaus}}</big>
{{tempn|rad-pr|'''insular'''|/rˠoːs/}}
{{rad-pr|entry=rvaus|insular|/rˠoːs/}}
<hr>
: <big>{{l|rad|rvaus}}</big>
{{tempn|rad-pr|'''insular'''|/rˠoːs/|'''colloquial'''|[ɹoːs]}}
{{rad-pr|entry=rvaus|insular|/rˠoːs/|colloquial|[ɹoːs]}}
<hr>
<hr>


See?
===Disabling auto-generation===
Automatic <code>IPA</code> and <code>syllables</code> can be turned off by calling <code>|no( )auto</code> 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.


<hr>
: <big>{{l|rad|Aroír}}</big>
{{tempn|rad-pr|'''syllables'''|'''no auto'''}}
{{rad-pr|entry=Aroír|syllables|no auto}}
<hr>
: <big>{{l|rad|ag}}</big>
{{tempn|rad-pr|'''no auto'''|/ɤɡ/}}
{{rad-pr|entry=ag|no auto|/ɤɡ/}}
</hr>


There is one last parameter, {{para|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.
===Entry name override===
There is one last parameter, {{para|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.


<hr>
<hr>
: <big>{{l|rad|Aroír}}</big>
: <big>{{l|rad|Aroír}}</big>
   {{tempn|rad-pronunciation|entry=Aroír|syllables|no auto}}
   {{tempn|rad-pr|'''entry='''Aroír|'''syllables'''|'''no auto'''}}
allows me to call {{temp|rad-pronunciation|syllables|no auto}} outside of the {{m|rad|Aroír}} page.
allows me to call {{temp|rad-pr|syllables|no auto}} outside of the {{m|rad|Aroír}} page.
<hr>
<hr>

Latest revision as of 20:37, 6 August 2024

Edit-copy green.svg Documentation for Template:rad-pr. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

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/
  • Rhymes: -arɔ.iːr, -iːr (9)
  • Syllabification: A–ro–ír

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



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ɛʃɛ]
  • 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-/
  • 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/}}

You can toggle modes by calling their name.


as
{{rad-pr|homophones|às|'as|IPA|/ɤs/}}

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/
  • Rhymes: -ɛdu.a, -a (58)
  • Syllabification: a–se–du–a, 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/, /ˈɣɛrandz/
  • Rhyme: -ɛrandz
  • Syllabification: he–rands


Washingtons
{{rad-pr|noauto|<Woșiņtons>|syllables|noauto|Wa|shing|tons}}
  • IPA(key)/ˈwɔʃiŋtɔns/ [ˈwɔʃiŋtɔ̃ˑs]
  • Rhymes: -ɔʃiŋtɔns, -ɔns
  • 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/, /ɤ/ (definite article)
  • Rhymes: -a (58), (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ɡ/
    • (colloquial) /ɤɡ/
  • Rhymes: -aɡ, -ɤɡ (4)

rvaus
{{rad-pr|insular|/rˠoːs/}}

rvaus
{{rad-pr|insular|/rˠoːs/|colloquial|[ɹoːs]}}

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}}

ag
{{rad-pr|no auto|/ɤɡ/}}

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.