Template:Checkmns/doc: Difference between revisions
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 |
|||
⚫ | |||
* {{t|Checkfns}} for Fanon namespace. |
|||
⚫ |