Template:TemplateBox/en
{{#ifeq: en | doc
|
{{
#ifeq: show | show | {{#invoke:Message box|mbox}} }}{{ #if: | | {{#ifexist:Template:TemplateBox|[[Category:{{ #switch: Template | Template = Template | Module = Module | User = User | #default = Wikidata }} documentation pages]]|}} }}
| }}
{{#if: |
| No description yet available. }}{{#if: |
The template automatically sets the following categories:
}}
Contents
Usage
{{{{#if:|subst:|}}{{#if: | | TemplateBox/en }}{{#switch:|multi={{#if: |
{{#if: |
}}|one=}}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}{{#if: {{#switch: |optional-=|#default= }} | |={{#switch:|multi=
|one=}} }}}}
Or use the shorthand {{#ifexist: Template: | {{{{#if: | |... }}}}
| }}
}}{{#if: |
}}{{#if: |
Parameters
Parameter name | Description | Default value | required or optional?
{{#if: | | |||||
---|---|---|---|---|---|---|---|---|
1 | parameter #1 (1) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
2 | parameter #2 (2) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
3 | parameter #3 (3) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
4 | parameter #4 (4) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
5 | parameter #5 (5) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
6 | parameter #6 (6) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
7 | parameter #7 (7) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
8 | parameter #8 (8) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
9 | parameter #9 (9) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
10 | parameter #10 (10) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
11 | parameter #11 (11) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
12 | parameter #12 (12) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
13 | parameter #13 (13) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
14 | parameter #14 (14) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
15 | parameter #15 (15) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
16 | parameter #16 (16) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
17 | parameter #17 (17) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
18 | parameter #18 (18) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
19 | parameter #19 (19) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
20 | parameter #20 (20) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
21 | parameter #21 (21) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
22 | parameter #22 (22) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
23 | parameter #23 (23) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
24 | parameter #24 (24) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
25 | parameter #25 (25) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
26 | parameter #26 (26) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
27 | parameter #27 (27) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
28 | parameter #28 (28) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
29 | parameter #29 (29) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }}{{#if: | | |
30 | parameter #30 (30) | }} | | empty }} | {{#switch: | optional=optional | optional-=optional | required=required | deprecated=deprecated | optional
}} }} |
|
The template takes no parameters. }}
Additional information
The template is intended to be used in the following namespaces: {{#switch: |=no namespace specified |all=all namespaces |talks=all talk namespaces |contents=all content namespaces |0|Main|Gallery|main|gallery=the main name space or for items. (unprefixed) |1|Talk|talk=the Talk main name space or for items |2|User|user=the User namespace |3|User talk|user talk=the User talk namespace |4|Commons|commons=the Policies, guidelines, portals and wikiproject pages |5|Commons talk|commons talk=the talk namespace of Policies, guidelines, portals and wikiproject pages |6|File|file=the File namespace |7|File talk|file talk=the File talk namespace |8|MediaWiki|mediaWiki=the MediaWiki namespace |9|MediaWiki talk|mediaWiki talk=the MediaWiki talk namespace |10|Template|template=the Template namespace |11|Template talk|template talk=the Template talk namespace |12|Help|help=the Help namespace |13|Help talk|help talk=the Help talk namespace |14|Category|category=the Category namespace |15|Category talk|category talk=the Category talk namespace |16|Creator|creator= |17|Creator talk|creator talk= |18|Special|special= |#default=unknown }}
The template is intended to be used by the following user groups: {{#switch: |all=all users |bot=bots |administrator|admin|sysop=admins |bureaucrat|crat=bureaucrats |checkuser=checkusers |licensereviewer|imagereviewer|image-reviewer|license-reviewer=⧼Group-Image-reviewer⧽ |otrs|otrs-agent|otrs-member=⧼Group-OTRS-member⧽ |autoconfirmed=Autoconfirmed users |autopatrolled=⧼Group-autopatrolled⧽ |filemover=⧼Group-filemover⧽ |oversight=⧼Group-oversight⧽ |patroller=⧼Group-patroller⧽ |rollbacker=⧼Group-rollbacker⧽ |steward=⧼Group-steward⧽ |upwizcampeditors=⧼Group-upwizcampeditors⧽ |#default=no user group specified }}{{#if: |
Placement:
{{#switch:
|top=At the top of the page
|bottom=At the bottom of the page
|license|licence=In the "permission" parameter of the {{{{#if:|subst:}}{{#ifeq:I|:|:Information|{{#switch:||Template=Information|File|Category=Information|#default=Information}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
template (or the respective parameter of similar templates) or in the "Licence" section
|source=In the "source" parameter of the {{{{#if:|subst:}}{{#ifeq:I|:|:Information|{{#switch:||Template=Information|File|Category=Information|#default=Information}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
template (or the respective parameter of similar templates) or just below this template
|#default=
}} }}{{#if: |
Relies on:
}}{{#if: |
Example
{{{{#if: | | TemplateBox/en }}|}}
renders as:
{{{{#if: | | TemplateBox/en }}||category=}}
}}{{#if: |
Example
{{{{#if: | | TemplateBox/en }}|{{{example2}}}}}
renders as:
{{{{#if: | | TemplateBox/en }}||category=}}
}}{{#if: |
See also
}}{{#switch: |-=
Localization
This template is not intended to be localized. |autotranslate=
Localization
This template is localized through {{{{#if:|subst:}}{{#ifeq:A|:|:Autotranslate|{{#switch:||Template=Autotranslate|File|Category=Autotranslate|#default=Autotranslate}}}}{{#ifeq:x|{{{2}}}||{{{2}}}}}{{#ifeq:x|{{{3}}}||{{{3}}}}}{{#ifeq:x|{{{4}}}||{{{4}}}}}{{#ifeq:x|{{{5}}}||{{{5}}}}}{{#ifeq:x|{{{6}}}||{{{6}}}}}{{#ifeq:x|{{{7}}}||{{{7}}}}}{{#ifeq:x|{{{8}}}||{{{8}}}}}{{#ifeq:x|{{{9}}}||{{{9}}}}}{{#ifeq:x|{{{10}}}||{{{10}}}}}}}
. {{#ifexist: Template:{{#if:|{{{name}}}|TemplateBox/en}}/layout | The layout of the template can be found under [[Template:{{#if:|{{{name}}}|TemplateBox/en}}/layout]].}}
To add your language to the list of languages supported by this template, please copy the code of Template:TemplateBox/en/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.
<inputbox> type=create preload=Template:{{#if: | | TemplateBox/en }}/en default=Template:{{#if: | | TemplateBox/en }}/{{#ifexist: Template:{{#if: | | TemplateBox/en }}/⧼Lang⧽ | LANGCODE | ⧼Lang⧽ }} </inputbox>
|switch=
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "Template:Tlf" construct. It takes the form "|xx=Your translation" (xx being the code of your language) |mediawiki-msg=
Localization
This template is localized by utilizing MediaWiki namespace messages. These can be translated at [[:translatewiki:MediaWiki:{{#if:||Wm-license-templatebox-text}}|translatewiki.net]] ([[:translatewiki:Special:Translations/MediaWiki:{{#if:||Wm-license-templatebox-text}}|current translations]]). |custommediawiki-msg=
Localization
This template is localized by utilizing custom MediaWiki namespace messages. |#default= }}{{#if: |