Difference between revisions of "Template:Languages"

From GeoGebra Manual
Jump to: navigation, search
m (1 revision)
(update based on mw:Template:Languages (http://www.mediawiki.org/w/index.php?oldid=290693))
Line 5: Line 5:
 
<tr valign="top" style="background: #EEF3E2">
 
<tr valign="top" style="background: #EEF3E2">
 
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|Languages|link=]]</td>
 
<td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|Languages|link=]]</td>
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|{{Languages/Title|{{SUBPAGENAME}}}}]]'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED;">
+
<td style="white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|{{Languages/Title|{{SUBPAGENAME}}}}]]'''&nbsp;</td><td style="width: 99%; padding: 1px 1em 0; background: #F6F9ED;">
 
'''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]'''
 
'''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]'''
 
{{Languages/Lang|af|{{{1|}}}}}
 
{{Languages/Lang|af|{{{1|}}}}}
Line 29: Line 29:
 
{{Languages/Lang|it|{{{1|}}}}}
 
{{Languages/Lang|it|{{{1|}}}}}
 
{{Languages/Lang|ja|{{{1|}}}}}
 
{{Languages/Lang|ja|{{{1|}}}}}
 +
{{Languages/Lang|ka|{{{1|}}}}}
 
{{Languages/Lang|ko|{{{1|}}}}}
 
{{Languages/Lang|ko|{{{1|}}}}}
 
{{Languages/Lang|ksh|{{{1|}}}}}
 
{{Languages/Lang|ksh|{{{1|}}}}}
Line 39: Line 40:
 
{{Languages/Lang|pl|{{{1|}}}}}
 
{{Languages/Lang|pl|{{{1|}}}}}
 
{{Languages/Lang|pt|{{{1|}}}}}
 
{{Languages/Lang|pt|{{{1|}}}}}
 +
{{Languages/Lang|pt-br|{{{1|}}}}}
 
{{Languages/Lang|ro|{{{1|}}}}}
 
{{Languages/Lang|ro|{{{1|}}}}}
 
{{Languages/Lang|ru|{{{1|}}}}}
 
{{Languages/Lang|ru|{{{1|}}}}}
Line 81: Line 83:
 
! Page Name || Language  
 
! Page Name || Language  
 
|-
 
