Template:Languages
From MDLWiki
Contents |
[edit] Template
|
Languages: |
English • Suomi | Languages+/- |
[edit] Syntax
{{Languages|<pageName>}}
-
<pageName>(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 Main Page/nl you would need to use
{{Languages|Main Page}}and not{{Languages|Main Page/nl}}).
[edit] Usage
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 {{Languages}}, 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/nl, Main Page/fr, and ignores non-existent languages.
[edit] Supported languages
This shows you the name of each language's sub-page (using Main Page as an example). Other languages may be added easily as necessary. Please use the appropriate prefix (ISO 639-1) when adding a new language. Please do not add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists).
| Page Name | Language |
|---|---|
| Main Page | English |
| Main Page/af | Afrikaans |
| Main Page/ar | العربية |
| Main Page/br | Brezhoneg |
| Main Page/ca | Català |
| Main Page/cs | Česky |
| Main Page/da | Dansk |
| Main Page/de | Deutsch |
| Main Page/el | Ελληνικά |
| Main Page/es | Español |
| Main Page/fa | فارسی |
| Main Page/fi | Suomi |
| Main Page/fr | Français |
| Main Page/gu | ગુજરાતી |
| Main Page/he | עברית |
| Main Page/hu | Magyar |
| Main Page/id | Bahasa Indonesia |
| Main Page/it | Italiano |
| Main Page/ja | 日本語 |
| Main Page/ko | 한국어 |
| Main Page/mr | मराठी |
| Main Page/ms | Bahasa Melayu |
| Main Page/nl | Nederlands |
| Main Page/no | Norsk (bokmål) |
| Main Page/oc | Occitan |
| Main Page/pl | Polski |
| Main Page/pt | Português |
| Main Page/ro | Română |
| Main Page/ru | Русский |
| Main Page/si | සිංහල |
| Main Page/sq | Shqip |
| Main Page/sr | Српски / Srpski |
| Main Page/sv | Svenska |
| Main Page/th | ไทย |
| Main Page/tr | Türkçe |
| Main Page/vi | Tiếng Việt |
| Main Page/yue | 粵語 |
| Main Page/zh | 中文 |
| Main Page/zh-hans | 中文(简体) |
| Main Page/zh-hant | 中文(繁體) |
[edit] Example
Here is how the language bar looks on the Main Page:
|
Languages: |
English • Dansk • Español • Suomi • Français • Magyar • Italiano • Nederlands • Norsk (bokmål) • Português • Svenska | Languages+/- |
