ទំព័រគំរូ:onym/doc
Usage
[កែប្រែ]This template is used to list a term or phrase that is written in a non-Latin (non-Roman) script or should be followed by an English sense gloss within a list section (====Synonyms====, ====Antonyms====, ====Related terms==== (“paronyms”), etc.). To list a term or phrase within running text (e.g. in ===Etymology=== and ====Usage notes==== sections), use {{term}}
instead. To list a Latin (Roman) script term without an English gloss, standard wiki syntax is preferable.
This template shows the term or phrase (usually linked) in the appropriate font, along with its transliteration or English sense gloss.
* {{onym|la|verbo|verbō|gloss=for the word}} * {{onym|el|sc=Grek|λόγος|tr=lógos}} * {{onym||word#Verb|word|gloss=to say or write (something) using particular words}} * [[word]]
Parameters
[កែប្រែ]Listed terms and phrases should usually link to a language-specific Wiktionary entry. To do so, use positional parameter {{{1}}} to specify the ISO 639 language code and positional parameter {{{2}}} to specify the entry name to which to link.
If the listed term or phrase should should also show alternate text, use positional parameter {{{3}}}.
If the listed term or phrase should be followed by an English gloss translation, use the parameter {{{gloss=}}}.
* {{onym|la|verbo|verbō|gloss=for the word}}
- {{ Script error: The function "lookup_language" does not exist. |verbō|face=|lang=la}} (“for the word”)
Note that {{{2}}} can be omitted, even when showing the gloss:
* {{onym|fr|mot|gloss=word}}
- {{ Script error: The function "lookup_language" does not exist. |mot|face=|lang=fr}} (“word”) + ...
If the listed term or phrase should not be linked to a Wiktionary entry, omit positional parameter {{{2}}}:
* *{{onym|||werə-|gloss=to speak}}
- *werə- (“to speak”).
If the listed term or phrase is written in a non-Roman script, use named parameter {{{sc}}} to indicate the ISO script and {{{tr}}} to indicate the Latin (Roman) script transcription:
* {{onym|el|sc=Grek|λόγος|tr=lógos|gloss=word}}
- λόγος (lógos, “word”)
To create a link to a language-neutral link for the term or to link to a section other than that for a language using an ISO language code, omit the positional parameter {{{1}}} and optionally use the #section syntax:
* {{onym||sc=Cyrl|Ж|tr=Ž}}
* {{onym||word#Verb|word|gloss=to say or write (something) using particular words}}
Customization
[កែប្រែ]The default style of the subsequent English translation glosses is in double quotes (pending a vote to approve this template). Readers can easily change the output to single quotes by selecting “Show English glosses for mentioned terms in single quotes” from WT:PREFS. Alternatively, readers can add the following to their style sheets as described in WT:CUSTOM:
- To show English translation glosses in single quotes (e.g.: From mot (‘word’) + ...):
.mention-gloss-double-quote { display: none; }
.mention-gloss-single-quote { display: inline; }
Unit tests
[កែប្រែ]