Difference between revisions of "Template:ListTerminology"
m |
m (Test. Might need to be reverted if it doesn't work.) |
||
Line 1: | Line 1: | ||
{{ | {{Languages|Template:Languages/doc}} | ||
{{note|This template is outdated on this wiki, here we use the [[Extension:Translate|translation system.]]}} | |||
This template is | == Syntax == | ||
[[Category: | <nowiki>{{Languages|PageName}}</nowiki> | ||
</ | |||
* '''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 [[MediaWiki/fr]] you would need to use <code><nowiki>{{Languages|MediaWiki}}</nowiki></code> and not <code><nowiki>{{Languages|MediaWiki/fr}}</nowiki></code>). | |||
== 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 <code><nowiki>{{Languages}}</nowiki></code>, 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. <code>Main Page/ja</code>, <code>Main Page/fr</code>, and ignores non-existant languages. | |||
See [[Project:Language policy]] for further details about translating pages. | |||
== 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 [[meta:List of Wikipedias|prefix, as used on Wikipedia]] 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). | |||
The link on the language names goes to the Wikipedia in that language. '''If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org!''' This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here. | |||
{| class="wikitable sortable" | |||
! Page name || Language | |||
|- | |||
| Main Page || [[:en:|{{#language:en|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/af''' || [[:af:|{{#language:af|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ar''' || [[:ar:|{{#language:ar|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ast''' || [[:ast:|{{#language:ast|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/az''' || [[:az:|{{#language:az|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/bcc''' || {{#language:bcc|{{int:lang}}}} | |||
|- | |||
| Main Page'''/be''' || [[:be:|{{#language:be|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/be-tarask''' || [[:be-tarask:|{{#language:be-tarask|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/bg''' || [[:bg:|{{#language:bg|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/bn''' || [[:bn:|{{#language:bn|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/br''' || [[:br:|{{#language:br|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/bs''' || [[:bs:|{{#language:bs|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ca''' || [[:ca:|{{#language:ca|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ce''' || [[:ce:|{{#language:ce|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ckb''' || [[:ckb:|{{#language:ckb|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/cs''' || [[:cs:|{{#language:cs|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/da''' || [[:da:|{{#language:da|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/de''' || [[:de:|{{#language:de|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/diq''' || [[:diq:|{{#language:diq|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/el''' || [[:el:|{{#language:el|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/eo''' || [[:eo:|{{#language:eo|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/es''' || [[:es:|{{#language:es|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/fa''' || [[:fa:|{{#language:fa|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/fi''' || [[:fi:|{{#language:fi|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/fr''' || [[:fr:|{{#language:fr|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/gl''' || [[:gl:|{{#language:gl|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/gu''' || [[:gu:|{{#language:gu|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/he''' || [[:he:|{{#language:he|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/hi''' || [[:hi:|{{#language:hi|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/hr''' || [[:hr:|{{#language:hr|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/hu''' || [[:hu:|{{#language:hu|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/hy''' || [[:hy:|{{#language:hy|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/id''' || [[:id:|{{#language:id|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/io''' || [[:io:|{{#language:io|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/is''' || [[:is:|{{#language:is|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/it''' || [[:it:|{{#language:it|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ja''' || [[:ja:|{{#language:ja|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/jv''' || [[:jv:|{{#language:jv|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ka''' || [[:ka:|{{#language:ka|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/kk''' || [[:kk:|{{#language:kk|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/km''' || [[:km:|{{#language:km|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ko''' || [[:ko:|{{#language:ko|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ko-kp''' || Korean (North Korea) | |||
|- | |||
| Main Page'''/ksh''' || [[:ksh:|{{#language:ksh|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ku''' || [[:ku:|{{#language:ku|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/kw''' || [[:kw:|{{#language:kw|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/la''' || [[:la:|{{#language:la|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/lb''' || [[:lb:|{{#language:lb|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/map-bms''' || [[:map-bms:|{{#language:map-bms|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/min''' || [[:min:|{{#language:min|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/mk''' || [[:mk:|{{#language:mk|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ml''' || [[:ml:|{{#language:ml|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/mr''' || [[:mr:|{{#language:mr|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ms''' || [[:ms:|{{#language:ms|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/mwl''' || [[:mwl:|{{#language:mwl|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/nl''' || [[:nl:|{{#language:nl|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/no''' || [[:no:|{{#language:no|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/oc''' || [[:oc:|{{#language:oc|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/or''' || [[:or:|{{#language:or|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/pl''' || [[:pl:|{{#language:pl|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ps''' || [[:ps:|{{#language:ps|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/pt''' || [[:pt:|{{#language:pt|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/pt-br''' || [[:pt:Português brasileiro|{{#language:pt-br|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ro''' || [[:ro:|{{#language:ro|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ru''' || [[:ru:|{{#language:ru|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sc''' || [[:sc:|{{#language:sc|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sd''' || [[:sd:|{{#language:sd|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/si''' || [[:si:|{{#language:si|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sl''' || [[:sl:|{{#language:sl|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sk''' || [[:sk:|{{#language:sk|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sq''' || [[:sq:|{{#language:sq|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sr''' || [[:sr:|{{#language:sr|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/so''' || [[:so:|{{#language:so|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/sv''' || [[:sv:|{{#language:sv|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/ta''' || [[:ta:|{{#language:ta|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/tg''' || [[:tg:|{{#language:tg|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/th''' || [[:th:|{{#language:th|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/tr''' || [[:tr:|{{#language:tr|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/uz''' || [[:uz:|{{#language:uz|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/uk''' || [[:uk:|{{#language:uk|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/vi''' || [[:vi:|{{#language:vi|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/yue''' || [[:zh-yue:|{{#language:zh-yue|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/yi''' || [[:yi:|{{#language:yi|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/zh''' || [[:zh:|{{#language:zh|{{int:lang}}}}]] | |||
|- | |||
| Main Page'''/zh-hans''' || {{#language:zh-hans|{{int:lang}}}} | |||
|- | |||
| Main Page'''/zh-hant''' || {{#language:zh-hant|{{int:lang}}}} | |||
|- | |||
| Main Page'''/zh-tw''' || {{#language:zh-tw|{{int:lang}}}} | |||
|} | |||
== Example == | |||
Here is how the language bar looks on the [[MediaWiki]] page: | |||
{{Languages|MediaWiki}} | |||
<includeonly> | |||
[[Category:Language templates]] | |||
[[Category:Exclude in print]] | |||
</includeonly> |
Revision as of 02:50, 10 November 2019
Note: This template is outdated on this wiki, here we use the translation system.
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 MediaWiki/fr you would need to use
{{Languages|MediaWiki}}
and not{{Languages|MediaWiki/fr}}
).
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/ja
, Main Page/fr
, and ignores non-existant languages.
See Project:Language policy for further details about translating pages.
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, as used on Wikipedia 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).
The link on the language names goes to the Wikipedia in that language. If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org! This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here.
Page name | Language |
---|---|
Main Page | English |
Main Page/af | Afrikaans |
Main Page/ar | العربية |
Main Page/ast | asturianu |
Main Page/az | azərbaycanca |
Main Page/bcc | جهلسری بلوچی |
Main Page/be | беларуская |
Main Page/be-tarask | беларуская (тарашкевіца) |
Main Page/bg | български |
Main Page/bn | বাংলা |
Main Page/br | brezhoneg |
Main Page/bs | bosanski |
Main Page/ca | català |
Main Page/ce | нохчийн |
Main Page/ckb | کوردی |
Main Page/cs | čeština |
Main Page/da | dansk |
Main Page/de | Deutsch |
Main Page/diq | Zazaki |
Main Page/el | Ελληνικά |
Main Page/eo | Esperanto |
Main Page/es | español |
Main Page/fa | فارسی |
Main Page/fi | suomi |
Main Page/fr | français |
Main Page/gl | galego |
Main Page/gu | ગુજરાતી |
Main Page/he | עברית |
Main Page/hi | हिन्दी |
Main Page/hr | hrvatski |
Main Page/hu | magyar |
Main Page/hy | հայերեն |
Main Page/id | Bahasa Indonesia |
Main Page/io | Ido |
Main Page/is | íslenska |
Main Page/it | italiano |
Main Page/ja | 日本語 |
Main Page/jv | Jawa |
Main Page/ka | ქართული |
Main Page/kk | қазақша |
Main Page/km | ភាសាខ្មែរ |
Main Page/ko | 한국어 |
Main Page/ko-kp | Korean (North Korea) |
Main Page/ksh | Ripoarisch |
Main Page/ku | kurdî |
Main Page/kw | kernowek |
Main Page/la | Latina |
Main Page/lb | Lëtzebuergesch |
Main Page/map-bms | Basa Banyumasan |
Main Page/min | Minangkabau |
Main Page/mk | македонски |
Main Page/ml | മലയാളം |
Main Page/mr | मराठी |
Main Page/ms | Bahasa Melayu |
Main Page/mwl | Mirandés |
Main Page/nl | Nederlands |
Main Page/no | norsk |
Main Page/oc | occitan |
Main Page/or | ଓଡ଼ିଆ |
Main Page/pl | polski |
Main Page/ps | پښتو |
Main Page/pt | português |
Main Page/pt-br | português do Brasil |
Main Page/ro | română |
Main Page/ru | русский |
Main Page/sc | sardu |
Main Page/sd | سنڌي |
Main Page/si | සිංහල |
Main Page/sl | slovenščina |
Main Page/sk | slovenčina |
Main Page/sq | shqip |
Main Page/sr | српски / srpski |
Main Page/so | Soomaaliga |
Main Page/sv | svenska |
Main Page/ta | தமிழ் |
Main Page/tg | тоҷикӣ |
Main Page/th | ไทย |
Main Page/tr | Türkçe |
Main Page/uz | oʻzbekcha/ўзбекча |
Main Page/uk | українська |
Main Page/vi | Tiếng Việt |
Main Page/yue | 粵語 |
Main Page/yi | ייִדיש |
Main Page/zh | 中文 |
Main Page/zh-hans | 中文(简体) |
Main Page/zh-hant | 中文(繁體) |
Main Page/zh-tw | 中文(台灣) |
Example
Here is how the language bar looks on the MediaWiki page: Template:Languages