Template:Checkmns/doc: 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
No edit summary
m (5 revisions imported: Import from https://sims.wikia.com)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
;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.
;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: {{T|Checkmns|code to include if the article is in the main namespace}} or {{T|Checkmns|code to include if the article is in the main namespace|code to include if it is not in the main namespace}}
;Syntax: {{T|Checkmns|code to include if the article is in the main namespace}} or {{T|Checkmns|code to include if the article is in the main namespace|code to include if it is not in the main namespace}}
;Example:
;Example:
{{T|Checkmns|category}} or <nowiki><includeonly></nowiki>{{T|Checkmns|category}}<nowiki></includeonly></nowiki> if included in templates.
{{T|Checkmns|category}} or <nowiki><includeonly></nowiki>{{T|Checkmns|category}}<nowiki></includeonly></nowiki> if included in templates.
;See also
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
* {{t|Checkfns}} for Fanon namespace.
* {{t|Checkuns}} for User namespace. <includeonly>[[Category:Namespace checking templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 23:59, 23 February 2019

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