Difference between revisions of "Template:Other languages"

From Inkscape Wiki
Jump to navigation Jump to search
m
Line 57: Line 57:
</small>
</small>
</span><noinclude>
</span><noinclude>


How to use:
How to use:
:<code><nowiki>{{</nowiki>{{PAGENAME}}| en=''Name of the English version'' | ''... other versions ...'' }}</code>
:<code><nowiki>{{</nowiki>{{PAGENAME}}| en=''Name of the English version'' | ''... other versions ...'' }}</code>
will be replaced by a box with links to the translated versions of the page.
will be replaced by a list of links to the translated versions of the page.<br />
You '''must''' specify an English version, otherwise the template will not work.
 
 


This template works as follows:
This template works as follows:
*If a localized version of the page is passed in the form ''language code=page name'', then displays a link to that page.
*If a localized version of the page is passed in the form ''language code=page name'', then display a link to that page.
*:Example: <code>it=Inkscape in italiano</code> makes the template link the Italian version [[Inkscape in italiano]].
*:Example: <code>it=Inkscape in italiano</code> creates a link to the Italian version [[Inkscape in italiano]].
*Otherwise, by default the template will link to ''Page in English/language code''.
*Otherwise, by default, link to ''Page in English/language code''.
*:Example: if the English page is [[Inkscape]] and no Italian localization is specified, then the template will return [[Inkscape/it]] because the ISO 639-1 language code for Italian is "it".
*:Example: if the English page is [[Inkscape]] and no Italian localization is specified, then the template will link to [[Inkscape/it]] because the ISO 639-1 language code for Italian is "it".
 
They are the [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language codes. [http://wiki.inkscape.org/wiki/index.php?title=Template:Other_languages&action=edit Here] you can read the list of codes currently supported.


They are the [http://en.wikipedia.org/wiki/ISO_639-1 ISO 639-1] language codes, you can read the entire list [http://wiki.inkscape.org/wiki/index.php?title=Template:Other_languages&action=edit here].<br />
You '''must''' specify an English version, otherwise the template will not work!




How to add a new language code:
How to add a language to the list:
*open this page in edit mode ([http://wiki.inkscape.org/wiki/index.php?title=Template:Other_languages&action=edit click here])
*open this template in edit mode ([http://wiki.inkscape.org/wiki/index.php?title=Template:Other_languages&action=edit click here])
*search for your language
*search for your language
*delete the <code><nowiki><!--</nowiki></code> and <code><nowiki>--></nowiki></code> to uncomment the language. Please leave the <code><nowiki><nowiki/></nowiki></code> at the beginning of the line.
*delete the <code><nowiki><!--</nowiki></code> and <code><nowiki>--></nowiki></code> to uncomment the line. Please leave the <code><nowiki><nowiki/></nowiki></code> where it is.
If you can't find your language:
*please search twice
*learn the code [http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes here], then add an appropriate line


[[Category:Wiki templates]]
[[Category:Wiki templates]]
</noinclude>
</noinclude>

Revision as of 13:49, 7 May 2012

Other versions: [[{{{en}}}/ca|Català]] [[{{{en}}}/cs|Česky]] [[{{{en}}}/de|Deutsch]] [[{{{en}}}/en|English]] [[{{{en}}}/es|Español]] [[{{{en}}}/fr|Français]] [[{{{en}}}/it|Italiano]] [[{{{en}}}/ko|한국어]] [[{{{en}}}/pt|Português]] [[{{{en}}}/ru|Русский]] [[{{{en}}}/sk|Slovenčina]]


How to use:

{{Other languages| en=Name of the English version | ... other versions ... }}

will be replaced by a list of links to the translated versions of the page.
You must specify an English version, otherwise the template will not work.


This template works as follows:

  • If a localized version of the page is passed in the form language code=page name, then display a link to that page.
    Example: it=Inkscape in italiano creates a link to the Italian version Inkscape in italiano.
  • Otherwise, by default, link to Page in English/language code.
    Example: if the English page is Inkscape and no Italian localization is specified, then the template will link to Inkscape/it because the ISO 639-1 language code for Italian is "it".

They are the ISO 639-1 language codes. Here you can read the list of codes currently supported.


How to add a language to the list:

  • open this template in edit mode (click here)
  • search for your language
  • delete the <!-- and --> to uncomment the line. Please leave the <nowiki/> where it is.

If you can't find your language:

  • please search twice
  • learn the code here, then add an appropriate line