×
Create a new article
Write your page title here:
We currently have 2,525 articles on Polcompball Wiki. Type your article name above or click on one of the titles below and start writing!



Polcompball Wiki

Template:NSGuard: Difference between revisions

imported>TheGhostOfInky
No edit summary
imported>TheGhostOfInky
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{#expr: {{NAMESPACENUMBER}} = 10 or {{NAMESPACENUMBER}} = 0}}|1|{{{1}}}|{{MessageBox
<includeonly>{{#ifeq: {{#expr: {{NAMESPACENUMBER}} = 10 or {{NAMESPACENUMBER}} = 0}}|1|{{{1}}}|{{MessageBox
|header     = Incorrect Namespace
|header = Incorrect Namespace
|text       = This infobox is exclusively for usage in the main namespace, use [[Template:{{{2}}}|'''<nowiki>{{ {{{2}}} }}</nowiki>''']] for non-canon ideologies.
|text = This infobox is exclusively for usage in the main namespace, {{{2}}}.
|image     = 6627178.png
|image = 6627178.png
|style = border-left-color: #F00
|style = border-left-color: #F00
}}
}}
[[Category:Pages Misusing Ideology Template]]
[[Category:Pages Misusing Namespace Restricted Templates]]
}}
}}</includeonly><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 00:20, 15 March 2023

This template guards a template to only be useable in the main and template namespaces, to prevent misuse by unaware users. Users who include templates guarded by this template will get a messagebox with a custom messsage of you choosing notifying them of what to do.

Syntax

{{NSGuard
|<content>
|<error message>
}}

Recent changes

  • Samtk5759 • 51 minutes ago
  • Samtk5759 • 53 minutes ago
  • Samtk5759 • 54 minutes ago
  • Samtk5759 • 55 minutes ago