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
sims>A morris
mNo edit summary
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:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 00:36, 12 March 2011

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