Šablona:Languages/doc: Porovnání verzí
translace>Clump m Reverted edits by 2806:108E:24:4537:1129:D3E3:E73A:7C5B (talk) to last version by Pppery |
m naimportována 1 revize |
(Žádný rozdíl)
|
Aktuální verze z 6. 12. 2023, 08:34
[[Category:Languages pages{{#translation:}}]]
Šablona:Mbox[[Category:MediaWiki documentation pages{{#translation:}}]]
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.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Languages
[[Category:TemplateData documentation{{#translation:}}]]
<templatedata> { "params": { "1": { "label": "Page Name", "suggested": true, "type": "wiki-page-name" } } } </templatedata>
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/ban | Basa Bali |
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 | [[: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:
[[Category:Languages pages{{#translation:}}]]