Template:Heavily used template/doc: Difference between revisions
More actions
m Revert to revision 23144309 dated 2009-07-04 07:28:46 by The Evil IP address using popups |
adjust |
||
| (33 intermediate revisions by 16 users not shown) | |||
| Line 1: | Line 1: | ||
{{TemplateBox | <noinclude>{{high-use|3=+}}<!-- 350,000+ transclusions in 2025! --></noinclude>{{TemplateBox | ||
|1=1 | |||
|1label-en=talk page | |||
|1d-en=The full name of a template talk page, e.g. “Template talk:Xyz”. <!-- | |||
When this parameter is not specified, the name of the page (up to the first slash “/”) will be used. --> | |||
|1def= | |||
|1type=wiki-page-name | |||
|1stat=optional- | |||
|2=2 | |||
|2label-en=sandbox page | |||
|2d-en=The full name of a template sandbox page. <!-- | |||
When this parameter is not specified, the name of the page (up to the first slash “/”) will be used. --> | |||
|2def= | |||
|2type=wiki-page-name | |||
|2stat=optional- | |||
|3=3 | |||
|3label-en=very heavily | |||
|3d-en=any value when it is '''very''' heavily used, e.g. <nowiki>{{Heavily used template|3=✔}}</nowiki> | |||
|3def= | |||
|3type=string | |||
|3stat=optional- | |||
|4=edit | |||
|4label-en=editparm | |||
|4d-en=creates a link for editing, when any value, e.g. <nowiki>{{Heavily used template|edit=✔}}</nowiki> | |||
|4def= | |||
|4type=string | |||
|4stat=optional- | |||
|name=Heavily used template | |name=Heavily used template | ||
|desc=This template marks all templates that are heavily used and should only be edited if needed. | |desc-en=This template marks all templates that are heavily used and should only be edited if needed. | ||
|desc-it=Questo template marca tutti i template che sono ampiamente usati e dovrebbero essere modificati solo se necessario. | |||
{{Mbox|type=serious|textstyle=text-align:center;|text=Don't use this template ''directly'' <code><nowiki><noinclude></nowiki></code> within the template code !<br>'''Use this template''' <code><nowiki><includeonly></nowiki></code> '''by the template documentation only'''.}} | |||
|namespace=template | |namespace=template | ||
|usergroup=admin | |usergroup=admin | ||
|usage-notes=This template is intended to be placed | |usage-notes={{mbox|style=width:auto; margin:0 10%;|type=delete|image=|text=This template is intended to be placed inside an '''{{tag|includeonly|o}} section ''' {{color|#bf3c2c|'''at the top of the documentation subpage'''}} of highly used templates: | ||
<div style="margin-left:1em; margin-top:4px; margin-bottom:4px;"><code><nowiki><includeonly>{{Heavily used template}}</includeonly></nowiki></code></div> | |||
Typically, this should be reserved for those with {{mono|{{FORMATNUM:{{#expr:ceil({{NUMBEROFPAGES:R}}/500)}}}}}} or more transclusions (on at least 1 in 500 pages<!-- , or very essential templates -->). See the [[Special:MostLinkedTemplates]].}} | |||
|type= | |type= | ||
|example= | |example= | ||
|i18n-method=autotranslate | |i18n-method=autotranslate | ||
|i18n-desc= | |i18n-desc= | ||
|seealso= | |seealso=*{{t0|Use sandbox|-}} | ||
|setscats= | *{{T0|Heavily used module|-}} | ||
|setscats=* {{C|Heavily used templates}} (or {{C|Very heavily used templates}} if Parameter 3 is not empty) | |||
|lines=one | |lines=one | ||
|shorthand= | |shorthand=High-risk | ||
|relieson= | |relieson= | ||
}} | |useTemplateData=only | ||
}}<includeonly> | |||
[[Category:Template namespace templates]] | |||
[[Category:Internationalised marker templates]] | |||
[[Category:Template header templates]] | |||
</includeonly> | |||
Latest revision as of 13:34, 16 August 2025
This template marks all templates that are heavily used and should only be edited if needed.
The template automatically sets the following categories:
- Heavily used templates (or Very heavily used templates if Parameter 3 is not empty)
Usage
{{Heavily used template}}
Or use the shorthand
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
This template marks all templates that are heavily used and should only be edited if needed.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| talk page | 1 | The full name of a template talk page, e.g. “Template talk:Xyz”. | Page name | optional |
| sandbox page | 2 | The full name of a template sandbox page. | Page name | optional |
| very heavily | 3 | any value when it is '''very''' heavily used, e.g. {{Heavily used template|3=✔}} | String | optional |
| editparm | edit | creates a link for editing, when any value, e.g. {{Heavily used template|edit=✔}} | String | 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: Administrators
See also
- Template:Use sandbox
- Template:Heavily used module
Localization
This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Heavily used template/layout.
To add your language to the list of languages supported by this template, please copy the code of Template:Heavily used template/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.