Template:rad-pr/documentation: Difference between revisions
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
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- | {{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: | ||
Line 37: | Line 37: | ||
<hr> | <hr> | ||
: <big>{{l|rad|us}}</big> | : <big>{{l|rad|us}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|<s>'''IPA'''|</s>/us/}} | ||
{{rad-pr|entry=us|/us/}} | {{rad-pr|entry=us|/us/}} | ||
<hr> | <hr> | ||
Line 45: | Line 45: | ||
<hr> | <hr> | ||
: <big>{{l|rad|as}}</big> | : <big>{{l|rad|as}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''homophones'''|às|‘as|'''IPA'''|/ɤs/}} | ||
{{rad-pr|entry=as|homophones|às|‘as|IPA|/ɤs/}} | {{rad-pr|entry=as|homophones|às|‘as|IPA|/ɤs/}} | ||
<hr> | <hr> | ||
Line 53: | Line 53: | ||
<hr> | <hr> | ||
: <big>{{l|rad|asedua}}</big> | : <big>{{l|rad|asedua}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''syllables'''|a|se|dua'''||'''a|sed|ua}} | ||
{{rad-pr|entry=asedua|syllables|a|se|dua||a|sed|ua}} | {{rad-pr|entry=asedua|syllables|a|se|dua||a|sed|ua}} | ||
<hr> | <hr> | ||
Line 62: | Line 62: | ||
<hr> | <hr> | ||
: <big>{{l|rad|ag}}</big> | : <big>{{l|rad|ag}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''colloquial'''|/ɤɡ/}} | ||
{{rad-pr|entry=ag|colloquial|/ɤɡ/}} | {{rad-pr|entry=ag|colloquial|/ɤɡ/}} | ||
<hr> | <hr> | ||
: <big>{{l|rad|rvaus}}</big> | : <big>{{l|rad|rvaus}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''insular'''|/rˠoːs/}} | ||
{{rad-pr|entry=rvaus|insular|/rˠoːs/}} | {{rad-pr|entry=rvaus|insular|/rˠoːs/}} | ||
<hr> | <hr> | ||
: <big>{{l|rad|rvaus}}</big> | : <big>{{l|rad|rvaus}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''insular'''|/rˠoːs/|'''colloquial'''|[ɹoːs]}} | ||
{{rad-pr|entry=rvaus|insular|/rˠoːs/|colloquial|[ɹoːs]}} | {{rad-pr|entry=rvaus|insular|/rˠoːs/|colloquial|[ɹoːs]}} | ||
<hr> | <hr> | ||
Line 79: | Line 79: | ||
<hr> | <hr> | ||
: <big>{{l|rad|Aroír}}</big> | : <big>{{l|rad|Aroír}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''syllables'''|'''no auto'''}} | ||
{{rad-pr|entry=Aroír|syllables|no auto}} | {{rad-pr|entry=Aroír|syllables|no auto}} | ||
<hr> | <hr> | ||
: <big>{{l|rad|ag}}</big> | : <big>{{l|rad|ag}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''no auto'''|/ɤɡ/}} | ||
{{rad-pr|entry=ag|no auto|/ɤɡ/}} | {{rad-pr|entry=ag|no auto|/ɤɡ/}} | ||
</hr> | </hr> | ||
Line 91: | Line 91: | ||
<hr> | <hr> | ||
: <big>{{l|rad|ag}}</big> | : <big>{{l|rad|ag}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''no auto'''}} | ||
{{rad-pr|entry=ag|no auto}} | {{rad-pr|entry=ag|no auto}} | ||
<hr> | <hr> | ||
Line 101: | Line 101: | ||
<hr> | <hr> | ||
: <big>{{l|rad|sjavair·}}</big> | : <big>{{l|rad|sjavair·}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''no rhyme'''}} | ||
{{rad-pr|entry=sjavair·|no rhyme}} | {{rad-pr|entry=sjavair·|no rhyme}} | ||
<hr> | <hr> | ||
Line 110: | Line 110: | ||
<hr> | <hr> | ||
: <big>{{l|rad|Aroír}}</big> | : <big>{{l|rad|Aroír}}</big> | ||
{{tempn|rad- | {{tempn|rad-pr|'''entry='''Aroír|'''syllables'''|'''no auto'''}} | ||
allows me to call {{temp|rad- | allows me to call {{temp|rad-pr|syllables|no auto}} outside of the {{m|rad|Aroír}} page. | ||
<hr> | <hr> |
Revision as of 18:14, 24 August 2023
Uses Lua: |
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:
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:
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:
|IPA
|syllables
|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.
{{rad-pr|IPA|/us/}}
You can toggle modes by calling their name.
{{rad-pr|homophones|às|‘as|IPA|/ɤs/}}
In syllables
mode, syllables are divided as arguments, with multiple entries divided by ||
, as in {{syllables}}
.
{{rad-pr|syllables|a|se|dua||a|sed|ua}}
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.
{{rad-pr|colloquial|/ɤɡ/}}
{{rad-pr|insular|/rˠoːs/}}
{{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.
{{rad-pr|syllables|no auto}}
{{rad-pr|no auto|/ɤɡ/}}
Otherwise you get an error:
{{rad-pr|no auto}}
Lua error in Module:rad-pronunciation at line 230: Missing IPA input.
See?
While individual rhyme generation cannot be disabled, the display of the rhyme list itself can be disabled with |no( )rhyme(s)
. This is usually restricted to affixes.
{{rad-pr|no rhyme}}
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 rhyme categorisation.
{{rad-pr|syllables|no auto|entry=Aroír}}
allows me to call {{rad-pr|syllables|no auto}}
outside of the Aroír page.