Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Pagetype/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
Move
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==TemplateData== {{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} {{TemplateData header|noheader=1}} <templatedata> { "description": "This template Identifies the type of a given page. It is highly customisable. By default it detects redirects, articles, files, templates, categories, and modules, and other types of page are displayed as \"page\".", "params": { "1": { "label": "Class", "description": "Class is used to distinguish between different non-article pages in mainspace. 'disambig', 'disamb', 'dab', 'na' and 'n/a' give \"page\". The values can be customised with the \"dab\" and \"na\" parameters.", "type": "string", "required": false, "suggestedvalues": [ "na" ] }, "page": { "label": "Page name", "description": "The name of the page to detect the type of. Defaults to the current subject page, or to the current page if the \"talk\" parameter is activated.", "type": "wiki-page-name", "required": false, "default": "{{SUBST:PAGENAME}}" }, "main": { "type": "string", "label": "Main namespace", "description": "When enabled, outputs \"article\" or custom text for the main namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "yes" }, "user": { "type": "string", "label": "User namespace", "description": "When enabled, outputs \"user page\" or custom text for the User namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "wikipedia": { "aliases": [ "project", "wp" ], "type": "string", "label": "Wikipedia namespace", "description": "When enabled, outputs \"project page\" or custom text for the Wikipedia namespace", "suggestedvalues": [ "yes", "no" ], "default": "no", "example": "custom" }, "file": { "type": "string", "aliases": [ "image" ], "label": "File namespace", "description": "When enabled, outputs \"file\" or custom text for the File namespace", "suggestedvalues": [ "yes", "no" ], "default": "yes", "example": "custom" }, "mediawiki": { "type": "string", "label": "MediaWiki namespace", "description": "When enabled, outputs \"interface page\" or custom text for the MediaWiki namespace", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "template": { "type": "string", "label": "Template namespace", "description": "When enabled, outputs \"template\" or custom text for the Template namespace", "suggestedvalues": [ "yes", "no" ], "default": "yes", "example": "custom" }, "help": { "type": "string", "label": "Help namespace", "description": "When enabled, outputs \"help page\" or custom text for the Help namespace", "suggestedvalues": [ "yes", "no" ], "default": "no", "example": "custom" }, "category": { "type": "string", "label": "Category namespace", "description": "When enabled, outputs \"category\" or custom text for the Category namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "yes" }, "portal": { "type": "string", "label": "Portal namespace", "description": "When enabled, outputs \"portal\" or custom text for the Portal namespace", "suggestedvalues": [ "yes", "no" ], "default": "no", "example": "custom" }, "timedtext": { "type": "string", "label": "TimedText namespace", "description": "When enabled, outputs \"Timed Text page\" or custom text for the TimedText namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "module": { "type": "string", "label": "Module namespace", "description": "When enabled, outputs \"module\" or custom text for the Module namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "yes" }, "special": { "type": "string", "label": "Special namespace", "description": "When enabled, outputs \"special page\" or custom text for the Special namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "media": { "type": "string", "label": "Media namespace", "description": "When enabled, outputs \"file\" or custom text for the Media namespace", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "talk": { "type": "string", "label": "All talk namespaces", "description": "When enabled, outputs \"talk page\" or custom text for all talk namespaces. When disabled, uses the subject page of the specified page", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "redirect": { "label": "Redirect page value", "description": "When enabled, outputs \"redirect\" or custom text for redirects. When disabled, uses the destination", "example": "custom", "type": "string", "suggestedvalues": [ "yes", "no" ], "default": "yes" }, "dab": { "type": "string", "label": "Disambiguation page value", "description": "When enabled, outputs \"disambiguation page\" or custom text for when the \"Class\" parameter has been set to \"disambiguation\", \"disamb\", or \"dab\"", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "na": { "type": "string", "label": "N/A page value", "description": "When enabled, outputs \"page\" or custom text for pages in mainspace when the \"Class\" parameter has been set to \"disambiguation\", \"disamb\", or \"dab\"", "example": "custom", "suggestedvalues": [ "yes", "no" ], "default": "no" }, "other": { "type": "string", "label": "Other namespaces", "description": "Outputs \"page\" or custom text for namespaces that have not been specified", "default": "page" }, "defaultns": { "type": "line", "label": "Set of default namespaces", "description": "This parameter is used to specify the set of namespaces used by default. By default the template detects page types in the main, File, Template, Category, and Module namespaces. If this parameter is set to \"none\", the template doesn't detect page types in any namespaces. If it is set to \"extended\", the template detects page types in the main, User, Wikipedia, File, MediaWiki, Template, Help, Category, Portal, and Module namespaces. If it is set to \"all\", the template detects page types in all namespaces, including talk pages. The namespaces set by this parameter can be overridden by the parameters for individual namespaces.", "suggestedvalues": [ "all", "extended", "none", "default" ], "default": "default" }, "plural": { "type": "boolean", "label": "Pluralise output?", "description": "Outputs a plural form (e.g. \"articles\" instead of \"article\").", "default": "n" }, "caps": { "type": "boolean", "label": "Capitalise output?", "description": "Outputs a capital letter (e.g. \"Article\" instead of \"article\").", "default": "n" } } } </templatedata> {{Collapse bottom}} <includeonly>{{Sandbox other|| <!--Categories below this line, please; interwikis at Wikidata--> [[Category:Namespace manipulation templates]] }}</includeonly>
Summary:
Please note that all contributions to Ikwipedia are considered to be released under the Creative Commons Attribution-ShareAlike (see
Ikwipedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width