Template:Pagetype
From Kerbal Space Program Wiki
template
This template uses material from the Wikipedia template Template:Pagetype, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors). | Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
Error creating thumbnail: /bin/bash: rsvg-convert: command not found |
This template is used on a very large number of pages. To avoid large-scale disruption and unnecessary server load, any changes to it should first be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can then be added to this page in a single edit. Please consider discussing changes on the talk page before implementing them. |
This template is used to identify what kind of page it or its subject page is.
Contents
Usage
{{pagetype | class | page= }}
Parameters
- page
The name of a page. The default is the current page.
- 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.
Output
Namespace of page | class | Output |
---|---|---|
Article & Talk | disambig, disamb, dab | page |
redirect, redir | ||
na | ||
page | ||
anything else | article | |
User & User talk | anything | page |
MediaWiki & MediaWiki talk | ||
Help & Help talk | ||
Portal & Portal talk | ||
Project & Project talk | ||
Module & Module talk | ||
File & File talk | anything | file |
Template & Template talk | anything | template |
Category & Category talk | anything | category |
Template data
<templatedata> {
"description": "Identify whether the page is an article, file, category, page, or template.", "params": { "1": { "label": "Class", "description": "Class is used to distinguish between different non-article pages in mainspace. 'disambig', 'disamb', 'dab', 'redirect', 'redir', 'portal', 'project', 'na', 'book' give \"Page\"; 'image', 'file' gives \"File\"; 'template', 'temp', 'templ' gives \"Template\", 'category', 'cat', 'categ' gives \"category\".", "type": "string", "required": false }, "page": { "label": "Page name", "description": "The name of a page", "type": "string", "required": false } }
} </templatedata>
The above documentation is transcluded from Template:Pagetype/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |