User:結衣/Template:Uselang: Difference between revisions
< User:結衣
Jump to navigation
Jump to search
(Optimize language detection and validation) Tag: Replaced |
m (Add documentation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{ #if: {{{ | <onlyinclude>{{ #if: {{{ 1 | }}}<!--Language specified? | ||
-->| {{ #ifeq: {{#language: {{{ | -->| {{ #ifeq: {{#language: {{{ 1 | }}} | {{{ 1 | }}}}} | ||
| {{{ 1 | }}}<!--Translate {{{1}}} to language {{{1}}}; no MediaWiki language code translates to itself.--> | |||
| <!--NULL--> | |||
| 1 | |||
}} | }} | ||
| {{PAGELANGUAGE}} | | {{ #if: {{ Yesno | {{{ default-none | }}} }} | ||
| {{ #ifeq: {{PAGELANGUAGE}} | |||
| {{CONTENTLANGUAGE}} | |||
| <!--NULL--> | |||
| {{{ pref | }}} | |||
}} | |||
| {{{ pref | }}} | |||
}}{{ #if: {{ Yesno | {{{ default-none | }}} }} | |||
| <!--NULL--> | |||
|{{PAGELANGUAGE}} | |||
}}{{{ suf | }}} | |||
}}</onlyinclude> | }}</onlyinclude> | ||
<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 19:43, 1 May 2023
en
The above documentation is transcluded from User:結衣/Template:Uselang/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.