Template:Template rating/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Template other|{{ombox | type = notice | image = {{#switch: {{{1|<noinclude>g</noinclude>}}} | pre-alpha | prealpha | pa = File:Ambox warning blue constructi..."
 
No edit summary
 
Line 1:
{{Documentation subpage}}
{{Template other|{{ombox
{{Commons Import}}
| type = notice
| image = {{#switch: {{{1|<noinclude>g</noinclude>}}}
| pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=]]
| alpha | a = [[File:Alpha lowercase.svg|26x26px|link=]]
| beta | b = [[File:Greek lc beta.svg|40x40px|link=]]
| release | r | general | g = [[File:Green check.svg|40x40px|link=]]
| protected | protect | p = [[File:{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=-silver|accountcreator|templateeditor=-pink|}}.svg|40x40px|link=]]
}}
| style =
| textstyle =
| text = {{#switch: {{{1|<noinclude>g</noinclude>}}}
| pre-alpha | prealpha | pa = This template is rated as [[:Category:Templates 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. Templates 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.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Templates in pre-alpha development|{{PAGENAME}}]] }}
}}
| alpha | a = This template is rated as [[:Category:Templates 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 -->
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Templates in alpha|{{PAGENAME}}]] }}
}}
| beta | b = This template is rated as [[:Category:Templates 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 -->
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Templates in beta|{{PAGENAME}}]] }}
}}
| release | r | general | g = This template is rated as [[:Category:Templates 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.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Templates for general use|{{PAGENAME}}]] }}
}}
| protected | protect | p = This template is [[:Category:Templates subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible template]] 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.<!--
-->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages -->
| {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Templates subject to page protection|{{PAGENAME}}]] }}
}}
| #default = {{error|Template rating is invalid or not specified.}}
}}
}}|{{error|Error: {{tl|Template rating}} must be placed in the Template namespace.}}|demospace={{{demospace|<noinclude>template</noinclude>}}}}}<noinclude>
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{documentation}}
== Usage ==
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
<pre>{{Template rating |1= |nocat= }}</pre>
</noinclude>
This template marks the status of a template as one of five levels:
* {{tlx|Template rating|pre-alpha}}
* {{tlx|Template rating|alpha}}
* {{tlx|Template rating|beta}}
* {{tlx|Template rating|release}}
* {{tlx|Template rating|protected}}
 
All parameter values are case-sensitive.
 
* <code>prealpha</code> and <code>pa</code> are aliases for <code>pre-alpha</code>.
* <code>a</code> is an alias for <code>alpha</code>.
* <code>b</code> is an alias for <code>beta</code>.
* <code>r</code>, <code>general</code> and <code>g</code> are aliases for <code>release</code>.
* <code>protect</code> and <code>p</code> are aliases for <code>protected</code>.
 
It also adds the template to one of five categories (unless the parameter <code>nocat</code> is set to <code>true</code>):
* {{clc|Templates in pre-alpha development}}
* {{clc|Templates in alpha}}
* {{clc|Templates in beta}}
* {{clc|Templates for general use}}
* {{clc|Templates subject to page protection}}
 
== TemplateData==
<templatedata>
{
"description": "Used to mark the status of a template as one of pre-alpha, alpha, beta, release, or protected",
"params": {
"1": {
"label": "Rating",
"description": "The rating level of the template",
"type": "string",
"required": true
},
"nocat": {
"label": "Nocat",
"description": "Suppress categories",
"type": "boolean",
"default": "no"
}
}
}
</templatedata>
<includeonly>{{sandbox other||
<!-- Categories gobelow onthis the /doc subpageline, andplease; interwikis go inat Wikidata. -->
[[Category:Template namespace templates|Rating]]
}}</includeonly>