模板:Xlit/doc
外观
此页面是Template:Xlit的模板文档文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板用于自动生成某些文本的音译。它应该只用作模板的一部分,而不是直接用在条目中。
这个模板在某种程度上是权宜之计,通常还有其他(更好的)方法来实现相同的效果。大多数情况下,音译伴随着一个术语的链接,在这种情况下{{l}}
已经提供了音译,因此这个模板是不必要的。Similarly, headword templates use {{head}}
, which also makes a transliteration itself.
Parameters
[编辑]1=
- The language code (Wiktionary:Languages) of the language to transliterate for. The language must have a transliteration module (
translit_module
property in the Module:languages data). If the language has no transliteration module, the template gives an empty string. 2=
- The text to transliterate, which should be written in the given language.
sc=
- The script code (Wiktionary:Scripts), which specifies the script to transliterate from. This is specific to the transliteration module; some are able to transliterate more than one script, and need this parameter to tell it which. For most cases, this can be left empty.
module=
- Overrides the module that should be used for transliterations. This is useful for testing purposes, or for demonstrating a transliteration module before it is used. It should not be used in templates intended for real use.