Template:Checkmns: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>A morris
(Created page with '<includeonly>{{#ifeq:{{NAMESPACE}}||{{{category}}}|<!-- Not in Main Namespace -->}}</includeonly><noinclude>{{Documentation}}</noinclude>')
 
m (Protected "Template:Checkmns" ([Edit=Allow only administrators and content moderators] (indefinite) [Move=Allow only administrators and content moderators] (indefinite) [Delete=Allow only administrators and content moderators] (indefinite)))
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{NAMESPACE}}||{{{category}}}|<!-- Not in Main Namespace -->}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#ifeq:{{NAMESPACE}}||{{{1}}}|<!-- Not in Main Namespace -->{{{2|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 15:56, 10 March 2019

Template documentation (View · Edit · History · Purge)
Description
Checks if the page is in the main namespace and outputs what was passed if true. Useful for templates that can be used on articles in all or any namespace.
Syntax
{{Checkmns|<code to include if the article is in the main namespace>}} or {{Checkmns|<code to include if the article is in the main namespace>|<code to include if it is not in the main namespace>}}
Example

{{Checkmns|<category>}} or <includeonly>{{Checkmns|<category>}}</includeonly> if included in templates.

See also

Visit Template:Checkmns/doc to edit this text! (How does this work?) (Refresh this text - why?)