ទំព័រគំរូ:meta-phrase (with transliteration)/doc
This is a metatemplate. It is used to create other, language-specific, templates that simply generate headword-lines and categorizes them.
For users of language-specific templates
កែប្រែUsage
កែប្រែThe template ({{fa-phrase}}
, {{km-phrase}}
, {{xcl-phrase}}
, etc.) should be added to all applicable entries.
Parameters
កែប្រែ- {{{1}}} or {{{head}}}: The text that should appear, if not {{PAGENAME}}. Optional but encouraged.
- {{{sc}}}: The script code of the entry, if applicable.
- {{{tr}}}: The transliteration of the phrase. If no transliteration is given, the entry will go to a cleanup category, such as Category:Khmer terms lacking transliteration.
Example
កែប្រែThe code of a simple entry of an Persian phrase should look like the example below. (Additional information such as pronunciations and etymologies are not presented here for the sake of simplicity, but they are always encouraged!)
==Persian== ===Phrase=== {{fa-phrase|tr=xâheš mi-konam}} # [[please]] # [[you're welcome]]
For creators of language-specific templates
កែប្រែThe new template should be named Template:xx-phrase, where xx should be replaced by the language code.
Just copy any of the codes below, and adapt it. They are identical except for the language code and the script code.
Example of Khmer template
កែប្រែ{{meta-phrase |head={{{head|{{{1|}}}}}} |lang=km |sc={{{sc|}}} |tr={{{tr|}}} }}
Example of Old Armenian template
កែប្រែ{{meta-phrase |head={{{head|{{{1|}}}}}} |lang=xcl |sc=Armn |tr={{{tr|}}} }}
Example of Persian template
កែប្រែ{{meta-phrase |head={{{head|{{{1|}}}}}} |lang=fa |sc=fa-Arab |tr={{{tr|}}} }}