Template:Languages: Difference between revisions

From PZwiki
m (add see also)
(improve)
Line 2: Line 2:
{{Documentation/sandbox|doc =
{{Documentation/sandbox|doc =
This template is used in ''Languages'' section of the sidebar.
This template is used in ''Languages'' section of the sidebar.
==Usage==
===Parameters===
;<code>1</code> <sup>(required)</sup>
:Language code to be checked. including <code>en</code> for English.


{{Translation guide}}
{{Translation guide}}
Line 11: Line 16:
{{ll|Category:Templates}}
{{ll|Category:Templates}}
</noinclude><includeonly>{{Languages/namespace
</noinclude><includeonly>{{Languages/namespace
| {{#switch: {{{1|}}}
| {{#ifeq: {{{1}}}|en
   | en = {{#ifexist: {{Languages/core}}
   | {{#ifexist: {{Languages/core}}
     | {{Languages/core}}
     | {{Languages/core}}
     | -
     | -
     }}
     }}
   | af | cs | de | es | fr | hu | it | ja | ko | nl | no | pl | pt | pt-br | ru | th | tr | uk | zh-hans | zh-hant = {{#ifexist: {{Languages/core}}/{{{1}}}
   | {{yesno|{{Language code|{{{1}}}}}
    | {{Languages/core}}/{{{1}}}
    | yes = {{#ifexist: {{Languages/core}}/{{{1}}}
    | -
      | {{Languages/core}}/{{{1}}}
      | -
      }}
     }}
     }}
   }}
   }}
}}</includeonly>
}}</includeonly>

Revision as of 04:29, 31 December 2023

Furniture Pickup.png
It has been suggested that this template be moved to Template:Languages.
Notebook.pngTemplate Documentation

This template is used in Languages section of the sidebar.

Usage

Parameters

1 (required)
Language code to be checked. including en for English.

How to translate

This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:

  1. Create a subpage of this template with the language code of the language you want to translate to.
  2. Copy the code wrapped in the <noinclude> tag in this template into the page you created.
    {{Translation guide}} template should be removed from the translated documentation.
  3. Translate the page according to the translation requirements of normal pages.

See also

Editors can experiment in this template's sandbox.