Template:rhymes: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>Rhymes: <span class="IPA">[[:Category:Rhymes:{{#invoke:languages|getByCode|{{{1}}}|name}}/{{{2}}}|-{{{2}}}]]</span>{{#if:{{{nocat|}}}||[[Category:Rhymes:{{#invoke:languages|getByCode|{{{1}}}|name}}/{{{2}}}]]}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>Rhymes: <span class="IPA">[[:Category:Rhymes:{{#invoke:languages|getByCode|{{{1}}}|name}}/{{{2}}}|-{{{2}}}]]</span>{{#if:{{{nocat|}}}||[[Category:Rhymes:{{#invoke:languages|getByCode|{{{1}}}|name}}/{{{2}}}]]}}</includeonly><noinclude>[[Category:Pronunciation templates]]{{documentation}}</noinclude>

Revision as of 17:59, 7 August 2023

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

Usage

* {{rhymes|rad|adz}}

Generates:

and automatically adds the category Rhymes:Radestrian/adz to the page. The number displays how many terms have this rhyme (if greater than 1).


All input in X-SAMPA gets converted to IPA. As with {{IPA}}, the escape character is #.

* {{rhymes|rad|Es|nopre=1}}

Generates:


Multiple rhymes are supported:

* {{rhymes|rad|a|ɤ}}

Generates:

  • Rhymes: -a

If the rhyme category is not an 'active rhyme' (the category does not have more than one entry), then the page is still categorised, but the rhyme will appear as text, rather than as a link to the rhyme page.

* {{rhymes|rad|anθvatsisk}}

Generates:


|nopre= will remove the rhyme text from the start.

* {{rhymes|rad|adz|nopre=1}}

Generates:


|nocat= will suppress categorisation.

Stress functionality

The template will automatically remove non-syllabic elements.

* {{rhymes|rad|skradz}}

Generates:


If a primary stress mark is present, it will take the rhyme from the stress mark onwards.

* {{rhymes|rad|aˈɛʃtɛ}}

Generates:


If the language is registered in the code as taking rhyme from secondary stress, this will be accounted for. If the language is also registered to ignore the primary stress if secondary stress is present, this will also be accounted for. Radestrian does not use secondary stress, but Laefevian does.

* {{rhymes|rad|ˈtsjaːtuːlaɡɛ}}
* {{rhymes|lfv|ˈaŋɡiˌliɬu̯ɔdens}}

Generates: