Template:Pagetype: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#switch:{{NAMESPACE:{{#if:{{{page|}}} |{{{page}}} |{{#ifeq:{{{subjectspace|}}}|yes |{{TALKPAGENAME}} |{{FULLPAGENAME}} }} }} }} |{{ns:Talk}} = {{#swit...") |
mNo edit summary |
||
Line 37: | Line 37: | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
[[Category:Templates]] |
Latest revision as of 21:31, 14 December 2012
article
[edit] Template documentation
This template is used on 4,500,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
This template is used to identify what kind of page it or its subject page is.
Usage[edit source]
{{pagetype | class | page= }}
Parameters[edit source]
- class
This unnamed parameter is optional and is used to distinguish between different non-article pages in mainspace (e.g. disambiguation pages and redirects). See below for details.
- page
The name of a page. The default is the current page.
- subjectspace
If set to yes then subjectspace pages will be treated the same as talkspace pages.
Output[edit source]
Namespace | class | Output |
---|---|---|
Talk | disambig, disamb, dab | page |
redirect, redir | ||
na | ||
anything else | article | |
User talk | anything | page |
MediaWiki talk | ||
Help talk | ||
Portal talk | ||
Project talk | ||
File talk | anything | file |
Template talk | anything | template |
Category talk | anything | category |
Any subjectspace | portal, project | page |
disambig, disamb, dab | ||
redirect, redir | ||
na | ||
image, file | file | |
template, temp, templ | template | |
category, cat, categ | category | |
anything else | article |