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]&nbsp;</td><td style="padding: 1px 1em 0; background: #3c3c3c;">
[h="2"] Syntax [/h]
&#123;&#123;&#123;Languages&#124;PageName&#125;&#1 25;&#125;
[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>&#123;&#123;&#123;Languages&#124;Main Page&#125;&#125;&#125;</code> and not <code>&#123;&#123;&#123;Languages&#124;Main Page/ko&#125;&#125;&#125;</code>).
[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>&#123;&#123;&#123;Languages&#125;&#125;&#125 ;</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]

Tags for this Page

Similar Pages

  1. Languages/Lang
    By Arjan in forum Template
    Comments: 0
    Last Post: 05-11-2007, 07:26 PM


Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may not edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments
BIRTHRIGHT, DUNGEONS & DRAGONS, D&D, the BIRTHRIGHT logo, and the D&D logo are trademarks owned by Wizards of the Coast, Inc., a subsidiary of Hasbro, Inc., and are used by permission. ©2002-2010 Wizards of the Coast, Inc.