Template:Template rating: Difference between revisions
Appearance
m Protected "Template:Template rating": High-risk template or module: 2150 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
update many things, uses {{pp}} now and not the protection subtemplate, corrected some mistakes |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}<!-- Escape empty required parameter -->|{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace| | <includeonly>{{#if:{{{1|}}}<!-- Escape empty required first unnamed parameter -->|{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}}} | ||
|m = <!-- ***** IF IN MODULE NAMESPACE ***** -->{{ombox | |m = <!-- ***** IF IN MODULE NAMESPACE ***** -->{{ombox | ||
| type = notice | | type = notice | ||
| image = {{#switch: {{lc:{{{1|}}}}} | | image = {{#switch: {{lc:{{{1|}}}}} | ||
| pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]] | | pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]] | ||
| alpha | a | | alpha | a = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]] | ||
| beta | b | | beta | b = [[File:Greek lc beta icon.svg|class=skin-invert|40x40px|link=|alt=]] | ||
| release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]] | | release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]] | ||
| deprecated | d | defunct | broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]] | | deprecated | d | defunct | broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]] | ||
| Line 20: | Line 20: | ||
| #default = {{error|Page using [[Template:Template rating]] with <u>invalid</u> module rating in {{para|1}} parameter.}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]] | | #default = {{error|Page using [[Template:Template rating]] with <u>invalid</u> module rating in {{para|1}} parameter.}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]] | ||
}} | }} | ||
}}<!-- | }}<!-- Categorize. | ||
-->{{#if:{{{demopage|}}}{{{demospace|}}}|| | -->{{#if:{{{demopage|}}}{{{demospace|}}}|| | ||
{{#ifeq: {{lc:{{FULLPAGENAME}}}} | sandbox | {{#ifeq: {{lc:{{FULLPAGENAME}}}} | sandbox | ||
| <!-- No category for user sandboxes --> | | <!-- No category for user sandboxes. #TODO: I don't think this is correct? --> | ||
| {{#switch: {{lc:{{SUBPAGENAME}}}} | | {{#switch: {{lc:{{SUBPAGENAME}}}} | ||
| doc | sandbox =<!-- No category for /doc or /sandbox subpages --> | | doc | sandbox =<!-- No category for /doc or /sandbox subpages --> | ||
| Line 30: | Line 30: | ||
| {{#switch: {{lc:{{{1|}}}}} | | {{#switch: {{lc:{{{1|}}}}} | ||
| pre-alpha | prealpha | pa | experimental = [[Category:Modules in pre-alpha development|{{PAGENAME}}]] | | pre-alpha | prealpha | pa | experimental = [[Category:Modules in pre-alpha development|{{PAGENAME}}]] | ||
| alpha | a = [[Category:Modules in alpha|{{PAGENAME}}]] | | alpha | a = [[Category:Modules in alpha|{{PAGENAME}}]] | ||
| beta | b = [[Category:Modules in beta|{{PAGENAME}}]] | | beta | b = [[Category:Modules in beta|{{PAGENAME}}]] | ||
| release | r | general | g | stable = [[Category:Modules for general use|{{PAGENAME}}]] | | release | r | general | g | stable | protected | p | semiprotected | semiprotect | semi = [[Category:Modules for general use|{{PAGENAME}}]] | ||
| deprecated | d | defunct | broken | br | unstable = [[Category:Unstable modules|{{PAGENAME}}]] | | deprecated | d | defunct | broken | br | unstable = [[Category:Unstable modules|{{PAGENAME}}]] | ||
}} | }} | ||
| Line 38: | Line 38: | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
|t= <!-- ***** IF IN TEMPLATE NAMESPACE ***** -->{{ombox | |t= <!-- ***** IF IN TEMPLATE NAMESPACE ***** -->{{ombox | ||
| type = notice | | type = notice | ||
| image = {{#switch: {{lc:{{{1| | | image = {{#switch: {{lc:{{{1|}}}}} | ||
| pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]] | | pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]] | ||
| alpha | a | | alpha | a = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]] | ||
| beta | b | | beta | b = [[File:Greek lc beta icon.svg|class=skin-invert|40x40px|link=|alt=]] | ||
| mock-up | mockup | m | | mock-up | mockup | m = [[File:Greek lc mu.svg|class=skin-invert|56x56px|link=|alt=]] | ||
| release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]] | | release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]] | ||
| deprecated | d | defunct | broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]] | | deprecated | d | defunct | broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]] | ||
| Line 53: | Line 51: | ||
| style = | | style = | ||
| textstyle = | | textstyle = | ||
| text = {{#switch: {{lc:{{{1| | | text = {{#switch: {{lc:{{{1|}}}}} | ||
| pre-alpha | prealpha | pa | experimental = This template is rated as [[:Category:Templates in pre-alpha development|pre-alpha]]. It is incomplete and may or may not be in active development. Do not use it in [[Wikipedia:Article namespace|article namespace]] pages. A template remains in pre-alpha until its developer, or another editor who adopts it if it is abandoned for some time, considers the basic structure complete.<!-- | | pre-alpha | prealpha | pa | experimental = This template is rated as [[:Category:Templates in pre-alpha development|pre-alpha]]. It is incomplete and may or may not be in active development. Do not use it in [[Wikipedia:Article namespace|article namespace]] pages. A template remains in pre-alpha until its developer, or another editor who adopts it if it is abandoned for some time, considers the basic structure complete.<!-- | ||
-->{{#switch: {{lc:{{SUBPAGENAME}}}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | -->{{#switch: {{lc:{{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}}]] }} | | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Templates in pre-alpha development|{{PAGENAME}}]] }} | ||
}} | }} | ||
| Line 77: | Line 75: | ||
| #default = {{error|Page using [[Template:Template rating]] with <u>invalid</u> module rating in {{para|1}} parameter.}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]] | | #default = {{error|Page using [[Template:Template rating]] with <u>invalid</u> module rating in {{para|1}} parameter.}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]] | ||
}} | }} | ||
}} | |||
| #default = <!-- ***** Error not in Template or Module namespaces ***** -->{{if preview|1={{error|Error: {{tl|Template rating}} can only be used on pages in the [[Wikipedia:Template namespace|Template:]] or [[Wikipedia:Module namespace|Module: namespaces]].}}}}[[Category:Pages with templates in the wrong namespace]] | | #default = <!-- ***** Error not in Template or Module namespaces ***** -->{{if preview|1={{error|Error: {{tl|Template rating}} can only be used on pages in the [[Wikipedia:Template namespace|Template:]] or [[Wikipedia:Module namespace|Module: namespaces]].}}}}[[Category:Pages with templates in the wrong namespace]] | ||
}}|{{If preview|1={{error|Page using [[Template:Template rating]] with <u>empty</u> {{para|1}} module rating parameter.}}}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]<!-- | }}<!-- End switch. -->|{{If preview|1={{error|Page using [[Template:Template rating]] with <u>empty</u> {{para|1}} module rating parameter.}}}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]<!-- | ||
--> | -->}}<!-- End if. Display protection template if necessary, this will obviously show it for /doc page too since it uses {{FULLPAGENAME}}: -->{{pp|1={{{reason|{{{doc-reason|}}}}}}|action={{{action|{{{doc-action|}}}}}}|demolevel={{{demolevel|}}}}}<!-- This subtemplate was replaced by just using {{pp}}: {{Template rating/protected|nocat={{{nocat|false}}}|demospace={{{demospace|<noinclude>module</noinclude>}}}{{#if:{{{demopage|}}}|{{!}}demopage={{{demopage|}}}}}}}--><!-- | ||
End | End template, start tracking. | ||
-->{{#invoke:Check for unknown parameters| check | -->{{#invoke:Check for unknown parameters| check | ||
| unknown = {{#if:{{{demopage|}}}{{{demospace|}}}||{{#switch:{{Namespace detect|template=t|module=m}}|m|t=[[Category:Pages using template rating template with unknown parameters|_VALUE_{{FULLPAGENAME}}]]}}}} | | unknown = {{#if:{{{demopage|}}}{{{demospace|}}}||{{#switch:{{Namespace detect|template=t|module=m}}|m|t=[[Category:Pages using template rating template with unknown parameters|_VALUE_{{FULLPAGENAME}}]]}}}} | ||
| preview = Page using [[Template:Template rating]] with unknown parameter "_VALUE_" | | preview = Page using [[Template:Template rating]] with unknown parameter "_VALUE_" | ||
| ignoreblank=y | demospace | demopage | 1 | 2 | 3 | reason | nocat | replaced | message | | ignoreblank=y | demospace | demopage | 1 | 2 | 3 | reason | action | doc-reason | doc-action | nocat | replaced | message | demolevel | ||
}}</includeonly | }}</includeonly><!-- End tracking. --><noinclude> | ||
{{template rating|release|nocat=true|demospace=template|demopage= | {{template rating|release|nocat=true|demospace=template|demopage=template:template rating|demolevel=}} | ||
{{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> | ||
Revision as of 08:20, 11 September 2025
| File:Green check.svg | This template is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
Lua error in Module:Effective_protection_level at line 64: attempt to index field 'TitleBlacklist' (a nil value).
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]