Jump to content

Template:Template rating: Difference between revisions

From Fifth Empire Wiki
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|<noinclude>template</noinclude>}}}}}
<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                 = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]]
   | 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=]]
   | 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:
       }}
       }}
     }}
     }}
}}<!-- This will autodetect if module or template is protected, if it is it will display another ombox with this notice: -->{{Template rating/protected|nocat={{{nocat|false}}}|demospace={{{demospace|<noinclude>module</noinclude>}}}{{#if:{{{demopage|}}}|{{!}}demopage={{{demopage|}}}}}<!--
}}
-->}}<!--
-->
|t= <!-- ***** IF IN TEMPLATE NAMESPACE ***** -->{{ombox
|t= <!-- ***** IF IN TEMPLATE NAMESPACE ***** -->{{ombox
  | type      = notice
  | type      = notice
  | image    = {{#switch: {{lc:{{{1|<noinclude>g</noinclude>}}}}}
  | 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                 = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]]
   | 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=]]
   | beta | b                                 = [[File:Greek lc beta  icon.svg|class=skin-invert|40x40px|link=|alt=]]
   | mock-up | mockup | m     = [[File:Greek lc mu.svg|class=skin-invert|56x56px|link=|alt=]]
   | 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|<noinclude>g</noinclude>}}}}}
  | 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}}]]
   }}
   }}
}}<!-- This template will autodetect if module or template is protected, if it is it will display another ombox with this notice: -->{{Template rating/protected|nocat={{{nocat|false}}}|demospace={{{demospace|<noinclude>template</noinclude>}}}{{#if:{{{demopage|}}}|{{!}}demopage={{{demopage|}}}}}<!--
}}
-->}}
| #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}}]]<!-- Still display protection template if necessary: -->{{Template rating/protected|nocat={{{nocat|false}}}|demospace={{{demospace|<noinclude>template</noinclude>}}}{{#if:{{{demopage|}}}|{{!}}demopage={{{demopage|}}}}}<!--
}}<!-- 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 infobox, start tracking.
   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><noinclude><!--End switch--><noinclude>
}}</includeonly><!-- End tracking. --><noinclude>
{{template rating|release|nocat=true|demospace=template|demopage=Module:String}}
{{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

Lua error in Module:Effective_protection_level at line 64: attempt to index field 'TitleBlacklist' (a nil value).