Template:LanguageNavBar: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(rewording)
mNo edit summary
Line 2: Line 2:
<tr valign="top" style="background: #EEF3E2;">
<tr valign="top" style="background: #EEF3E2;">
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|Languages]]</td>
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|Languages]]</td>
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;"><small>'''Languages:'''&nbsp;</small></td><td style="padding: 1px 1em 0; background: #F6F9ED;"><small>
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;"><small>'''Languages:'''&nbsp;</small></td>
'''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]'''
<td style="padding: 1px 1em 0; background: #F6F9ED;"><small>
[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]
{{LanguageNavBar/Lang|de|{{{1|}}}}}
{{LanguageNavBar/Lang|de|{{{1|}}}}}
{{LanguageNavBar/Lang|es|{{{1|}}}}}
{{LanguageNavBar/Lang|es|{{{1|}}}}}

Revision as of 02:45, 3 May 2009

Languages Languages: 

English

Syntax
{{LanguageNavBar}}
{{LanguageNavBar|<page_name>}}
<page_name>
Optional - the name of the page to display language links for. If omitted then the English version of the current page is used. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on Main Page/vi you would need to use {{LanguageNavBar|Main Page}} and not {{LanguageNavBar|Main Page/vi}}).


The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page. The English version of a page is always the main version, with all other languages as sub-pages, named using the appropriate language code.

For example, on the Main Page you would include the text {{LanguageNavBar}}, both on Main Page itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. Main Page/vi, and ignores non-existant languages.

Currently the template recognizes the languages below. New languages can be added as needed.

de - German
en - English (default)
es - Spanish
fr - French
it - Italian
nl - Dutch
pt - Portuguese
vi - Vietnamese