Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Template rating: Difference between revisions

Template page
Created page with "{{Module other |1 = {{Ombox |type = {{#switch: {{{1|}}} |beta|b = style<!--minor warning--> |release|r|general|g = notice |protected|protect|p = protection |#default = content<!--major warning--> }} |style = |textstyle = |image = File:{{#switch: {{{1|}}} |pre-alpha|prealpha|pa = Ambox warning blue construction |alpha|a = Greek lc alpha icon |beta|b = Greek lc beta icon |release|r|general|g = Green check |protected|protect..."
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Module other
<includeonly>{{#if:{{{1|}}}<!-- Escape empty required first unnamed parameter -->|{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}|page={{{demopage|}}}}}
|1 = {{Ombox
|m
  |type = {{#switch: {{{1|}}}
|t = <!-- ***** IF IN MODULE OR TEMPLATE NAMESPACE ***** -->{{ombox
    |beta|b = style<!--minor warning-->
| type      = notice
    |release|r|general|g = notice
| image     = {{#switch: {{lc:{{{1|}}}}}
    |protected|protect|p = protection
  | pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]]
    |#default = content<!--major warning-->
  | alpha | a                               = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]]
    }}
  | beta | b                                 = [[File:Greek lc beta icon.svg|class=skin-invert|40x40px|link=|alt=]]
  |style =
  | release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]]
  |textstyle =
  | broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]]
  |image = [[File:{{#switch: {{{1|}}}
  | deprecated | d | defunct = [[File:Historical.svg|40x40px|link=|alt=]]
    |pre-alpha|prealpha|pa = Ambox warning blue construction
    |alpha|a = Greek lc alpha icon
    |beta|b = Greek lc beta icon
    |release|r|general|g = Green check
    |protected|protect|p = Padlock{{#switch: {{#invoke:Effective protection level
        |edit
|2 = {{#switch: {{SUBPAGENAME}}
          |doc|sandbox = {{FULLBASEPAGENAME}}
          |#default= {{FULLPAGENAME}}
          }}
        }}
      |autoconfirmed = -silver
      |accountcreator|templateeditor = -pink
      |#default =
      }}
     }}.svg|40x40px|link=]]
  |text = {{#switch: {{{1|}}}
    |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.<!--
    -->{{#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}}]]
        }}
      }}
    |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-->
      |#default = {{#ifeq: {{{nocat|}}} | true
        | <!--No category if user sets nocat=true-->
        | [[Category:Modules in alpha|{{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.<!--
    -->{{#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 beta|{{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 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-->
      |#default = {{#ifeq: {{{nocat|}}} | true
        | <!--No category if user sets nocat=true-->
        | [[Category:Modules for general use|{{PAGENAME}}]]
        }}
      }}
    |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-->
      |#default = {{#ifeq: {{{nocat|}}} | true
        | <!--No category if user sets nocat=true-->
        | [[Category:Modules subject to page protection|{{PAGENAME}}]]
        }}
      }}
    |#default = {{Error|1={{Tl|Module rating}} "{{{1|}}}" is invalid or not specified.}}
    }}
   }}
   }}
