Template:NSGuard: Difference between revisions
From Polcompball Wiki
Jump to navigationJump to search
Content added Content deleted
No edit summary |
m (10 revisions imported: Import NSGuard template) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{#expr: {{NAMESPACENUMBER}} = 10 or {{NAMESPACENUMBER}} = 0}}|1|{{{1}}}|{{ |
<includeonly>{{#ifeq: {{#expr: {{NAMESPACENUMBER}} = 10 or {{NAMESPACENUMBER}} = 0}}|1|{{{1}}}|{{MessageBox |
||
|header = Incorrect Namespace |
|||
|text = This infobox is exclusively for usage in the main namespace, {{{2}}}. |
|||
|image = 6627178.png |
|||
|style = border-left-color: #F00 |
|||
}} |
|||
[[Category:Pages Misusing Namespace Restricted Templates]] |
|||
}}</includeonly><noinclude> |
|||
{{Documentation}} |
|||
</noinclude> |
Latest revision as of 15:59, 9 July 2023
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
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> }}