Difference between revisions of "Template:TemplateBox"
Template>Verdy p (compress to save expansion cost) |
m (1 revision imported) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{ | + | <includeonly>{{TemplateBox/{{Fallback|TemplateBox}} |
| − | | | + | |1={{{1|}}}|1d={{{1d|}}}|1def={{{1def|}}}|1stat={{{1stat|}}}|2={{{2|}}}|2d={{{2d|}}}|2def={{{2def|}}}|2stat={{{2stat|}}} |
| − | | | + | |3={{{3|}}}|3d={{{3d|}}}|3def={{{3def|}}}|3stat={{{3stat|}}}|4={{{4|}}}|4d={{{4d|}}}|4def={{{4def|}}}|4stat={{{4stat|}}} |
| − | | | + | |5={{{5|}}}|5d={{{5d|}}}|5def={{{5def|}}}|5stat={{{5stat|}}}|6={{{6|}}}|6d={{{6d|}}}|6def={{{6def|}}}|6stat={{{6stat|}}} |
| − | | | + | |7={{{7|}}}|7d={{{7d|}}}|7def={{{7def|}}}|7stat={{{7stat|}}}|8={{{8|}}}|8d={{{8d|}}}|8def={{{8def|}}}|8stat={{{8stat|}}} |
| − | | | + | |9={{{9|}}}|9d={{{9d|}}}|9def={{{9def|}}}|9stat={{{9stat|}}}|10={{{10|}}}|10d={{{10d|}}}|10def={{{10def|}}}|10stat={{{10stat|}}} |
| − | | | + | |11={{{11|}}}|11d={{{11d|}}}|11def={{{11def|}}}|11stat={{{11stat|}}}|12={{{12|}}}|12d={{{12d|}}}|12def={{{12def|}}}|12stat={{{12stat|}}} |
| − | | | + | |13={{{13|}}}|13d={{{13d|}}}|13def={{{13def|}}}|13stat={{{13stat|}}}|14={{{14|}}}|14d={{{14d|}}}|14def={{{14def|}}}|14stat={{{14stat|}}} |
| − | | | + | |15={{{15|}}}|15d={{{15d|}}}|15def={{{15def|}}}|15stat={{{15stat|}}}|16={{{16|}}}|16d={{{16d|}}}|16def={{{16def|}}}|16stat={{{16stat|}}} |
| − | | | + | |17={{{17|}}}|17d={{{17d|}}}|17def={{{17def|}}}|17stat={{{17stat|}}}|18={{{18|}}}|18d={{{18d|}}}|18def={{{18def|}}}|18stat={{{18stat|}}} |
| − | + | |19={{{19|}}}|19d={{{19d|}}}|19def={{{19def|}}}|19stat={{{19stat|}}}|20={{{20|}}}|20d={{{20d|}}}|20def={{{20def|}}}|20stat={{{20stat|}}} | |
| − | + | |21={{{21|}}}|21d={{{21d|}}}|21def={{{21def|}}}|21stat={{{21stat|}}}|22={{{22|}}}|22d={{{22d|}}}|22def={{{22def|}}}|22stat={{{22stat|}}} | |
| − | + | |23={{{23|}}}|23d={{{23d|}}}|23def={{{23def|}}}|23stat={{{23stat|}}}|24={{{24|}}}|24d={{{24d|}}}|24def={{{24def|}}}|24stat={{{24stat|}}} | |
| − | | | + | |25={{{25|}}}|25d={{{25d|}}}|25def={{{25def|}}}|25stat={{{25stat|}}}|26={{{26|}}}|26d={{{26d|}}}|26def={{{26def|}}}|26stat={{{26stat|}}} |
| − | |name={{{name|{{ | + | |27={{{27|}}}|27d={{{27d|}}}|27def={{{27def|}}}|27stat={{{27stat|}}}|28={{{28|}}}|28d={{{28d|}}}|28def={{{28def|}}}|28stat={{{28stat|}}} |
| − | } | + | |29={{{29|}}}|29d={{{29d|}}}|29def={{{29def|}}}|29stat={{{29stat|}}}|30={{{30|}}}|30d={{{30d|}}}|30def={{{30def|}}}|30stat={{{30stat|}}} |
| − | + | |name={{{name|}}}|desc={{{desc|}}}|namespace={{{namespace|}}}|usergroup={{lc:{{{usergroup|}}}}}|placement={{{placement|}}}|usage-notes={{{usage-notes|}}}|type={{{type|}}}|example={{{example|}}}|example2={{{example2|}}}|i18n-method={{{i18n-method|}}}|i18n-desc={{{i18n-desc|}}}|i18n-mediawiki-msg={{{i18n-mediawiki-msg|}}}|seealso={{{seealso|}}}|setscats={{{setscats|}}}|lines={{{lines|}}}|shorthand={{{shorthand|}}}|relieson={{{relieson|}}}|docsub-override={{{docsub-override|}}}|docsub-page={{{docsub-page|}}}|mustbesubst={{{mustbesubst|}}} | |
| − | + | }}</includeonly>__NOEDITSECTION__<noinclude> | |
| − | | | + | {{documentation}} |
| − | | {{ | + | |
| − | + | </noinclude> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }}</includeonly><noinclude>{{ | ||
Latest revision as of 20:58, 13 September 2020
The template provides a uniform way to provide basic information about the use of a template.
Usage
{{TemplateBox
|1=
|1d=
|1def=
|1stat=
|name=
|desc=
|namespace=
|usergroup=
|placement=
|usage-notes=
|type=
|example=
|i18n-method=
|i18n-desc=
|i18n-mediawiki-msg=
|seealso=
|setscats=
|lines=
|shorthand=
|relieson=
|mustbesubst=
}}
Parameters
| Parameter name | Description | Default value | required or optional?
|
|---|---|---|---|
| parameter #1 (1) | parameter name (similarly 2, 3, …, up to 30) | empty | optional |
| 1d | description of the parameter (similarly 2d, 3d, …, up to 30d) | empty | optional |
| 1def | default value for the parameter (similarly 2def, 3def, …, up to 30def) | empty | optional |
| 1stat | status of the parameter (similarly 2stat, 3stat, …, up to 30stat); possible values:
|
optional | optional |
| name | name of the template (needed for viewing the documentation on another page than the template page, in particular for viewing the documentation page separately) | {{PAGENAME}} | required |
| desc | description of what the template does | empty | required |
| namespace | namespaces, the template is intended to be used in; possible values:
Any other values will show as “unknown”. |
no namespace specified | required |
| usergroup | usergroup that is meant to use the template; possible values:
|
no user group specified | required |
| placement | placement on the page. Possible values:
|
empty | optional |
| usage-notes | notes about the correct usage of the template | empty | optional |
| type | what type is the template (infobox, formatting, licence tag, …) | empty | optional |
| example | example use (works with a single unnamed parameter only) | empty | optional |
| i18n-method | method the localization is achieved by. Known values:
|
empty | optional |
| i18n-desc | additional info about the localization | empty | optional |
| i18n-mediawiki-msg | When using “mediawiki-msg” as method, optionally put the name of the message here. Falls back to:
|
empty | optional |
| seealso | relevant links (put in a list of them) | empty | optional |
| setscats | what categories are automatically set by the template (put in a linked list of them) | one | optional |
| lines | are the parameters typically put into new lines or all on one line. Possible values:
|
empty | optional |
| shorthand | shorthand for easy use (redirects to main template) | empty | optional |
| relieson | list of templates on which the template's basic functionality relies | empty | optional |
| mustbesubst | Set to "yes" (or any value) if the template must be substituted. This puts "subst:" into the template example under "usage". | empty | optional |
Additional information
The template is intended to be used in the following namespaces: the Template namespace
The template is intended to be used by the following user groups: all users
Placement:
in the '/doc' subpage of a template
Localization
English ∙
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:TemplateBox/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:TemplateBox/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:TemplateBox/en default=Template:TemplateBox/LANGCODE </inputbox>
Complications
( NOTE : the {{sed|1}} template links appears HERE : >>> ) Template:Sed