Template:Translate-link
DescriptionEdit
Template allows you to quickly create links to translated page DA Builder Wiki using the language of the current page:
Source code | Condition | Output |
---|---|---|
{{Translate-link|Main_Page}} |
If the language of the current page could not be extracted | Translate-link: GETTING_LANGUAGE_ERROR |
If the page translated into current language exists (i.e. this page in Russian) | Main Page | |
If the page translated into current language does not exist (i.e. this page in Russian) | Main_Page (en) | |
{{Translate-link|Main_Page|Other name}} |
If the language of the current page could not be extracted | Translate-link: GETTING_LANGUAGE_ERROR |
If the page translated into current language exists (i.e. this page in Russian) | Other name | |
If the page translated into current language does not exist (i.e. this page in Russian) | Other name (en) | |
{{Translate-link|Main_Page||ru}} {{Translate-link|Main_Page|3=ru}} |
If the page translated into specified language exists (language of the current page is ignored) | Main Page |
If the page translated into specified language does not exist (language of the current page is ignored) | Main Page (en) | |
{{Translate-link|Main_Page|Other name|ru}} |
If the page translated into specified language exists (language of the current page is ignored) | Other name |
If the page translated into specified language does not exist (language of the current page is ignored) | Other name (en) |
NoteEdit
This template has a short version ulink.