Template:Pagetype: Difference between revisions
 >TheDoyen  (From wikipedia)  | 
				 (Created page with "{{<includeonly>safesubst:</includeonly>#invoke:pagetype|main}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>")  | 
				||
| Line 1: | Line 1: | ||
{{  | {{<includeonly>safesubst:</includeonly>#invoke:pagetype|main}}<noinclude>  | ||
}}<noinclude>  | |||
{{documentation}}  | {{documentation}}  | ||
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->  | |||
</noinclude>  | </noinclude>  | ||
Revision as of 15:44, 27 August 2024
Lua error in package.lua at line 80: module 'Module:Wikitext Parsing' not found.
This template is used to identify what kind of page it or its subject page is.
Usage
{{pagetype | class | page= }}
Parameters
- 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
| 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 |