Difference between revisions of "Template:Languages"

From Gramps
m
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== Template ==
 
== Template ==
 
<onlyinclude><div class="LanguageLinks">
 
<onlyinclude><div class="LanguageLinks">
<table width="100%" style="clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px;">
+
<table class="noprint" width="100%" style="clear: both; border: 1px solid #aaaaaa; border-collapse: collapse; padding: 0.2em; margin: 0; font-size: 85%; margin: 0 1px;">
 
<tr valign="top" style="background: #EEF3E2">
 
<tr valign="top" style="background: #EEF3E2">
<td style="width: 25px; padding-left: 0.5em;">[[Image:gramps-config-language.png|20px|]]</td>
+
<td style="width: 25px; padding-left: 0.5em;">[[File:gramps-config-language.png|20px|]]</td>
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[GRAMPS:Language policy|Languages]]:'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED;">
+
<td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Portal:Translators|Languages]]:'''&nbsp;</td><td style="padding: 1px 1em 0; background: #F6F9ED;">
 
[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]
 
[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|English]]
 
{{Languages/Lang|bg|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|bg|{{{1|}}}|{{{2|}}}}}
Line 14: Line 14:
 
{{Languages/Lang|fi|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|fi|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|fr|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|fr|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|he|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|id|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|it|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|it|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|ja|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|lt|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|lt|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|mk|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|mk|{{{1|}}}|{{{2|}}}}}
Line 21: Line 24:
 
{{Languages/Lang|pl|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|pl|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|pt|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|pt|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|pt_PT|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|pt-br|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|ru|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|ru|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|sl|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|sl|{{{1|}}}|{{{2|}}}}}
Line 26: Line 31:
 
{{Languages/Lang|sv|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|sv|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|sk|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|sk|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|ta|{{{1|}}}|{{{2|}}}}}
 +
{{Languages/Lang|tr|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|zh|{{{1|}}}|{{{2|}}}}}
 
{{Languages/Lang|zh|{{{1|}}}|{{{2|}}}}}
 
</td></tr></table></div></onlyinclude>
 
</td></tr></table></div></onlyinclude>
Line 40: Line 47:
 
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/nl</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/nl</tt>, and ignores non-existant languages.
  
 
See [[Project:Language policy]] for further details about translating pages.
 
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 [http://meta.wikimedia.org/wiki/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.
  
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.
+
Please use the appropriate [http://meta.wikimedia.org/wiki/List_of_wikipedias prefix, as used on Wikipedia] when adding a new language.
  
{| border="1" cellpadding="5"
+
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 GrampsWiki in that language. '''If no GrampsWiki 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 GrampsWiki then please return to add content here.
 +
 
 +
{| {{prettytable}}
 
! Page Name || Language  
 
! Page Name || Language  
 
|-
 
|-
Line 69: Line 80:
 
|-
 
|-
 
| Main Page'''/pl''' || [[Main_Page/pl | Polish]]
 
| Main Page'''/pl''' || [[Main_Page/pl | Polish]]
 +
|-
 +
| Main Page'''/pt''' || [[Main_Page/pt | Brazilian Portuguese]]
 +
|-
 +
| Main Page'''/pt_PT''' || [[Main_Page/pt_PT | Portugal Portuguese]]
 
|-
 
|-
 
| Main Page'''/fi''' || [[Main_Page/fi | Finnish]]
 
| Main Page'''/fi''' || [[Main_Page/fi | Finnish]]
 +
|-
 +
| Main Page'''/he''' || [[Main_Page/he | Hebrew]]
 +
|-
 +
| Main Page'''/tr''' || [[Main_Page/tr | Turkish]]
 +
|-
 +
| Main Page'''/es''' || [[Main_Page/es | Spanish]]
 
|}
 
|}
  
Line 79: Line 100:
  
 
== Copyright ==
 
== Copyright ==
Copied under GFDL from [http://www.mediawiki.org/w/index.php?title=Template:Languages|MetaWiki]
+
Copied under GFDL from [http://www.mediawiki.org/w/index.php?title=Template:Languages Template:Languages] - mediawiki.org
 +
 
 +
=List of existing Languages=
 +
 
 +
{{Special:PrefixIndex/Template:Languages/}}
 +
 
 +
 
 +
[[Category:Templates]]

Latest revision as of 19:55, 29 March 2025

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 Main_Page/fr you would need to use {{Languages|Main_Page}} and not {{Languages|Main_Page/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/nl, 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 GrampsWiki in that language. If no GrampsWiki 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 GrampsWiki then please return to add content here.

Page Name Language
Main Page English
Main Page/nl Dutch
Main Page/lt Lithuanian
Main Page/sl Slovenian
Main Page/sv Swedish
Main Page/fr French
Main Page/sl German
Main Page/cs Czech
Main Page/pl Polish
Main Page/pt Brazilian Portuguese
Main Page/pt_PT Portugal Portuguese
Main Page/fi Finnish
Main Page/he Hebrew
Main Page/tr Turkish
Main Page/es Spanish

Example

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


Copyright

Copied under GFDL from Template:Languages - mediawiki.org

List of existing Languages