Template:Module rating: Difference between revisions
More actions
+autopatroller |
|||
| (18 intermediate revisions by 9 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{demospace|{{NAMESPACE}} }}}|{{ns:Module}}|{{ombox | <includeonly>{{#ifeq:{{{demospace|{{NAMESPACE}} }}}|{{ns:Module}}|{{ombox | ||
| type = notice | | lang = {{Fallback|Module rating/i18n}} | ||
| type = {{#switch: {{{1|}}} | |||
| pre-alpha | prealpha | pa | |||
| sandbox | s | |||
| alpha | a | |||
| beta | b | |||
| release | r | general | g | |||
| semiprotected | semiprotect | semi | |||
| protected | protect | p = notice | |||
| #default = serious | |||
}} | |||
| image = {{#switch: {{{1|}}} | | image = {{#switch: {{{1|}}} | ||
| pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=]] | | pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=]] | ||
| alpha | a = [[File: | | sandbox | s = [[File:Sandbox.svg|40x40px|link=]] | ||
| beta | b = [[File:Greek lc beta.svg|40x40px|link=]] | | alpha | a = [[File:Greek lc alpha icon.svg|26x26px|link=|class=skin-invert]] | ||
| beta | b = [[File:Greek lc beta icon.svg|40x40px|link=|class=skin-invert]] | |||
| release | r | general | g = [[File:Green check.svg|40x40px|link=]] | | release | r | general | g = [[File:Green check.svg|40x40px|link=]] | ||
| protected | protect | p = [[File:Full-protection-shackle-block.svg|40x40px|link=]] | | protected | protect | p = [[File:{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=Semi-protection-shackle|accountcreator|templateeditor=Template-protection-shackle-brackets 2|autopatroller=Extended-protection-shackle-account-pro-plus|sysop|#default=Full-protection-shackle-block}}.svg|40x40px|link=|alt=Protected]] | ||
| semiprotected | semiprotect | semi =[[File:Semi-protection-shackle.svg|40x40px|link=]] | | semiprotected | semiprotect | semi = [[File:Semi-protection-shackle.svg|40x40px|link=]] | ||
| #default = [[File:Ambox warning.svg|40x40px|link=]] | |||
}} | }} | ||
| textstyle = | | textstyle = | ||
| text = {{#switch: {{{1|}}} | | text = {{#switch: {{{1|}}} | ||
| pre-alpha | prealpha | pa = {{Module rating/i18n|pre-alpha}} | | pre-alpha | prealpha | pa = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|pre-alpha}} | ||
| alpha | a = {{Module rating/i18n|alpha }} | | sandbox | s = Sandbox: {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|pre-alpha}} | ||
| beta | b = {{Module rating/i18n|beta}} | | alpha | a = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|alpha }} | ||
| release | r | general | g = {{Module rating/i18n|release }} | | beta | b = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|beta}} | ||
| protected | protect | p = {{Module rating/i18n|protected }} | | release | r | general | g = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|release }} | ||
| | | semiprotected | semiprotect | semi = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|semiprotected }} | ||
| protected | protect | p = {{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|protected }} | |||
| #default = {{error|message={{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|invalid-rating}}}} | |||
}} | |||
| style = background:var(--background-color-interactive-subtle,#f8f9fa);color:var(--color-base,#202122); | |||
}} <!-- End of ombox --> | }} <!-- End of ombox --> | ||
{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | ||
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | {{#switch: {{{1|}}} | | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | {{#switch: {{{1|}}} | ||
| pre-alpha | prealpha | pa = [[Category:Modules in pre-alpha development]] | | pre-alpha | prealpha | pa = [[Category:Modules in pre-alpha development]] | ||
| sandbox | s = [[Category:Scribunto module sandboxes]] | |||
| alpha | a = [[Category:Modules in alpha]] | | alpha | a = [[Category:Modules in alpha]] | ||
| beta | b = [[Category:Modules in beta]] | | beta | b = [[Category:Modules in beta]] | ||
| Line 29: | Line 44: | ||
| protected | protect | p = [[Category:Modules subject to page protection]] | | protected | protect | p = [[Category:Modules subject to page protection]] | ||
}} }} | }} }} | ||
}}|{{error| | }}|{{error|message={{#invoke:Autotranslate|autotranslate|base=Module rating/i18n|error}} }} |demospace={{{demospace|}}}}}</includeonly><noinclude> | ||
{{module rating|release|nocat=true|demospace=Module}} | {{module rating|release|nocat=true|demospace=Module}} | ||
{{documentation}} | {{documentation}} | ||
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. --> | <!-- Categories go on the /doc subpage, and interwikis go in Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:11, 6 July 2026
This template is used to rate Lua modules by quality. It is placed at the top of the module's /doc subpage and the layout fits to {{Heavily used module}}. It produces a message informing users about the rating system, and it also places the module into a tracking category. There are seven different ratings: pre-alpha, sandbox, alpha, beta, release, semiprotected and protected. There are also short alias codes for each of the ratings.
Usage
{{Module rating |1= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | rating | One of pre-alpha, alpha, beta or release for quality, or one of protected or semiprotected, or an approved (see full docs) abbreviation for one of these. | empty | required |
nocat | Do not categorize | Set to true to disable categorization by rating. Normally leave blank. | empty | optional |
demospace | Fake namespace | Set to module to force template to display outside that namespace. Demonstration purposes only. | empty | optional |
|
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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 Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information This template is used to rate [[:w:WP:LUA|Lua modules]] by quality. <span style="font-weight:normal">It is placed at the top of the module's /doc subpage and the layout fits to [[:Template:Heavily used module|{{Heavily used module}}]]. It produces a message informing users about the rating system, and it also places the module into a tracking category. There are seven different ratings: '''pre-alpha''', '''sandbox''', '''alpha''', '''beta''', '''release''', '''semiprotected''' and '''protected'''. There are also short alias codes for each of the ratings.</span>
| ||||||||||||||||||||
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: all users
Placement: At the top of the page
Relies on:
{{Protection banner}}
See also
Localization
This template makes use of {{Autotranslate}} and the translate extension.
Ratings
| Rating | Aliases | Result |
|---|---|---|
pre-alpha |
prealphapa |
|
sandbox |
s |
|
alpha |
a |
|
beta |
b |
|
release |
rgeneralg |
|
semiprotected |
semiprotectsemi |
|
protected |
protectp |
|
| Anything else or if missing |
Categories
The template will put modules in one of the following categories, according to the rating specified:
- Category:Modules in pre-alpha development
- Category:Scribunto module sandboxes
- Category:Modules in alpha
- Category:Modules in beta
- Category:Modules for general use
- Category:Modules subject to page protection
These categories are suppressed on pages ending with /doc. To suppress categories on all pages, you can use the code |nocat=true.