Jump to content

Teamplaid:TemplateBox/doc

O Uicipeid

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=
}}

Parameters

Parameter nameDescriptionDefault valuerequired or optional?

parameter #1 (1)parameter name (similarly 2, 3, .., up to 24) empty optional
1ddescription of the parameter (similarly 2d, 3d, .., up to 24d) empty optional
1defdefault value for the parameter (similarly 2def, 3def, .., up to 24def) empty optional
1statstatus of the parameter (similarly 2stat, 3stat, .., up to 24stat); possible values:
required  
optional  
optional-
optional and not present in the standard form
deprecated  
optional optional
namename 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
descdescription of what the template does empty required
namespacenamespaces, the template is intended to be used in; possible values:
all
talks
contents
Main
Talk
User
User talk
Commons
Commons talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Creator
Creator talk
Special

Any other values will show as “unknown”.

no namespace specified required
usergroupusergroup that is meant to use the template; possible values:
all
bot
administrator
admin
sysop
bureaucrat
crat
checkuser
no user group specified required
placementplacement on the page. Possible values:
top  
bottom  
licence  
empty optional
usage-notesnotes about the correct usage of the template empty optional
typewhat type is the template (infobox, formatting, licence tag, ...) empty optional
exampleexample use (works with a single unnamed parameter only) empty optional
i18n-methodmethod the localization is achieved by. Known values:
autotranslate
using {{autotranslate}} or applying a similar method
switch
using {{LangSwitch}} in the template itself
-
no localization needed
custommediawiki-msg
using MediaWiki namespace messages
mediawiki-msg
using MediaWiki namespace messages, translated on TranslateWiki
empty optional
i18n-descadditional info about the localization empty optional
i18n-mediawiki-msgWhen using “mediawiki-msg” as method, optionally put the name of the message here. Falls back to:

Wm-license-{{lc:{{BASEPAGENAME}}}}-text

empty optional
seealsorelevant links (put in a list of them) empty optional
setscatswhat categories are automatically set by the template (put in a linked list of them) one optional
linesare the parameters typically put into new lines or all on one line. Possible values:
multi
multiple lines
one
one line
empty optional
shorthandshorthand for easy use (redirects to main template) empty optional
reliesonlist of templates on which the template's basic functionality relies 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

Teamplaid:Lang links

This template is localized through {{Autotranslate}}. The layout of the template can be found under Teamplaid:TemplateBox/layout.

To add your language to the list of languages supported by this template, please copy the code of Teamplaid: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.


Complications

edit

English: A complication is that the template suppresses section editing links on the whole page of the documented template, and also on its documentation page, even for paragraphs outside the part produced by this template TemplateBox. Teamplaid:Sed can be used (as is done here) to create an edit link anyway.

Teamplaid:Bar


Teamplaid:De


Teamplaid:Pt