Difference between revisions of "Template:Incorrect namespace"

From LFS Manual
Jump to navigationJump to search
(Created page with "<includeonly>{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{SUBPAGENAME}}|sandbox||{{#ifeq:{{SUBPAGENAME}}|testcases||{{#ifeq:{{FULLPAGENAME}}|Wikipedia:Sandbox||{{#ifeq:{{FULLPAGE...")
 
 
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{SUBPAGENAME}}|sandbox||{{#ifeq:{{SUBPAGENAME}}|testcases||{{#ifeq:{{FULLPAGENAME}}|Wikipedia:Sandbox||{{#ifeq:{{FULLPAGENAME}}|Wikipedia:Template index/Redirect pages|| </includeonly>{{Mbox
+
<includeonly>{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{SUBPAGENAME}}|sandbox||{{#ifeq:{{SUBPAGENAME}}|testcases||{{#ifeq:{{FULLPAGENAME}}|LFS Manual:Sandbox||{{#ifeq:{{FULLPAGENAME}}|LFS Manual:Template index/Redirect pages|| </includeonly>{{Mbox
| type = content
+
| type = warning
| image = [[File:Ambox warning orange.svg|50px|link=|alt=]]
 
 
| text = {{Error|This template should be transcluded in the ''{{{1}}}'' namespace(s) only.}}
 
| text = {{Error|This template should be transcluded in the ''{{{1}}}'' namespace(s) only.}}
}}<includeonly>{{Category handler
+
}}<includeonly>[[Category:Pages with templates in the wrong namespace]]}}}}}}}}}}</includeonly><noinclude>
|all=[[Category:Pages with templates in the wrong namespace]]
 
|nocat={{{nocat|}}}
 
|category2={{{category|¬}}}
 
}}}}}}}}}}}}</includeonly><noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 10:58, 18 February 2026

Caution.png This template should be transcluded in the {{{1}}} namespace(s) only.
Template Info-Icon.png

Template documentation

View - Edit

This template is for use in other templates in conjunction with namespace detection. It adds pages to Category:Pages with templates in the wrong namespace. The template has been designed to not work in the template namespace so templates transcluding this template can be viewed normally.