Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TemplateBox/doc: Difference between revisions

Template page
==Complication== A complication is that the template suppresses section editing links on the whole page about the documented template, even for paragraphs outside the part produced by this template Te
Template:Sed can be used (as is done here) to create an edit link anyway.
Line 231: Line 231:


==Complication==
==Complication==
A complication is that the template suppresses section editing links on the whole page about the documented template, even for paragraphs outside the part produced by this template TemplateBox.
{{sed|1}}
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. [[Template:Sed]] can be used (as is done here) to create an edit link anyway.

Revision as of 07:54, 20 September 2010

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

Template parameters

ParameterDescriptionDefaultStatus
1parameter name (similarly 2, 3, .., up to 20)emptyoptional
1ddescription of the parameter (similarly 2d, 3d, .., up to 20d)emptyoptional
1defdefault value for the parameter (similarly 2def, 3def, .., up to 20def)emptyoptional
1statstatus of the parameter (similarly 2stat, 3stat, .., up to 20stat); possible values:
required  
optional  
optional-
optional and not present in the standard form
deprecated  
optionaloptional
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 doesemptyrequired
namespacenamespaces, the template is intended to use inemptyrequired
usergroupusergroup that is meant to use the templateemptyrequired
placementplacement on the page. Possible values:
top  
bottom  
licence  
emptyoptional
usage-notesnotes about the correct usage of the templateemptyoptional
typewhat type is the template (infobox, formatting, licence tag, ...)emptyoptional
exampleexample use (works with a single unnamed parameter only)emptyoptional
i18n-methodmethod the localization is achieved by. Known values:
autotranslate
using {{Autotranslate}}
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
emptyoptional
i18n-descadditional info about the localizationemptyoptional
i18n-mediawiki-msgWhen using "mediawiki-msg" as method, optionally put the name of the message here. Falls back to: Wm-license-{{lc:{{BASEPAGENAME}}}}-textemptyoptional
seealsorelevant links (put in a list of them)emptyoptional
setscatswhat categories are automatically set by the template (put in a linked list of them)oneoptional
linesare the parameters typically put into new lines or all on one line. Possible values:
multi
multiple lines
one
one line
emptyoptional
shorthandshorthand for easy use (redirects to main template)emptyoptional
reliesonlist of templates on which the template's basic functionality reliesemptyoptional

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.


Complication

edit

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. Template:Sed can be used (as is done here) to create an edit link anyway.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.