Template:Languages: Difference between revisions
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 | ||
| {{# | | {{#ifeq: {{{1}}}|en | ||
| | | {{#ifexist: {{Languages/core}} | ||
| {{Languages/core}} | | {{Languages/core}} | ||
| - | | - | ||
}} | }} | ||
| | | {{yesno|{{Language code|{{{1}}}}} | ||
| yes = {{#ifexist: {{Languages/core}}/{{{1}}} | |||
| {{Languages/core}}/{{{1}}} | |||
| - | |||
}} | |||
}} | }} | ||
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 04:29, 31 December 2023
It has been suggested that this template be moved to Template:Languages.
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:
- Create a subpage of this template with the language code of the language you want to translate to.
- 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.
- Translate the page according to the translation requirements of normal pages.
See also
Editors can experiment in this template's sandbox.