Template:TemplateBox/en

From Soma-notes

{{#ifeq:en|{{#ifeq:{{#if: | override | }}|override|en|doc}}|{{Documentation subpage/{{#ifexist: Template:Documentation subpage/{{#if: |{{{2}}}|⧼Lang⧽}} | {{#if: |{{{2}}}|⧼Lang⧽}} | {{#ifexist: Template:Documentation subpage/Template:GetFallback | Template:GetFallback | {{#ifexist: Template:Documentation subpage/Template:GetFallback2 | Template:GetFallback2 | en }} }} }}}}}}

{{#if: | (this part of the documentation is only available in some languages)

| No description yet available. }}{{#if: |

The template automatically sets the following categories:

}}

Usage

{{{{#if: | | TemplateBox/en }}{{#switch:|multi={{#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: |

Or use the shorthand {{#ifexist: Template: | {{{{#if: | |... }}}} | }} }}{{#if: |

(this part of the documentation is only available in some languages)

}}{{#if: |

Parameters

Parameter name Description (this part of the documentation is only available in some languages) 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

}} }}

|

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 or gallery namespace (unprefixed) |1|Talk|talk=the Talk namespace for the main namespace |2|User|user=the User namespace |3|User talk|user talk=the User talk namespace |4|Commons|commons=the Commons namespace |5|Commons talk|commons talk=the Commons talk namespace |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=the Creator namespace |17|Creator talk|creator talk=the Creator talk namespace |18|Special|special=the Special namespace |#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 |#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 {{Information}} template (or the respective parameter of similar templates) or in the "Licence" section |#default= (this part of the documentation is only available in some languages)

}} }}{{#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

(this part of the documentation is only available in some languages)

}}{{#switch: |-=

Localization

This template is not intended to be localized. |autotranslate=

Localization

Template:Lang links

This template is localized through {{Autotranslate}}. {{#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: |

(this part of the documentation is only available in some languages)

}} Template:Translated tag