Template:rad-pr/documentation: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(Created page with "== 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. {{temp|rad-pronunciation}} on the polysyllabic word's page, such as {{m|rad|Aroír}}, will generate the standard pronunciation, the corresponding rhyme and the syllabificat...")
 
No edit summary
Line 5: Line 5:


{{temp|rad-pronunciation}} on the polysyllabic word's page, such as {{m|rad|Aroír}}, will generate the standard pronunciation, the corresponding rhyme and the syllabification of the word:
{{temp|rad-pronunciation}} on the polysyllabic word's page, such as {{m|rad|Aroír}}, will generate the standard pronunciation, the corresponding rhyme and the syllabification of the word:
{{#invoke:rad-pronunciation|show|Aroír|}}
{{#invoke:rad-pronunciation|show|entry=Aroír}}


On the monosyllabic word's page, such as {{m|rad|hars}}, the syllabification will not be present:
On the monosyllabic word's page, such as {{m|rad|hars}}, the syllabification will not be present:
{{#invoke:rad-pronunciation|show|hars|}}
{{#invoke:rad-pronunciation|show|entry=hars}}
 
On a multi-word entry's page, such as {{m|rad|Arans ag Eurúpjeșe}}, the rhyme will not be present:
{{#invoke:rad-pronunciation|show|Arans ag Eurúpjeșe|}}


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:
{{#invoke:rad-pronunciation|show|Arans ag Eurúpjeșe|}}
{{#invoke:rad-pronunciation|show|entry=Arans ag Eurúpjeșe}}


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:
{{#invoke:rad-pronunciation|show|hjárs|}}
{{#invoke:rad-pronunciation|show|entry=hjárs}}


==Additional parameters==
==Additional parameters==
Extra information can be added through extra arguments. There are three ''modes'' of extra argument:
# <code>|IPA</code>
# <code>|syllables</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</coda> will come with a generated rhyme where possible. Therefore, {{temp|rad-pronunciation|/us/}} in {{m|rad|us}} will yield the following:
{{#invoke:rad-pronunciation|show|entry=us|/us/}}
You can toggle modes by calling their name. {{temp|rad-pronunciation|homophones|as|‘as}} in {{m|rad|às}} will yield the following:
{{#invoke:rad-pronunciation|show|entry=às|homophones|as|‘as}}
In <code>syllables</code> mode, syllables are divided as arguments, with multiple entries divided by <code>||</code>, as in {{temp|syllables}}. {{temp|rad-pronunciation|homophones|syllables|a|se|dua||a|sed|ua}} in {{m|rad|asedua}} will yield the following:
{{#invoke:rad-pronunciation|show|entry=asedua|syllables|a|se|dua||a|sed|ua}}