Template:I18n/Language Navigation Bar: Difference between revisions

From KDE TechBase
No edit summary
No edit summary
Line 15: Line 15:
red as usual.
red as usual.
</noinclude>
</noinclude>
<includeonly>
<div style="margin:auto;font-size:83.3%;text-align:left">
<div style="margin:auto;font-size:83.3%;text-align:left">


Line 50: Line 51:
<span lang="zh_CN">[[{{{1}}}_(zh_CN)|简体中文]]</span> |
<span lang="zh_CN">[[{{{1}}}_(zh_CN)|简体中文]]</span> |
<span lang="zh_TW">[[{{{1}}}_(zh_TW)|繁體中文]]</span>
<span lang="zh_TW">[[{{{1}}}_(zh_TW)|繁體中文]]</span>
{{Warning|1=This old-style language bar should no longer be used, as it leads to old-style translated pages that cannot be maintained within the translation system.  Instead, look at the English page where there should be a "Translate this page" link above the language bar.  That will take you to the necessary selections.}}
{{Warning|1=This old-style language bar should no longer be used, as it leads to old-style translated pages that cannot be maintained within the translation system.  Instead, look at the English page where there should be a "Translate this page" link above the language bar.  That will take you to the necessary selections.}}
</div>
</div>
</includeonly>

Revision as of 13:37, 6 July 2012


Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文

Warning
This old-style language bar should no longer be used, as it leads to old-style translated pages that cannot be maintained within the translation system. Instead, look at the English page where there should be a "Translate this page" link above the language bar. That will take you to the necessary selections.

Nasıl kullanılır

This template needs to be included in all translations of one page. Let's assume we have page called "Foo". The translations are called Foo (de), Foo (fr), etc.

In all translations you must insert the following line:

{{Template:I18n/Language_Navigation_Bar|Foo}}

This will create a correctly linked bar that allows to switch between all translations of a page. If you want to add a new translation language, add it here and it will appear on all pages. Untranslated versions will appear red as usual.