|-
| Main Page || [[:en:|English]]
+
| Main Page || [http://en.wikipedia.org English]
 
|-
 
|-
| Main Page'''/af''' || [[:af:|Afrikaans]]
+
| Main Page'''/af''' || [http://af.wikipedia.org Afrikaans]
 
|-
 
|-
| Main Page'''/ar''' || [[:ar:|Arabic]]
+
| Main Page'''/ar''' || [http://ar.wikipedia.org Arabic]
 
|-
 
|-
| Main Page'''/az''' || [[:az:|Azerbaijani]]
+
| Main Page'''/az''' || [http://az.wikipedia.org Azerbaijani]
 
|-
 
|-
 
| Main Page'''/bcc''' || Southern Balochi
 
| Main Page'''/bcc''' || Southern Balochi
 
|-
 
|-
| Main Page'''/bg''' || [[:bg:|Bulgarian]]
+
| Main Page'''/bg''' || [http://bg.wikipedia.org Bulgarian]
 
|-
 
|-
| Main Page'''/br''' || [[:br:|Breton]]
+
| Main Page'''/br''' || [http://br.wikipedia.org Breton]
 
|-
 
|-
| Main Page'''/ca''' || [[:ca:|Catalan]]
+
| Main Page'''/ca''' || [http://ca.wikipedia.org Catalan]
 
|-
 
|-
| Main Page'''/cs''' || [[:cs:|Czech]]
+
| Main Page'''/cs''' || [http://cs.wikipedia.org Czech]
 
|-
 
|-
| Main Page'''/da''' || [[:da:|Danish]]
+
| Main Page'''/da''' || [http://da.wikipedia.org Danish]
 
|-
 
|-
| Main Page'''/de''' || [[:de:|German]]
+
| Main Page'''/de''' || [http://de.wikipedia.org German]
 
|-
 
|-
| Main Page'''/el''' || [[:el:|Greek]]
+
| Main Page'''/el''' || [http://el.wikipedia.org Greek]
 
|-
 
|-
| Main Page'''/es''' || [[:es:|Spanish]]
+
| Main Page'''/es''' || [http://es.wikipedia.org Spanish]
 
|-
 
|-
| Main Page'''/fa''' || [[:fa:|Persian]]
+
| Main Page'''/fa''' || [http://fa.wikipedia.org Persian]
 
|-
 
|-
| Main Page'''/fi''' || [[:fi:|Finnish]]
+
| Main Page'''/fi''' || [http://fi.wikipedia.org Finnish]
 
|-
 
|-
| Main Page'''/fr''' || [[:fr:|French]]
+
| Main Page'''/fr''' || [http://fr.wikipedia.org French]
 
|-
 
|-
| Main Page'''/gl''' || [[:gl:|Galician]]
+
| Main Page'''/gl''' || [http://gl.wikipedia.org Galician]
 
|-
 
|-
| Main Page'''/gu''' || [[:gu:|Gujarati]]
+
| Main Page'''/gu''' || [http://gu.wikipedia.org Gujarati]
 
|-
 
|-
| Main Page'''/he''' || [[:he:|Hebrew]]
+
| Main Page'''/he''' || [http://he.wikipedia.org Hebrew]
 
|-
 
|-
| Main Page'''/hu''' || [[:hu:|Hungarian]]
+
| Main Page'''/hu''' || [http://hu.wikipedia.org Hungarian]
 
|-
 
|-
| Main Page'''/id''' || [[:id:|Indonesian]]
+
| Main Page'''/id''' || [http://id.wikipedia.org Indonesian]
 
|-
 
|-
| Main Page'''/it''' || [[:it:|Italian]]
+
| Main Page'''/it''' || [http://it.wikipedia.org Italian]
 
|-
 
|-
| Main Page'''/ja''' || [[:ja:|Japanese]]
+
| Main Page'''/ja''' || [http://ja.wikipedia.org Japanese]
 
|-
 
|-
| Main Page'''/ko''' || [[:ko:|Korean]]
+
| Main Page'''/ka''' || [http://ka.wikipedia.org Georgian]
 
|-
 
|-
| Main Page'''/ksh''' || [[:ksh:|Kölsch]]
+
| Main Page'''/ko''' || [http://ko.wikipedia.org Korean]
 
|-
 
|-
| Main Page'''/ml''' || [[:mr:|Malayalam]]
+
| Main Page'''/ksh''' || [http://ksh.wikipedia.org Kölsch]
 
|-
 
|-
| Main Page'''/mr''' || [[:mr:|Marathi]]
+
| Main Page'''/ml''' || [http://mr.wikipedia.org Malayalam]
 
|-
 
|-
| Main Page'''/ms''' || [[:ms:|Malay]]
+
| Main Page'''/mr''' || [http://mr.wikipedia.org Marathi]
 
|-
 
|-
| Main Page'''/nl''' || [[:nl:|Nederlands]]
+
| Main Page'''/ms''' || [http://ms.wikipedia.org Malay]
 
|-
 
|-
| Main Page'''/no''' || [[:no:|Norwegian]]
+
| Main Page'''/nl''' || [http://nl.wikipedia.org Nederlands]
 
|-
 
|-
| Main Page'''/oc''' || [[:oc:|Occitan]]
+
| Main Page'''/no''' || [http://no.wikipedia.org Norwegian]
 
|-
 
|-
| Main Page'''/pl''' || [[:pl:|Polish]]
+
| Main Page'''/oc''' || [http://oc.wikipedia.org Occitan]
 
|-
 
|-
| Main Page'''/pt''' || [[:pt:|Portugese]]
+
| Main Page'''/pl''' || [http://pl.wikipedia.org Polish]
 
|-
 
|-
| Main Page'''/ro''' || [[:ro:|Romanian]]
+
| Main Page'''/pt''' || [http://pt.wikipedia.org Portugese]
 
|-
 
|-
| Main Page'''/ru''' || [[:ru:|Russian]]
+
| Main Page'''/pt-br''' || Brazilian Portuguese
 
|-
 
|-
| Main Page'''/si''' || [[:si:|Sinhalese]]
+
| Main Page'''/ro''' || [http://ro.wikipedia.org Romanian]
 
|-
 
|-
| Main Page'''/sk''' || [[:sk:|Slovak]]
+
| Main Page'''/ru''' || [http://ru.wikipedia.org Russian]
 
|-
 
|-
| Main Page'''/sq''' || [[:sq:|Albanian]]
+
| Main Page'''/si''' || [http://si.wikipedia.org Sinhalese]
 
|-
 
|-
| Main Page'''/sr''' || [[:sr:|Serbian]]
+
| Main Page'''/sk''' || [http://sk.wikipedia.org Slovak]
 
|-
 
|-
| Main Page'''/sv''' || [[:sv:|Swedish]]
+
| Main Page'''/sq''' || [http://sq.wikipedia.org Albanian]
 
|-
 
|-
| Main Page'''/ta''' || [[:ta:|Tamil]]
+
| Main Page'''/sr''' || [http://sr.wikipedia.org Serbian]
 
|-
 
|-
| Main Page'''/th''' || [[:th:|Thai]]
+
| Main Page'''/sv''' || [http://sv.wikipedia.org Swedish]
 
|-
 
|-
| Main Page'''/tr''' || [[:tr:|Turkish]]
+
| Main Page'''/ta''' || [http://ta.wikipedia.org Tamil]
 
|-
 
|-
| Main Page'''/uk''' || [[:uk:|Ukrainian]]
+
| Main Page'''/th''' || [http://th.wikipedia.org Thai]
 
|-
 
|-
| Main Page'''/vi''' || [[:vi:|Vietnamese]]
+
| Main Page'''/tr''' || [http://tr.wikipedia.org Turkish]
 
|-
 
|-
| Main Page'''/yue''' || [[:zh-yue:|Cantonese]]
+
| Main Page'''/uk''' || [http://uk.wikipedia.org Ukrainian]
 
|-
 
|-
| Main Page'''/zh''' || [[:zh:|Chinese]]
+
| Main Page'''/vi''' || [http://vi.wikipedia.org Vietnamese]
 +
|-
 +
| Main Page'''/yue''' || [http://zh-yue.wikipedia.org Cantonese]
 +
|-
 +
| Main Page'''/zh''' || [http://zh.wikipedia.org Chinese]
 
|-
 
|-
 
| Main Page'''/zh-hans''' || Chinese (Simplified)
 
| Main Page'''/zh-hans''' || Chinese (Simplified)

Revision as of 19:24, 22 December 2009

Template

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

Example

Here is how the language bar looks on the MediaWiki page:

© 2020 International GeoGebra Institute