Difference between revisions of "Template:Translate-link"
From Dragon Age Toolset Wiki
m (Adding description) |
m (Design ^-^) |
||
Line 20: | Line 20: | ||
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: | ||
− | {| border="1" | + | {|border="1" |
− | + | !style="background:#EEEEFF"|Source code | |
− | + | !style="background:#EEEEFF"|Condition | |
− | |Condition | + | !style="background:#EEEEFF"|Output |
− | |Output | + | |
|- | |- | ||
|rowspan="3" |<pre>{{Translate-link|Main Page}}</pre> | |rowspan="3" |<pre>{{Translate-link|Main Page}}</pre> |
Revision as of 22:06, 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) |