Difference between revisions of "Template:Translate-link"
From Dragon Age Toolset Wiki
m |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly>{{#if: {{{3|}}} |
| − | {{#if: {{{3|}}} | + | |
<!-- If 3rd param is defined --> | <!-- If 3rd param is defined --> | ||
| | | | ||
| Line 46: | Line 45: | ||
}} | }} | ||
}} | }} | ||
| − | }} | + | }}</includeonly><noinclude> |
| − | + | ||
| − | + | ||
| − | + | ||
| − | </includeonly><noinclude> | + | |
== Description == | == Description == | ||
Template allows you to quickly create links to translated page DA Builder Wiki using the language of the current page: | Template allows you to quickly create links to translated page DA Builder Wiki using the language of the current page: | ||
| Line 79: | Line 74: | ||
|[[Main Page/ru|<span style="color:#CC2200">Other name</span>]] [[Main Page|(en)]] | |[[Main Page/ru|<span style="color:#CC2200">Other name</span>]] [[Main Page|(en)]] | ||
|- | |- | ||
| − | |rowspan=" | + | |rowspan="2" |<pre>{{Translate-link|Main Page||ru}}</pre><pre>{{Translate-link|Main Page|3=ru}}</pre> |
| − | + | |If the page translated into specified language exists (language of the current page is ignored) | |
| − | + | ||
| − | + | ||
| − | |If the page translated into | + | |
|[[Main Page/ru|Main Page]] | |[[Main Page/ru|Main Page]] | ||
|- | |- | ||
| − | |If the page translated into | + | |If the page translated into specified language does not exist (language of the current page is ignored) |
|[[Main Page/ru|<span style="color:#CC2200">Main Page</span>]] [[Main Page|(en)]] | |[[Main Page/ru|<span style="color:#CC2200">Main Page</span>]] [[Main Page|(en)]] | ||
|- | |- | ||
| − | |rowspan=" | + | |rowspan="2" |<pre>{{Translate-link|Main Page|Other name|ru}}</pre> |
| − | + | |If the page translated into specified language exists (language of the current page is ignored) | |
| − | + | ||
| − | + | ||
| − | |If the page translated into | + | |
|[[Main Page/ru|Other name]] | |[[Main Page/ru|Other name]] | ||
|- | |- | ||
| − | |If the page translated into | + | |If the page translated into specified language does not exist (language of the current page is ignored) |
|[[Main Page/ru|<span style="color:#CC2200">Other name</span>]] [[Main Page|(en)]] | |[[Main Page/ru|<span style="color:#CC2200">Other name</span>]] [[Main Page|(en)]] | ||
|} | |} | ||
Latest revision as of 20:31, 9 November 2010
Description
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) |
Note
This template has a short version ulink.