Template:Part/doc

From Kerbal Space Program Wiki
Jump to: navigation, search

This template is intended for use on non-English pages to translate the English part name into the language of the page. The template displays the part name in the target language with a hyperlink to the corresponding part page also in the target language. The template uses a template {{Dict/part name}} for its work. The template replaces the following string structure: {{if lang link|THIS_IS_PART_NAME|{{Dict/part name|THIS_IS_PART_NAME}}}}

Usage

Insert this template anywhere on the page. The template has two parameters:

# Optional Description Default
1 No The full name of the part on English with case sensitive (see {{Dict/part name}}). It must exactly match the required name, otherwise the template will give an erroneous text.
2 Yes The desired name of the part in the target language, which may not even exactly match the standard full name of the part from the template {{Dict/part name}},

for example, you can specify an abbreviated name here, or a name in another case

Not set

Examples

Code View
English German Russian Chinese
{{part|Mk2 Lander Can}} Mk2 Lander Can Landebüchse Mk2 Посадочный модуль Mk2 Mk2着陆舱
{{part|Mk2 Lander Can|My Name Lander}} My Name Lander My Name Lander My Name Lander My Name Lander
{{part|WRONG_NAME}} [[WRONG_NAME|]] [[WRONG_NAME/de|]] [[WRONG_NAME/ru|]] [[WRONG_NAME/zh-cn|]]
{{part|WRONG_NAME|My Name Lander}} My Name Lander My Name Lander My Name Lander My Name Lander