Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 17:12, 21 April 2026 by Khalid (talk | contribs) (Created page with "<includeonly>{{#if:{{{1|}}}<!-- Escape empty required first unnamed parameter -->|{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}|page={{{demopage|}}}}} |m |t = <!-- ***** IF IN MODULE OR TEMPLATE NAMESPACE ***** -->{{ombox | type = notice | image = {{#switch: {{lc:{{{1|}}}}} | pre-alpha | prealpha | pa | experimental = 40x40px|link=|alt= | alpha | a =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Template rating/sandbox

   Template documentation (edit | history)
This is a template documentation subpage for Template:Template rating.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
"Template:Module rating" redirects here. It was merged into this template.

Template:Template redirect

Usage

Basic usage:

{{Template rating|rating}}

Without categories:

{{Template rating|rating|nocat=true}}

Template automatically detects if in module or template namespace, and displays the applicable notice.

Also detects if template or module protected from editing, the template will automatically display a message regarding that too. The reason can optionally be specified, it must be written in full using the Template:Para parameter. This must be a full message and not one word like the reasons on Template:Protection padlock § Reasons.

If the documentation subpage is also protected, {{Protection padlock}} can be manually generated on it when it is transcluded by declaring Template:Para the same value as you would enter in Template:Para in {{Protection padlock}}, and Template:Para the same as the parameter of the name which is the protection action—must be one of Template:Pval (default; for normal protection), Template:Pval (for move-protection) or Template:Pval (for pending changes): {{Template rating|rating|reason for documentation protection|action=the restricted action on documentation like move or edit}}

If Template:Tlc is used outside the Template or Module namespace, an error message is displayed instead and will be categorized under Template:Clc.

For templates, the rating Template:Para can be:

For modules, the rating Template:Para can be:

All parameter values are case-insensitive.

Template will not autocategorize if Template:Para set to Template:Pval.

Examples

{{Template ratingTemplate:\sandbox|pre-alpha|suppress-pp=true|nocat=true}} {{Template ratingTemplate:\sandbox|alpha|suppress-pp=true|nocat=true}} {{Template ratingTemplate:\sandbox|beta|suppress-pp=true|nocat=true}} {{Template ratingTemplate:\sandbox|release|suppress-pp=true|nocat=true}} {{Template ratingTemplate:\sandbox|broken|suppress-pp=true|nocat=true}} {{Template ratingTemplate:\sandbox|deprecated|suppress-pp=true|nocat=true}}

Module with protection

The protection is automatically detected, but this is what it would look like on Module:String for example which is fully-protected.

{{Template rating|release|reason=template|action=edit}}

{{Template ratingTemplate:\sandbox|release|demospace=module|demopage=Module:String|demolevel=edit|suppress-pp=true|nocat=true}}

TemplateData

Used to mark the status of a template as one of pre-alpha, alpha, beta, release, or protected

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Rating1

The rating level of the template or module.

Suggested values
pre-alpha alpha beta release broken deprecated
Stringrequired
Nocatnocat

Suppress categories.

Default
false
Example
true
Booleanoptional
Replacement (if deprecated)replaced

If module is set to deprecated, then give wikilink of module that replace it if one exists.

Example
[[Module:Example]]
Page nameoptional
Message (if deprecated)message

If module is set to deprecated, then give optional message to append.

Contentoptional
Suppress protection templatesuppress-pp

Suppress the protection template with any value.

Example
true
Stringoptional
Reason for protection (if protected)reason

Reason for protection; may be one of: blp, dispute, dmca, mainpage, office, reset, sock, template, usertalk, vandalism

Suggested values
vandalism template dispute dmca mainpage reset
Stringoptional
Reason for protection of /doc subpage (if protected)doc-reason 2

Reason for protection of doc subpage; may be one of: blp, dispute, dmca, mainpage, office, reset, sock, template, usertalk, vandalism

Suggested values
vandalism template dispute dmca mainpage reset
Stringoptional
Action restricted (if protected)action

Action which is restricted. Must be one of "edit" (for normal protection), "move" (for move-protection) or "autoreview" (for pending changes).

Suggested values
edit move autoreview
Stringoptional
Action restricted of /doc subpage (if protected)doc-action 3

Action which is restricted. Must be one of "edit" (for normal protection), "move" (for move-protection) or "autoreview" (for pending changes).

Suggested values
edit move autoreview
Unknownoptional
demospacedemospace

no description

Unknownoptional
demopagedemopage

no description

Unknownoptional
demoleveldemolevel

no description

Unknownoptional

Tracking categories

It autocategorizes into (unless Template:Para set to Template:Pval):

These categories are suppressed on pages ending with /doc and /sandbox. To suppress categories on all pages, you can use Template:Para.

Error tracking:

Template:Sandbox other