Template:Languages: Difference between revisions

From PZwiki
(update doc)
m (Protected "Template:Languages": Highly visible template: re-add protection - used for MediaWiki interface elements ([Edit=Allow only administrators] (indefinite)))
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Move|Template:Languages|reason=The original one will be removed.}}
<noinclude>{{Protection|This template is considered '''High Risk''' as it appears on multiple pages.}}
{{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}}
:Language code to be checked. including <code>en</code> for English.


{{Translation guide}}
{{Translation guide}}
==See also==
*{{ll|Template:Languages/core}}
*{{ll|Template:Languages/namespace}}
}}
}}
{{ll|Category:Templates}}
{{ll|Category:Language 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>

Latest revision as of 10:35, 5 March 2024

Lock-locked.png
This page has been put into protection by a PZwiki administrator.
Reason: This template is considered High Risk as it appears on multiple pages.
Only users in the sysop user group may edit this page.
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.