Jump to content

Template:Template rating: Difference between revisions

From Fifth Empire Wiki
deprecate
remove the {{#ifeq:{{lc:{{SUBPAGENAME}}}}|doc|<!--do not show protection level of the module on the doc page, use the second and optionally third parameter if the doc page is also protected -->{{#if:{{{2|}}}|{{Pp|{{{2}}}|action={{{3|}}}}}}}
Line 1: Line 1:
{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|<noinclude>template</noinclude>}}}}}
{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|<noinclude>template</noinclude>}}}}}
|m = <!-- ***** IF IN MODULE NAMESPACE ***** -->{{#ifeq:{{lc:{{SUBPAGENAME}}}}|doc|<!--do not show protection level of the module on the doc page, use the second and optionally third parameter if the doc page is also protected -->{{#if:{{{2|}}}|{{Pp|{{{2}}}|action={{{3|}}}}}}}|{{ombox
|m = <!-- ***** IF IN MODULE NAMESPACE ***** -->{{ombox
  | type      = notice
  | type      = notice
  | image    = {{#switch: {{lc:{{{1|}}}}}
  | image    = {{#switch: {{lc:{{{1|}}}}}
Line 43: Line 43:
     }}
     }}
}}<!-- 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|}}}}}<!--  
}}<!-- 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

Revision as of 04:53, 9 September 2025

Template:Template rating/protected