Template talk:Languages: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 235: Line 235:
  <nowiki>{{Languages|PageName}}</nowiki>
  <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>).
* '''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 ==
== Usage ==
Line 243: Line 243:
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).  
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. <tt>Main Page/ja<tt>, <tt>Main Page/fr</tt>, and ignores non-existant languages.
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. <tt>Main Page/ja<tt>, <tt>Main Page/fr</tt>, and ignores non-existant languages.
 
See [[Project:Language policy]] for further details about translating pages.


== Supported languages ==
== 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).
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, 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.
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.

Latest revision as of 03:55, 30 January 2014

Warning: This page contains too many expensive parser function calls.
It should have less than 100 calls, there are now 211 calls. 

the too long template within nowiki tags: {{nmbox | header = '''{{Languages/Title|{{SUBPAGENAME}}}}''' | text = '''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]''' {{Languages/Lang|af|{{{1|}}}| }}{{Languages/Lang|aln|{{{1|}}}| }}{{Languages/Lang|am|{{{1|}}}| }}{{Languages/Lang|an|{{{1|}}}| }}{{Languages/Lang|ang|{{{1|}}}| }}{{Languages/Lang|ar|{{{1|}}}| }}{{Languages/Lang|arc|{{{1|}}}| }}{{Languages/Lang|arn|{{{1|}}}| }}{{Languages/Lang|arz|{{{1|}}}| }}{{Languages/Lang|as|{{{1|}}}| }}{{Languages/Lang|ast|{{{1|}}} }}{{Languages/Lang|avk|{{{1|}}}|| }}{{Languages/Lang|ay|{{{1|}}}| }}{{Languages/Lang|az|{{{1|}}}| }}{{Languages/Lang|bat|{{{1|}}}| }}{{Languages/Lang|bcc|{{{1|}}}| }}{{Languages/Lang|bcl|{{{1|}}}| }}{{Languages/Lang|be|{{{1|}}}| }}{{Languages/Lang|be-tarask|{{{1|}}}| }}{{Languages/Lang|bg|{{{1|}}}| }}{{Languages/Lang|bn|{{{1|}}}| }}{{Languages/Lang|br|{{{1|}}}| }}{{Languages/Lang|ca|{{{1|}}}| }}{{Languages/Lang|cdo|{{{1|}}}| }}{{Languages/Lang|ce|{{{1|}}}| }}{{Languages/Lang|ceb|{{{1|}}}| }}{{Languages/Lang|ch|{{{1|}}}| }}{{Languages/Lang|ckb|{{{1|}}}| }}{{Languages/Lang|co|{{{1|}}}| }}{{Languages/Lang|crh-cyrl|{{{1|}}}| }}{{Languages/Lang|crh-latn|{{{1|}}}| }}{{Languages/Lang|cs|{{{1|}}}| }}{{Languages/Lang|cu|{{{1|}}}| }}{{Languages/Lang|cv|{{{1|}}}| }}{{Languages/Lang|cy|{{{1|}}}| }}{{Languages/Lang|da|{{{1|}}}| }}{{Languages/Lang|de|{{{1|}}}| }}{{Languages/Lang|diq|{{{1|}}}| }}{{Languages/Lang|dsb|{{{1|}}}| }}{{Languages/Lang|ee|{{{1|}}}| }}{{Languages/Lang|el|{{{1|}}}| }}{{Languages/Lang|en|{{{1|}}}| }}{{Languages/Lang|eo|{{{1|}}}| }}{{Languages/Lang|es|{{{1|}}}| }}{{Languages/Lang|et|{{{1|}}}| }}{{Languages/Lang|eu|{{{1|}}}| }}{{Languages/Lang|ext|{{{1|}}}| }}{{Languages/Lang|fa|{{{1|}}}| }}{{Languages/Lang|fi|{{{1|}}}| }}{{Languages/Lang|fo|{{{1|}}}| }}{{Languages/Lang|fr|{{{1|}}}| }}{{Languages/Lang|frc|{{{1|}}}| }}{{Languages/Lang|frp|{{{1|}}}| }}{{Languages/Lang|fur|{{{1|}}}| }}{{Languages/Lang|fy|{{{1|}}}| }}{{Languages/Lang|ga|{{{1|}}}| }}{{Languages/Lang|gag|{{{1|}}}| }}{{Languages/Lang|gan-hans|{{{1|}}}| }}{{Languages/Lang|gan-hant|{{{1|}}}| }}{{Languages/Lang|gl|{{{1|}}}| }}{{Languages/Lang|gn|{{{1|}}}| }}{{Languages/Lang|got|{{{1|}}}| }}{{Languages/Lang|grc|{{{1|}}}| }}{{Languages/Lang|gsw|{{{1|}}}| }}{{Languages/Lang|gu|{{{1|}}}| }}{{Languages/Lang|gv|{{{1|}}}| }}{{Languages/Lang|hak|{{{1|}}}| }}{{Languages/Lang|haw|{{{1|}}}| }}{{Languages/Lang|he|{{{1|}}}| }}{{Languages/Lang|hi|{{{1|}}}| }}{{Languages/Lang|hif-latn|{{{1|}}}| }}{{Languages/Lang|hr|{{{1|}}}| }}{{Languages/Lang|hsb|{{{1|}}}| }}{{Languages/Lang|ht|{{{1|}}}| }}{{Languages/Lang|hu|{{{1|}}}| }}{{Languages/Lang|hy|{{{1|}}}| }}{{Languages/Lang|ia|{{{1|}}}| }}{{Languages/Lang|id|{{{1|}}}| }}{{Languages/Lang|ie|{{{1|}}}| }}{{Languages/Lang|ilo|{{{1|}}}| }}{{Languages/Lang|io|{{{1|}}}| }}{{Languages/Lang|is|{{{1|}}}| }}{{Languages/Lang|it|{{{1|}}}| }}{{Languages/Lang|ja|{{{1|}}}| }}{{Languages/Lang|jv|{{{1|}}}| }}{{Languages/Lang|ka|{{{1|}}}| }}{{Languages/Lang|kaa|{{{1|}}}| }}{{Languages/Lang|kab|{{{1|}}}| }}{{Languages/Lang|kg|{{{1|}}}| }}{{Languages/Lang|kiu|{{{1|}}}| }}{{Languages/Lang|kk-arab|{{{1|}}}| }}{{Languages/Lang|kk-cyrl|{{{1|}}}| }}{{Languages/Lang|kk-latn|{{{1|}}}| }}{{Languages/Lang|km|{{{1|}}}| }}{{Languages/Lang|kn|{{{1|}}}| }}{{Languages/Lang|ko|{{{1|}}}| }}{{Languages/Lang|ksh|{{{1|}}}| }}{{Languages/Lang|ku-latn|{{{1|}}}| }}{{Languages/Lang|kv|{{{1|}}}| }}{{Languages/Lang|kw|{{{1|}}}| }}{{Languages/Lang|ky|{{{1|}}}| }}{{Languages/Lang|la|{{{1|}}}| }}{{Languages/Lang|lb|{{{1|}}}| }}{{Languages/Lang|lfn|{{{1|}}}| }}{{Languages/Lang|li|{{{1|}}}| }}{{Languages/Lang|lij|{{{1|}}}| }}{{Languages/Lang|loz|{{{1|}}}| }}{{Languages/Lang|lt|{{{1|}}}| }}{{Languages/Lang|lv|{{{1|}}}| }}{{Languages/Lang|lzh|{{{1|}}}| }}{{Languages/Lang|mdf|{{{1|}}}| }}{{Languages/Lang|mg|{{{1|}}}| }}{{Languages/Lang|mhr|{{{1|}}}| }}{{Languages/Lang|mk|{{{1|}}}| }}{{Languages/Lang|ml|{{{1|}}}| }}{{Languages/Lang|mn|{{{1|}}}| }}{{Languages/Lang|mr|{{{1|}}}| }}{{Languages/Lang|ms|{{{1|}}}| }}{{Languages/Lang|mt|{{{1|}}}| }}{{Languages/Lang|mwl|{{{1|}}}| }}{{Languages/Lang|my|{{{1|}}}| }}{{Languages/Lang|myv|{{{1|}}}| }}{{Languages/Lang|nah|{{{1|}}}| }}{{Languages/Lang|nap|{{{1|}}}| }}{{Languages/Lang|nds|{{{1|}}}| }}{{Languages/Lang|nds-nl|{{{1|}}}| }}{{Languages/Lang|nl|{{{1|}}}| }}{{Languages/Lang|nn|{{{1|}}}| }}{{Languages/Lang|no|{{{1|}}}| }}{{Languages/Lang|nso|{{{1|}}}| }}{{Languages/Lang|oc|{{{1|}}}| }}{{Languages/Lang|os|{{{1|}}}| }}{{Languages/Lang|pa|{{{1|}}}| }}{{Languages/Lang|pam|{{{1|}}}| }}{{Languages/Lang|pdc|{{{1|}}}| }}{{Languages/Lang|pdt|{{{1|}}}| }}{{Languages/Lang|pl|{{{1|}}}| }}{{Languages/Lang|pms|{{{1|}}}| }}{{Languages/Lang|pnb|{{{1|}}}| }}{{Languages/Lang|pnt|{{{1|}}}| }}{{Languages/Lang|prg|{{{1|}}}| }}{{Languages/Lang|ps|{{{1|}}}| }}{{Languages/Lang|pt|{{{1|}}}| }}{{Languages/Lang|pt-br|{{{1|}}}| }}{{Languages/Lang|qu|{{{1|}}}| }}{{Languages/Lang|rm|{{{1|}}}| }}{{Languages/Lang|ro|{{{1|}}}| }}{{Languages/Lang|roa-tara|{{{1|}}}| }}{{Languages/Lang|ru|{{{1|}}}| }}{{Languages/Lang|sa|{{{1|}}}| }}{{Languages/Lang|sah|{{{1|}}}| }}{{Languages/Lang|sc|{{{1|}}}| }}{{Languages/Lang|scn|{{{1|}}}| }}{{Languages/Lang|sco|{{{1|}}}| }}{{Languages/Lang|sdc|{{{1|}}}| }}{{Languages/Lang|se|{{{1|}}}| }}{{Languages/Lang|sei|{{{1|}}}| }}{{Languages/Lang|sh|{{{1|}}}| }}{{Languages/Lang|shi|{{{1|}}}| }}{{Languages/Lang|si|{{{1|}}}| }}{{Languages/Lang|sk|{{{1|}}}| }}{{Languages/Lang|sl|{{{1|}}}| }}{{Languages/Lang|sli|{{{1|}}}| }}{{Languages/Lang|so|{{{1|}}}| }}{{Languages/Lang|sq|{{{1|}}}| }}{{Languages/Lang|sr-ec|{{{1|}}}| }}{{Languages/Lang|sr-el|{{{1|}}}| }}{{Languages/Lang|sr|{{{1|}}}| }}{{Languages/Lang|srn|{{{1|}}}| }}{{Languages/Lang|ss|{{{1|}}}| }}{{Languages/Lang|stq|{{{1|}}}| }}{{Languages/Lang|su|{{{1|}}}| }}{{Languages/Lang|sv|{{{1|}}}| }}{{Languages/Lang|sw|{{{1|}}}| }}{{Languages/Lang|szl|{{{1|}}}| }}{{Languages/Lang|ta|{{{1|}}}| }}{{Languages/Lang|te|{{{1|}}}| }}{{Languages/Lang|tet|{{{1|}}}| }}{{Languages/Lang|tg-cyrl|{{{1|}}}| }}{{Languages/Lang|th|{{{1|}}}| }}{{Languages/Lang|ti|{{{1|}}}| }}{{Languages/Lang|tk|{{{1|}}}| }}{{Languages/Lang|tl|{{{1|}}}| }}{{Languages/Lang|to|{{{1|}}}| }}{{Languages/Lang|tr|{{{1|}}}| }}{{Languages/Lang|tt-cyrl|{{{1|}}}| }}{{Languages/Lang|tyv|{{{1|}}}| }}{{Languages/Lang|ug-arab|{{{1|}}}| }}{{Languages/Lang|ug-latn|{{{1|}}}| }}{{Languages/Lang|uk|{{{1|}}}| }}{{Languages/Lang|vec|{{{1|}}}| }}{{Languages/Lang|vep|{{{1|}}}| }}{{Languages/Lang|vi|{{{1|}}}| }}{{Languages/Lang|vo|{{{1|}}}| }}{{Languages/Lang|vro|{{{1|}}}| }}{{Languages/Lang|wa|{{{1|}}}| }}{{Languages/Lang|war|{{{1|}}}| }}{{Languages/Lang|wo|{{{1|}}}| }}{{Languages/Lang|wuu|{{{1|}}}| }}{{Languages/Lang|xal|{{{1|}}}| }}{{Languages/Lang|xh|{{{1|}}}| }}{{Languages/Lang|xmf|{{{1|}}}| }}{{Languages/Lang|yi|{{{1|}}}| }}{{Languages/Lang|yo|{{{1|}}}| }}{{Languages/Lang|yue|{{{1|}}} }}{{Languages/Lang|zea|{{{1|}}}|| }}{{Languages/Lang|zh|{{{1|}}}| }}{{Languages/Lang|zh-hans|{{{1|}}}| }}{{Languages/Lang|zh-hant|{{{1|}}}| }}{{Languages/Lang|zh-tw|{{{1|}}}}}| }}{{Languages/Lang|zu|{{{1|}}}| }}<noinclude> == Syntax == <nowiki>{{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[edit source]

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.

Supported languages[edit source]

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, 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 Yes Yes
Main Page/af Afrikaans No Yes
Main Page/ar Arabic No Yes
Main Page/bg Bulgarian No Yes
Main Page/br Breton No Yes
Main Page/ca Catalan No Yes
Main Page/cs Czech No Yes
Main Page/da Danish Yes Yes
Main Page/de German Yes Yes
Main Page/el Greek No Yes
Main Page/es Spanish Yes Yes
Main Page/fa Persian No Yes
Main Page/fi Finnish Yes Yes
Main Page/fr French Yes Yes
Main Page/gl Galician No Yes
Main Page/gu Gujarati No Yes
Main Page/he Hebrew No Yes
Main Page/hu Hungarian No Yes
Main Page/id Indonesian No Yes
Main Page/it Italian Yes Yes
Main Page/ja Japanese Yes Yes
Main Page/ko Korean Yes Yes
Main Page/ksh Kölsch No Yes
Main Page/ml Malayalam No Yes
Main Page/mr Marathi No Yes
Main Page/ms Malay No Yes
Main Page/nl Nederlands Yes Yes
Main Page/no Norwegian Yes Yes
Main Page/oc Occitan No Yes
Main Page/pl Polish Yes Yes
Main Page/pt Portuguese Yes Yes
Main Page/pt-br Brazilian Portuguese Yes Yes
Main Page/ro Romanian No Yes
Main Page/ru Russian Yes Yes
Main Page/sk Slovak No Yes
Main Page/sr Serbian No Yes
Main Page/sv Swedish Yes Yes
Main Page/ta Tamil No Yes
Main Page/th Thai No Yes
Main Page/tr Turkish Yes Yes
Main Page/uk Ukrainian No Yes
Main Page/yue Cantonese No Yes
Main Page/zh-hans Chinese (Simplified) Yes Yes
Main Page/zh-hant Chinese (Traditional) Yes Yes

Example[edit source]

Here is how the language bar looks on the User_talk:Euss page:

Languages: English  • Deutsch • français • Nederlands






</nowiki>