Difference between revisions of "Template:Translate-link"
no edit summary
imported>Vitamant (Created page with "<includeonly>{{#if: {{{3|}}} <!-- If 3rd param is defined --> | <!-- Use it as current language --> {{#ifexist: {{{1}}}/{{{3}}} <!-- If exist page has been translated in...") |
imported>Vitamant |
||
Line 54: | Line 54: | ||
!style="background:#EEEEFF"|Output | !style="background:#EEEEFF"|Output | ||
|- | |- | ||
|rowspan="3" |<pre>{{Translate-link| | |rowspan="3" |<pre>{{Translate-link|Main_Page}}</pre> | ||
|If the language of the current page could not be extracted | |If the language of the current page could not be extracted | ||
|[[ | |[[Main_Page|Translate-link: <span style="color:#CC2200">GETTING_LANGUAGE_ERROR</span>]] | ||
|- | |- | ||
|If the page translated into current language exists (i.e. this page in Russian) | |If the page translated into current language exists (i.e. this page in Russian) | ||
|[[ | |[[Main_Page/ru|Main Page]] | ||
|- | |- | ||
|If the page translated into current language does not exist (i.e. this page in Russian) | |If the page translated into current language does not exist (i.e. this page in Russian) | ||
|[[ | |[[Main_Page/ru|<span style="color:#CC2200">Main_Page</span>]] [[Main_Page|(en)]] | ||
|- | |- | ||
|rowspan="3" |<pre>{{Translate-link| | |rowspan="3" |<pre>{{Translate-link|Main_Page|Other name}}</pre> | ||
|If the language of the current page could not be extracted | |If the language of the current page could not be extracted | ||
|[[ | |[[Main_Page|Translate-link: <span style="color:#CC2200">GETTING_LANGUAGE_ERROR</span>]] | ||
|- | |- | ||
|If the page translated into current language exists (i.e. this page in Russian) | |If the page translated into current language exists (i.e. this page in Russian) | ||
|[[ | |[[Main_Page/ru|Other name]] | ||
|- | |- | ||
|If the page translated into current language does not exist (i.e. this page in Russian) | |If the page translated into current language does not exist (i.e. this page in Russian) | ||
|[[ | |[[Main_Page/ru|<span style="color:#CC2200">Other name</span>]] [[Main Page|(en)]] | ||
|- | |- | ||
|rowspan="2" |<pre>{{Translate-link| | |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 specified language exists (language of the current page is ignored) | ||
|[[ | |[[Main_Page/ru|Main Page]] | ||
|- | |- | ||
|If the page translated into specified language does not exist (language of the current page is ignored) | |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)]] | ||
|- | |- | ||
|rowspan="2" |<pre>{{Translate-link| | |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 specified language exists (language of the current page is ignored) | ||
|[[ | |[[Main_Page/ru|Other name]] | ||
|- | |- | ||
|If the page translated into specified language does not exist (language of the current page is ignored) | |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)]] | ||
|} | |} | ||