Jump to content

Template:Template rating: Difference between revisions

From Fifth Empire Wiki
adjust protected to show protected text for modules, and put shackle pictures for it not the general use one
add protected submodule
Line 44: Line 44:
       }}
       }}
     }}
     }}
}}{{Template rating/protected|nocat={{{nocat|false}}}|demospace={{{demospace|<noinclude>template</noinclude>}}}{{#if:{{{demopage|}}}|{{!}}demopage={{{demopage|}}}}}<!--  
}}<!-- 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|}}}}}<!--  
-->}}}}<!--
-->}}}}<!--
-->
-->
Line 83: Line 83:
   | #default                  = {{error|Please specify a <u>valid</u> template rating in {{param|1}}.}}
   | #default                  = {{error|Please specify a <u>valid</u> template rating in {{param|1}}.}}
   }}
   }}
}}
}}<!-- 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 ***** -->{{error|Error: {{tl|Template rating}} can only be used on pages in the Template or Module namespaces.}} [[Category:Pages with templates in the wrong namespace]]
| #default = <!-- ***** Error not in Template or Module namespaces ***** -->{{error|Error: {{tl|Template rating}} can only be used on pages in the Template or Module namespaces.}} [[Category:Pages with templates in the wrong namespace]]
}}<noinclude><!--End switch--><noinclude>
}}<noinclude><!--End switch--><noinclude>

Revision as of 04:45, 9 September 2025

Template:Template rating/protected