Template:Incorrect namespace/doc: Difference between revisions

Content deleted Content added
Line 23:
 
{{Ombox|type=notice|text=Example text.}}
{{Ombox|type=content|image = [[File:Ambox warning orange.svg|50px]]|text={{Error|The aboveThis template should only be transcluded in the ''help'' namespace(s).}}}}
 
In the above example, {{tl|Help other}} is used to add pages in the ''help'' namespace to ''Category:Example category''. For pages outside the ''help'' namespace, '''<nowiki>{{Incorrect namespace|help}}</nowiki>''' is used to display the error message box and add the page to ''[[:Category:Pages with templates in the wrong namespace]]''. To omit the error category, use '''<nowiki>{{Incorrect namespace|help|nocat=true}}</nowiki>'''.