Template:Module rating/en: Difference between revisions
Updating to match new version of source page |
m 1 revision imported: Module:String |
(No difference)
| |
Latest revision as of 14:27, 27 August 2025
<languages />
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.{{#if:This template is used to rate Lua modules by quality. It is placed at the top of the module's /doc subpage. It produces a message informing users about the rating system, and it also places the module into a tracking category.
Usage
Basic usage: Template:Pre
Without categories: Template:Pre
If <templatestyles src="Template:Mono/styles.css"></templatestyles>{{[[Template:{{safesubst:#if:|{{{SISTER}}}:Template:Module rating|Module rating}}|{{safesubst:#if:|{{{SISTER}}}:Template:Module rating|Module rating}}]]}} is used outside the Module namespace, an error message is shown: {{#switch:
{{#if:
|
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch:
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch:
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }}
}}
| #default = Template:Error
}} |
| other | #default = Template:Error }}
Ratings
The rating should be placed in the first positional parameter. There are five different ratings: pre-alphaTemplate:IntalphaTemplate:IntbetaTemplate:IntreleaseTemplate:IntTemplate:Intprotected. There are also short alias codes for each of the ratings.
Template:(! class="wikitable"
! Rating
! Aliases
! Result
|-
| pre-alpha
| prealphapa
| {{#switch:
{{#if:Module
| module
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch: pre-alpha
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch: pre-alpha
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| #default = Template:Error
}} |
| other
| #default = Template:Error
}}
|-
| alpha
| a
| {{#switch:
{{#if:module
| module
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch: alpha
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch: alpha
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| #default = Template:Error
}} |
| other
| #default = Template:Error
}}
|-
| beta
| b
| {{#switch:
{{#if:module
| module
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch: beta
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch: beta
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| #default = Template:Error
}} |
| other
| #default = Template:Error
}}
|-
| release
| rgeneralg
| {{#switch:
{{#if:module
| module
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch: release
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch: release
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| #default = Template:Error
}} |
| other
| #default = Template:Error
}}
|-
| protected
| protectp
| {{#switch:
{{#if:module
| module
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch: protected
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch: protected
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| #default = Template:Error
}} |
| other | #default = Template:Error }} |- | Anything else or if missing | | {{#switch:
{{#if:module
| module
| {{#ifeq:Template|Module
| module
| other
}}
}}
| module = <templatestyles src="Module:Message box/ombox.css"></templatestyles>
{{#switch: prdaskidkated
| pre-alpha | prealpha | pa = File:OOjs UI icon text-style.svg | alpha | a = File:OOjs UI icon bold-a.svg | beta | b = File:OOjs UI icon bold-b.svg | release | r | general | g = File:OOjs UI icon check-constructive.svg | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = File:Semi-protection-shackle.svg | #default = File:OOjs UI icon alert-destructive.svg}} | {{#switch: prdaskidkated
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr:
{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:module rating/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: true | true | | }}
}}
| #default = Template:Error
}} |
| other | #default = Template:Error }} |- Template:!)
TemplateData
Categories
The template will put modules in one of the following categories, according to the rating specified:
- {{#ifeq:Category:Modules in pre-alpha development|
|
}}[[Special:MyLanguage/Category:Modules in pre-alpha development|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Modules in pre-alpha development/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0
|{{#ifeq:en|en
|Modules in pre-alpha development
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in pre-alpha development/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in pre-alpha development/Page_display_title}} | nsp = 0 }}
|Category:Modules in pre-alpha development
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in pre-alpha development/Page_display_title}} }}
}}
|{{#if:
|{{#if:Modules in pre-alpha development
|Modules in pre-alpha development
|Category:Modules in pre-alpha development
}}
|Category:Modules in pre-alpha development
}}
}}}}]]{{#ifeq:Category:Modules in pre-alpha development|
|
}}
- {{#ifeq:Category:Modules in alpha|
|
}}[[Special:MyLanguage/Category:Modules in alpha|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Modules in alpha/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0
|{{#ifeq:en|en
|Modules in alpha
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in alpha/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in alpha/Page_display_title}} | nsp = 0 }}
|Category:Modules in alpha
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in alpha/Page_display_title}} }}
}}
|{{#if:
|{{#if:Modules in alpha
|Modules in alpha
|Category:Modules in alpha
}}
|Category:Modules in alpha
}}
}}}}]]{{#ifeq:Category:Modules in alpha|
|
}}
- {{#ifeq:Category:Modules in beta|
|
}}[[Special:MyLanguage/Category:Modules in beta|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Modules in beta/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0
|{{#ifeq:en|en
|Modules in beta
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in beta/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in beta/Page_display_title}} | nsp = 0 }}
|Category:Modules in beta
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules in beta/Page_display_title}} }}
}}
|{{#if:
|{{#if:Modules in beta
|Modules in beta
|Category:Modules in beta
}}
|Category:Modules in beta
}}
}}}}]]{{#ifeq:Category:Modules in beta|
|
}}
- {{#ifeq:Category:Modules for general use|
|
}}[[Special:MyLanguage/Category:Modules for general use|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Modules for general use/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0
|{{#ifeq:en|en
|Modules for general use
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules for general use/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules for general use/Page_display_title}} | nsp = 0 }}
|Category:Modules for general use
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules for general use/Page_display_title}} }}
}}
|{{#if:
|{{#if:Modules for general use
|Modules for general use
|Category:Modules for general use
}}
|Category:Modules for general use
}}
}}}}]]{{#ifeq:Category:Modules for general use|
|
}}
- {{#ifeq:Category:Modules subject to page protection|
|
}}[[Special:MyLanguage/Category:Modules subject to page protection|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Modules subject to page protection/Page display title/en
|{{#ifexpr:{{#if:|1|0}} and 14!=0
|{{#ifeq:en|en
|Modules subject to page protection
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules subject to page protection/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules subject to page protection/Page_display_title}} | nsp = 0 }}
|Category:Modules subject to page protection
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Modules subject to page protection/Page_display_title}} }}
}}
|{{#if:
|{{#if:Modules subject to page protection
|Modules subject to page protection
|Category:Modules subject to page protection
}}
|Category:Modules subject to page protection
}}
}}}}]]{{#ifeq: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 {{safesubst:#if:|<templatestyles src="Template:Mono/styles.css"/>}}{{safesubst:#if:{{safesubst:#switch: 1
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|<templatestyles src="Template:Nowrap/styles.css"/>}}<{{safesubst:#if:|span class="monospaced {{safesubst:#if:{{safesubst:#switch: 1
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}"|code {{safesubst:#if:{{safesubst:#switch: 1
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|class="nowrap"}}}}>|{{safesubst:#if:nocat|nocat=}}true</{{safesubst:#if:|span|code}}>.
See also
- {{{{#ifeq:Template:Module-rating categories|
|
}}[[Special:MyLanguage/Template:module-rating categories|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Module-rating categories/Page display title/en
|{{#ifexpr:{{#if:0|1|0}} and 10!=0
|{{#ifeq:en|en
|Module-rating categories
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Template|Template:}}Module-rating categories/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Template|Template:}}Module-rating categories/Page_display_title}} | nsp = 0 }}
|Template:module-rating categories
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Template|Template:}}Module-rating categories/Page_display_title}} }}
}}
|{{#if:0
|{{#if:Module-rating categories
|Module-rating categories
|Template:module-rating categories
}}
|Template:module-rating categories
}}
}}}}]]{{#ifeq:Template:Module-rating categories|
|
}}}}
- Lua
- {{{{#ifeq:Template:Lua|
|
}}[[Special:MyLanguage/Template:Lua|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Lua/Page display title/en
|{{#ifexpr:{{#if:0|1|0}} and 10!=0
|{{#ifeq:en|en
|Lua
|{{#if:
|{{#ifeq:0|0
|
| String Module Error: Target string is empty
}}
|{{#if:{{ {{#if:|{{{template}}}|Translations:{{#if:Template|Template:}}Lua/Page_display_title}} | nsp = 0 }}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Template|Template:}}Lua/Page_display_title}} | nsp = 0 }}
|Template:Lua
}}
}}
}}
|{{ {{#if:|{{{template}}}|Translations:{{#if:Template|Template:}}Lua/Page_display_title}} }}
}}
|{{#if:0
|{{#if:Lua
|Lua
|Template:Lua
}}
|Template:Lua
}}
}}}}]]{{#ifeq:Template:Lua|
|
}}}}| [[Category:Template documentation pages{{#translation:}}]] }}