Template:I18n/Language Navigation Bar: Difference between revisions

From KDE TechBase
mNo edit summary
mNo edit summary
Line 14: Line 14:
red as usual.
red as usual.
</noinclude>
</noinclude>
<div style="border: 1px solid #AAAAAA; background-color: #FFFFFF; margin: 0.3em; padding: 0.25em; width:50pt; float:right" valign="top">
<div style="border: 1px solid #AAAAAA; background-color: #FFFFFF; margin: 0.3em; padding: 0.25em; width:250pt; float:right" valign="top">
<p style="margin:auto;font-size:83.3%;text-align:left">
<p style="margin:auto;font-size:83.3%;text-align:left">
<b>Language:</b>
<b>Languages:</b>
<li><span lang="zh_CN">[[{{{1}}}_(zh_CN)|简体中文]]</span>
<span lang="zh_CN">[[{{{1}}}_(zh_CN)|简体中文]]</span> |
<li><span lang="de">[[{{{1}}}_(de)|Deutsch]]</span>
<span lang="de">[[{{{1}}}_(de)|Deutsch]]</span> |
<li><span lang="en">[[{{{1}}}|English]]</span>
<span lang="en">[[{{{1}}}|English]]</span> |
<li><span lang="fr">[[{{{1}}}_(fr)|Français]]</span>
<span lang="fr">[[{{{1}}}_(fr)|Français]]</span>
</p>
</p>
</div><br>
</div><br>

Revision as of 17:52, 15 June 2007

How to use

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 site. If you want to add a new translation language, add it here and it will appear on all sites. Untranslated versions will appear red as usual.

Languages: [[{{{1}}}_(zh_CN)|简体中文]] | [[{{{1}}}_(de)|Deutsch]] | [[{{{1}}}|English]] | [[{{{1}}}_(fr)|Français]]