|2 = {{Error|Error: {{Tl|Module rating}} must be placed in the Module namespace.}}
| style    =
|demospace = {{{demospace|<noinclude>module</noinclude>}}}
| textstyle =
}}<noinclude>{{Documentation}}<!--Categories go on the /doc subpage, and interwikis go in Wikidata.--></noinclude>
| text      = {{#switch: {{lc:{{{1|}}}}}
  | pre-alpha | prealpha | pa | experimental = This [[w:Wikipedia:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}|{{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}]] is rated as [[:Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s in pre-alpha development|pre-alpha]]. It is incomplete and may or may not be in active development. Do not use it in [[w:Wikipedia:Article namespace|article namespace]] pages. A {{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}} 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.
  | alpha | a                = This [[w:Wikipedia:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}|{{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}]]  is rated as [[:Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s in alpha|alpha]]. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome.
  | beta | b                  = This [[w:Wikipedia:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}|{{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}]]  is rated as [[:Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s in beta|beta]]. It is considered ready for widespread use, but as it is still relatively new, it should be applied with some caution to ensure results are as expected.
  | release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = This [[w:Wikipedia:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}|{{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}]]  is rated as [[:Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s for general use|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 [[w:Wikipedia:Help pages|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 [[w:Wikipedia:Template sandbox and test cases|sandbox testing]] rather than repeated trial-and-error editing.
  | broken | br | unstable    = This [[w:Wikipedia:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}|{{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}]]  is rated as [[:Category:Unstable {{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}s|unstable]]. It has missing dependencies, compatibility issues, or output errors that make it unusable. Editors are encouraged to [[Special:EditPage/{{FULLPAGENAME}}|improve its compatibility]] or [[w:Wikipedia:Templates for discussion|nominate it for deletion]] if it cannot be fixed.
  | deprecated | d | defunct  = This [[w:Wikipedia:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}|{{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}]]  is rated as '''[[:Category:Deprecated {{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}s|deprecated]]''' and defunct.{{#if:{{{replaced|}}}|{{space}}It is recommended editors use [[{{{replaced}}}]].}}{{#if:{{{message|}}}|{{space}}{{{message}}}}}
  | #default                  = {{error|Page using [[Template:Template rating]] with <u>invalid</u> template or module rating in {{para|1}} parameter.}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]
  }}
}}<!-- Categorize.
-->{{#if:{{{demopage|}}}{{{demospace|}}}||
      {{#switch: {{lc:{{SUBPAGENAME}}}}
        | doc | sandbox =<!-- No category for /doc or /sandbox subpages -->
        | {{#ifeq: {{{nocat|}}} | true
            | <!-- No category if user sets nocat=true -->
            | {{#switch: {{lc:{{{1|}}}}}
                | pre-alpha | prealpha | pa | experimental = [[Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s in pre-alpha development|{{PAGENAME}}]]
                | alpha | a                                = [[Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s in alpha|{{PAGENAME}}]]
                | beta | b                                = [[Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s in beta|{{PAGENAME}}]]
                | release | r | general | g | stable | protected | p | semiprotected | semiprotect | semi = [[Category:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}s for general use|{{PAGENAME}}]]
                | deprecated | d | defunct = [[Category:Deprecated {{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}s|{{PAGENAME}}]]
| broken | br | unstable = [[Category:Unstable {{lc:{{NAMESPACE:{{{demopage|{{FULLPAGENAME}}}}}}}}}s|{{PAGENAME}}]]
              }}
          }}
      }}
}}
| #default = <!-- ***** Error not in Template or Module namespaces ***** -->{{if preview|1={{error|Error: {{tl|Template rating}} can only be used on pages in the [[w:Wikipedia:Template namespace|Template:]] or [[w:Wikipedia:Module namespace|Module: namespaces]].}}}}[[Category:Pages with templates in the wrong namespace]]
}}<!-- 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}}: -->{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}}}
|t|m = {{#if:{{{suppress-pp|}}}
          |
          |{{#switch:{{#invoke:Effective protection level|edit|1={{{demopage|{{FULLPAGENAME}}}}}}}
                |*|user = <!-- If not protected page, do nothing. -->
                |#default = {{#ifeq:{{lc:{{SUBPAGENAME}}}}|doc
                    |<!-- {{#if:{{{2|}}}{{{doc-reason|}}}{{{3|}}}{{{doc-action|}}} --><!--
                      --><!-- | -->{{pp|{{{2|{{{doc-reason|}}}}}}|action={{{3|{{{doc-action|}}}}}}}}<!--
                  --><!-- }} -->
                -->|{{pp|1={{{reason|{{{doc-reason|}}}}}}|action={{{action|{{{doc-action|}}}}}}|demolevel={{{demolevel|}}}}}<!--
            -->}}<!--
        -->}}<!--
    -->}}
|#default = <!-- If not in template or module namespace, do nothing
-->}}<!--
  End template, start tracking.
-->{{#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}}]]}}}}
| preview = Page using [[Template:Template rating]] with unknown parameter "_VALUE_"
| ignoreblank=y | demospace | demopage | 1 | 2 | 3 | reason | action | doc-reason | doc-action | nocat | replaced | message | demolevel | suppress-pp | demopage
}}</includeonly><!-- End tracking. --><noinclude>
{{template rating/sandbox|release|nocat=true|demospace=template|demopage=template:template rating|demolevel=edit}}
{{mbox|text=The above template is a demo.}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.