Difference between revisions of "Template:Translate-link"
From Dragon Age Toolset Wiki
(Well done and work is correct. Return. Translate comments.) |
m (Adding description) |
||
| Line 3: | Line 3: | ||
| | | | ||
<!-- Create a link to original page --> | <!-- Create a link to original page --> | ||
| − | [[{{{1}}}]] | + | [[{{{1}}}|Translate-link: <span style="color:#CC2200">GETTING_LANGUAGE_ERROR</span>]] |
<!-- If language of the current page extracted is successfully --> | <!-- If language of the current page extracted is successfully --> | ||
| | | | ||
| Line 17: | Line 17: | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| + | == Description == | ||
| + | Template allows you to quickly create links to translated page DA Builder Wiki using the language of the current page: | ||
| − | + | {| border="1" | |
| − | + | |- | |
| + | |Source code | ||
| + | |Condition | ||
| + | |Output | ||
| + | |- | ||
| + | |rowspan="3" |<pre>{{Translate-link|Main Page}}</pre> | ||
| + | |If language of the current page extracted is not successfully | ||
| + | |[[Main Page|Translate-link: <span style="color:#CC2200">GETTING_LANGUAGE_ERROR</span>]] | ||
| + | |- | ||
| + | |If exist page has been translated into current language (for example the current page in Russian) | ||
| + | |[[Main Page/ru|Main Page]] | ||
| + | |- | ||
| + | |If not exist page has been translated into current language (for example the current page in Russian) | ||
| + | |[[Main Page/ru|<span style="color:#CC2200">Main Page</span>]] [[Main Page|(en)]] | ||
| + | |- | ||
| + | |rowspan="3" |<pre>{{Translate-link|Main Page|New page name}}</pre> | ||
| + | |If language of the current page extracted is not successfully | ||
| + | |[[Main Page|Translate-link: <span style="color:#CC2200">GETTING_LANGUAGE_ERROR</span>]] | ||
| + | |- | ||
| + | |If exist page has been translated into current language (for example the current page in Russian) | ||
| + | |[[Main Page/ru|New page name]] | ||
| + | |- | ||
| + | |If not exist page has been translated into current language (for example the current page in Russian) | ||
| + | |[[Main Page/ru|<span style="color:#CC2200">New page name</span>]] [[Main Page|(en)]] | ||
| + | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 20:53, 7 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 language of the current page extracted is not successfully | Translate-link: GETTING_LANGUAGE_ERROR |
| If exist page has been translated into current language (for example the current page in Russian) | Main Page | |
| If not exist page has been translated into current language (for example the current page in Russian) | Main Page (en) | |
{{Translate-link|Main Page|New page name}}
|
If language of the current page extracted is not successfully | Translate-link: GETTING_LANGUAGE_ERROR |
| If exist page has been translated into current language (for example the current page in Russian) | New page name | |
| If not exist page has been translated into current language (for example the current page in Russian) | New page name (en) |