Sjabloon:Pagetype
Naar navigatie springen
Naar zoeken springen
article
[bewerken] [ ] Template documentation
This template is used on 4,500,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit. 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
{{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 | ||
Module 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 |
Template data
<templatedata> {
"description": "Identify whether the page is an article, file, category, page, or template.", "params": { "class": { "label": "Type of page", "description": "Class is used to distinguish between different non-article pages in mainspace (e.g. disambiguation pages and redirects)", "type": "string", "required": false }, "page": { "label": "Page name", "description": "The name of a page", "type": "string", "required": false }, "subjectspace": { "label": "Subjectspace page", "description": "If set to yes then subjectspace pages will be treated the same as talkspace pages.", "type": "string", "required": false } }
} </templatedata>
The above documentation is transcluded from Sjabloon:Pagetype/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |