Template:Checkmns/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>A morris mNo edit summary |
sims>LostInRiverview mNo edit summary |
||
Line 5: | Line 5: | ||
;See also |
;See also |
||
* {{t|Checkfns}} for Fanon namespace. |
* {{t|Checkfns}} for Fanon namespace. |
||
* {{t|Checkuns}} for User namespace. <includeonly>[[Category: |
* {{t|Checkuns}} for User namespace. <includeonly>[[Category:Namespace checking templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 01:46, 22 December 2015
- 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