Template:Module rating: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
Anoop Rao (talk | contribs)
m 1 revision imported
No edit summary
Line 1: Line 1:
<includeonly>{{Module other|{{ombox
{{Module other
|1 = {{Ombox
| type = notice
| image = {{#switch: {{{1|}}}
|type = {{#switch: {{{1|}}}
|beta|b = style<!--minor warning-->
| pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=]]
|release|r|general|g = notice
| alpha | a = [[File:Alpha lowercase.svg|26x26px|link=]]
|protected|protect|p = protection
| beta | b = [[File:Greek lc beta.svg|40x40px|link=]]
|#default = content<!--major warning-->
| release | r | general | g = [[File:Green check.svg|40x40px|link=]]
}}
| protected | protect | p = [[File:Padlock{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=-silver|accountcreator|templateeditor=-pink|}}.svg|40x40px|link=]]
|style =
| semiprotected | semiprotect | semi =[[File:Padlock-silver.svg|40x40px|link=]]
|textstyle =
}}
|image = [[File:{{#switch: {{{1|}}}
| style =
|pre-alpha|prealpha|pa = Ambox warning blue construction
| textstyle =
|alpha|a = Greek lc alpha icon
| text = {{#switch: {{{1|}}}
|beta|b = Greek lc beta icon
| pre-alpha | prealpha | pa = This module is rated as [[:Category:Modules in pre-alpha development|pre-alpha]]. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. 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.<!--
|release|r|general|g = Green check
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
|protected|protect|p = Padlock{{#switch: {{#invoke:Effective protection level
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in pre-alpha development|{{PAGENAME}}]] }}
|edit
|2 = {{#switch: {{SUBPAGENAME}}
|doc|sandbox = {{FULLBASEPAGENAME}}
|#default= {{FULLPAGENAME}}
}}
}}
|autoconfirmed = -silver
|accountcreator|templateeditor = -pink
|#default =
}}
}}
}}.svg|40x40px|link=]]
| alpha | a = This module is rated as [[:Category:Modules in alpha|alpha]]. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome.<!--
|text = {{#switch: {{{1|}}}
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
|pre-alpha|prealpha|pa = This module is rated as [[:Category:Modules in pre-alpha development|pre-alpha]]. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. 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.<!--
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in alpha|{{PAGENAME}}]] }}
-->{{#switch: {{SUBPAGENAME}}
|doc|sandbox = <!--No category for /doc or /sandbox subpages-->
|#default = {{#ifeq: {{{nocat|}}} | true
| <!--No category if user sets nocat=true-->
| [[Category:Modules in pre-alpha development|{{PAGENAME}}]]
}}
}}
}}
| beta | b = This module is rated as [[:Category:Modules in beta|beta]], and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.<!--
|alpha|a = This module is rated as [[:Category:Modules in alpha|alpha]]. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
-->{{#switch: {{SUBPAGENAME}}
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in beta|{{PAGENAME}}]] }}
|doc|sandbox = <!--No category for /doc or /sandbox subpages-->
|#default = {{#ifeq: {{{nocat|}}} | true
| <!--No category if user sets nocat=true-->
| [[Category:Modules in alpha|{{PAGENAME}}]]
}}
}}
}}
| release | r | general | g = This module is rated as [[:Category:Modules for general use|ready for general use]]. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by [[WP:TESTCASES|sandbox testing]] rather than repeated trial-and-error editing.<!--
|beta|b = This module is rated as [[:Category:Modules in beta|beta]], and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
-->{{#switch: {{SUBPAGENAME}}
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules for general use|{{PAGENAME}}]] }}
|doc|sandbox = <!--No category for /doc or /sandbox subpages-->
|#default = {{#ifeq: {{{nocat|}}} | true
| <!--No category if user sets nocat=true-->
| [[Category:Modules in beta|{{PAGENAME}}]]
}}
}}
}}
| protected | protect | p = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[WP:SUBST|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[WP:PROTECT|protected]] from editing.<!--
|release|r|general|g = This module is rated as [[:Category:Modules for general use|ready for general use]]. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other MetaWiki resources as an option for new users to learn. To reduce server load and bad output, it should be improved by {{W|WP:TESTCASES|sandbox testing}} rather than repeated trial-and-error editing.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
-->{{#switch: {{SUBPAGENAME}}
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }}
|doc|sandbox = <!--No category for /doc or /sandbox subpages-->
|#default = {{#ifeq: {{{nocat|}}} | true
| <!--No category if user sets nocat=true-->
| [[Category:Modules for general use|{{PAGENAME}}]]
}}
}}
}}
| semiprotected | semiprotect | semi = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[WP:SUBST|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[WP:SEMI|semi-protected]] from editing.<!--
|protected|protect|p = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a {{W|Wikipedia:High-risk templates|highly visible module}} in use by a very large number of pages, or is {{W|WP:SUBST|substituted}} very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is {{W|WP:PROTECT|protected}} from editing.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
-->{{#switch: {{SUBPAGENAME}}
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }}
|doc|sandbox = <!--No category for /doc or /sandbox subpages-->
|#default = {{#ifeq: {{{nocat|}}} | true
| <!--No category if user sets nocat=true-->
| [[Category:Modules subject to page protection|{{PAGENAME}}]]
}}
}}
}}
| #default = {{error|Module rating is invalid or not specified.}}
|#default = {{Error|1={{Tl|Module rating}} "{{{1|}}}" is invalid or not specified.}}
}}
}}
}}
}}|{{error|Error: {{tl|Module rating}} must be placed in the Module namespace.}} [[Category:Pages with templates in the wrong namespace]]|demospace={{{demospace|<noinclude>module</noinclude>}}}}}</includeonly><noinclude>
|2 = {{Error|Error: {{Tl|Module rating}} must be placed in the Module namespace.}}
{{module rating|release|nocat=true|demospace=module}}
|demospace = {{{demospace|<noinclude>module</noinclude>}}}
}}<noinclude>{{Documentation}}<!--Categories go on the /doc subpage, and interwikis go in Wikidata.--></noinclude>
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
</noinclude>

Revision as of 21:22, 26 January 2024

TemplateStyles' src attribute must not be empty.

Template documentation