Template:Languages
This page will only parse completely when it is included in another page.
[h="2"] Template [/h]
[div] class="small" |
<table width="100%" style="clear: both; border: 1px solid #333333; border-collapse: collapse; padding: 0.2em; margin: 0; margin: 0 1px;">
<tr valign="top" style="background: #3c3c3c">
<td style="width: 25px; padding-left: 0.5em;">[image]Geographylogo.png|25px|[/image]</td>
<td style="width: 10px; white-space: nowrap; padding: 6px 1em 0 0.5em; border-right: 1px solid #333333;">[b][wiki="Project:Language policy"]Languages[/wiki]:[/b] </td><td style="padding: 1px 1em 0; background: #3c3c3c;">
[wiki="{{{1"]:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English[/wiki]
[template]Languages/Lang|ar|{{{1|}}}[/template]
[template]Languages/Lang|br|{{{1|}}}[/template]
[template]Languages/Lang|ca|{{{1|}}}[/template]
[template]Languages/Lang|de|{{{1|}}}[/template]
[template]Languages/Lang|es|{{{1|}}}[/template]
[template]Languages/Lang|fi|{{{1|}}}[/template]
[template]Languages/Lang|fr|{{{1|}}}[/template]
[template]Languages/Lang|he|{{{1|}}}[/template]
[template]Languages/Lang|hu|{{{1|}}}[/template]
[template]Languages/Lang|id|{{{1|}}}[/template]
[template]Languages/Lang|it|{{{1|}}}[/template]
[template]Languages/Lang|ja|{{{1|}}}[/template]
[template]Languages/Lang|ko|{{{1|}}}[/template]
[template]Languages/Lang|nl|{{{1|}}}[/template]
[template]Languages/Lang|no|{{{1|}}}[/template]
[template]Languages/Lang|pl|{{{1|}}}[/template]
[template]Languages/Lang|pt|{{{1|}}}[/template]
[template]Languages/Lang|ru|{{{1|}}}[/template]
[template]Languages/Lang|sq|{{{1|}}}[/template]
[template]Languages/Lang|sv|{{{1|}}}[/template]
[template]Languages/Lang|yue|{{{1|}}}[/template]
[template]Languages/Lang|zh|{{{1|}}}[/template]
[template]Languages/Lang|zh-hans|{{{1|}}}[/template]
[template]Languages/Lang|zh-hant|{{{1|}}}[/template]
</td></tr></table>
[/div]
[h="2"] Syntax [/h]
{{{Languages|PageName} 25;}
[list][*] [b]PageName[/b] (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [wiki]Main Page/ko[/wiki] you would need to use <code>{{{Languages|Main Page}}}</code> and not <code>{{{Languages|Main Page/ko}}}</code>).
[/LIST]
[h="2"] Usage [/h]
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 (see below).
For example, on the Main Page you would include the text <code>{{{Languages}}} ;</code>, both on [wiki]Main Page[/wiki] itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. <tt>Main Page/ja<tt>, <tt>Main Page/fr</tt>, and ignores non-existant languages.
See [wiki]Project:Language policy[/wiki] for further details about translating pages.
[h="2"] Example [/h]
Here is how the language bar looks on the [wiki]Main Page[/wiki] page:
[template]Languages|Main Page[/template]
[div] class="small" |
<table width="100%" style="clear: both; border: 1px solid #333333; border-collapse: collapse; padding: 0.2em; margin: 0; margin: 0 1px;">
<tr valign="top" style="background: #3c3c3c">
<td style="width: 25px; padding-left: 0.5em;">[image]Geographylogo.png|25px|[/image]</td>
<td style="width: 10px; white-space: nowrap; padding: 6px 1em 0 0.5em; border-right: 1px solid #333333;">[b][wiki="Project:Language policy"]Languages[/wiki]:[/b] </td><td style="padding: 1px 1em 0; background: #3c3c3c;">
[wiki="{{{1"]:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English[/wiki]
[template]Languages/Lang|ar|{{{1|}}}[/template]
[template]Languages/Lang|br|{{{1|}}}[/template]
[template]Languages/Lang|ca|{{{1|}}}[/template]
[template]Languages/Lang|de|{{{1|}}}[/template]
[template]Languages/Lang|es|{{{1|}}}[/template]
[template]Languages/Lang|fi|{{{1|}}}[/template]
[template]Languages/Lang|fr|{{{1|}}}[/template]
[template]Languages/Lang|he|{{{1|}}}[/template]
[template]Languages/Lang|hu|{{{1|}}}[/template]
[template]Languages/Lang|id|{{{1|}}}[/template]
[template]Languages/Lang|it|{{{1|}}}[/template]
[template]Languages/Lang|ja|{{{1|}}}[/template]
[template]Languages/Lang|ko|{{{1|}}}[/template]
[template]Languages/Lang|nl|{{{1|}}}[/template]
[template]Languages/Lang|no|{{{1|}}}[/template]
[template]Languages/Lang|pl|{{{1|}}}[/template]
[template]Languages/Lang|pt|{{{1|}}}[/template]
[template]Languages/Lang|ru|{{{1|}}}[/template]
[template]Languages/Lang|sq|{{{1|}}}[/template]
[template]Languages/Lang|sv|{{{1|}}}[/template]
[template]Languages/Lang|yue|{{{1|}}}[/template]
[template]Languages/Lang|zh|{{{1|}}}[/template]
[template]Languages/Lang|zh-hans|{{{1|}}}[/template]
[template]Languages/Lang|zh-hant|{{{1|}}}[/template]
</td></tr></table>
[/div]
[h="2"] Syntax [/h]
{{{Languages|PageName} 25;}
[list][*] [b]PageName[/b] (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [wiki]Main Page/ko[/wiki] you would need to use <code>{{{Languages|Main Page}}}</code> and not <code>{{{Languages|Main Page/ko}}}</code>).
[/LIST]
[h="2"] Usage [/h]
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 (see below).
For example, on the Main Page you would include the text <code>{{{Languages}}} ;</code>, both on [wiki]Main Page[/wiki] itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. <tt>Main Page/ja<tt>, <tt>Main Page/fr</tt>, and ignores non-existant languages.
See [wiki]Project:Language policy[/wiki] for further details about translating pages.
[h="2"] Example [/h]
Here is how the language bar looks on the [wiki]Main Page[/wiki] page:
[template]Languages|Main Page[/template]
[top]Pages That Use This Template
The following pages include this template:
Created by Last edited by , 10-23-2011 at 11:56 AM 0 Comments, 1,884 Views |
, 05-14-2007 at 06:57 PM
Tags for this Page
Similar Pages
-
Languages/Lang
By Arjan in forum TemplateComments: 0Last Post: 05-11-2007, 07:26 PM
Bookmarks