Template:Languages
Syntax
{{Languages|PageName}}
- PageName (optional) - the name of the English page for which to display the language link.
On the TNG Wiki, the pagename parameter can be omitted since the link to the language subpages and the link back to the English page are automatically created by the {{Languages}}
template based on LocalSettings.php overrides to $wgNamespacesWithSubpages.
Usage
The {{Languages}} template should only be specified as the first line of pages that contain another language version of that page.
The English version of a page is always the main version, with the other languages as sub-pages, named using the appropriate language code as shown in the table below.
For example, on the Main Page you would include the text {{Languages}}
on English Main Page itself and on each of the language sub-pages, where you would include {{Languages}}
too, for example on the Main Page/fr
Supported languages
The following table shows the name of each language's sub-page that could be possibly created on TNG Wiki (using Main Page as an example. Currently only Danish, French, German, and Spanish are defined in the LocalSettings.php $wgLanguageSelectorLanguages=array. Other Languages could be added if TNG users want to provide the translations.
Page name | Language | TNG languages folder |
---|---|---|
Main Page | English | English and English-UTF8 |
Main Page/af | Afrikaans | Afrikaans and Afrikaans-UTF8 |
Main Page/cs | čeština | Czech and Czech-UTF8 |
Main Page/da | dansk | Danish and Danish-UTF8 |
Main Page/de | Deutsch | German and German-UTF8 |
Main Page/el | Ελληνικά | Greek-UTF8 |
Main Page/es | español | Spanish and Spanish-UTF8 |
Main Page/fa | فارسی | Farsi-UTF8 |
Main Page/fi | suomi | Finnish and Finnish-UTF8 |
Main Page/fr | français | French and French-UTF8 |
Main Page/it | italiano | Italian and Italian-UTF8 |
Main Page/nl | Nederlands | Dutch and Dutch-UTF8 |
Main Page/no | norsk | Norwegian and Norwegian-UTF8 |
Main Page/pl | polski | Polish and Polish-UTF8 |
Main Page/pt-br | português do Brasil | PortugueseBR and PortugueseBR-UTF8 |
Main Page/ro | română | Romanian and Romanian-UTF8 |
Main Page/ru | русский | Russian-UTF8 |
Main Page/sk | slovenčina | Slovak and Slovak-UTF8 |
Main Page/sr | српски / srpski | Serbian-UTF8 |
Main Page/sv | svenska | Swedish and Swedish-UTF8 |
Main Page/tr | Türkçe | Turkish-UTF8 |
Example
Here is how the language bar looks on the TNG Wiki Main Page:
The above documentation is transcluded from Template:Languages/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |