Template:Tr

来自Fargo's Mods Wiki
跳到导航 跳到搜索


Auto translation, depending on glossary database, it is located at Template:tr/db-<langcode> (e.g. Template:tr/db-zh for Chinese).

Usage

Auto determine the language(by page url): {{tr|<english>}}

Explicitly specify language: {{tr|lang=<langcode>|<english>}}

You will get the corresponding translation. If there is no entity for the input in glossary, you will get the original input text.

For example:
{{tr|lang=en|Gold Watch}}: Gold Watch
{{tr|lang=zh|Battle Cry}}: 战争号角
{{tr|lang=zh|Dirt Wings}}: Dirt Wings

get pagename for target language:
{{tr|<english>|link=y}}
{{tr|lang=<langcode>|<english>|link=y|}}

For example:
{{tr|lang=en|Gold Watch|link=y}}: Gold Watch
{{tr|lang=zh|Battle Cry|link=y}}: 战争号角

NOTE: Based on performance considerations, input text is case sensitive and white space sensitive, so be careful about that. For example: {{tr|lang=zh|Battle Cry}}: 战争号角 {{tr|lang=zh|Battle cry}}: Battle cry {{tr|lang=zh| Battle Cry }}: Battle Cry {{tr|lang=zh|Battle Cry}}: Battle Cry