Templat:Pagetype

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Loncat ke navigasi Loncat ke pencarian

templat

[lihat] [sunting] [versi terdahulu] [hapus singgahan] Ikon dokumentasi Dokumentasi templat

Templat:Used in system

Templat ini digunakan untuk mendeteksi jenis halaman. Templat ini mendeteksi halaman pengalihan secara otomatis, dan dapat dikustomisasi. Digunakan secara mandiri atau sebagai metatemplat untuk membuat templat deteksi jenis halaman lainnya.

Sintaksis

Dasar
{{pagetype}}
Lanjutan
{{pagetype
| page              = 
| defaultns         = 
| main              = 
| user              = 
| wikipedia         = 
| project           = 
| wp                = 
| file              = 
| image             = 
| mediawiki         = 
| template          = 
| help              = 
| category          = 
| portal            = 
| book              = 
| education program = 
| timedtext         = 
| module            = 
| special           = 
| media             = 
| talk              = 
| redirect          = 
| dab               = 
| na                = 
| other             = 
| plural            = 
}}

TemplateData

TemplateData documentation used by VisualEditor and other tools

Ini adalah dokumentasi TemplateData untuk templat yang menggunakan penyuntingan visual.

Pagetype


This template Identifies the type of a given page. It is highly customisable. By default it detects redirects, articles, files, templates, categories, books, and modules, and other types of page are displayed as "page".

Parameter templat

ParameterKeteranganJenisStatus
Class1

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.

Kataopsional
Page namepage

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.

Halamanopsional
Main namespacemain

Adjust output for the main namespace. Use "yes" to enable with the output "article", "no" to disable, and other text to enable with custom output. Enabled by default.

Kataopsional
User namespaceuser

Adjust output for the User namespace. Use "yes" to enable with the output "user page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Wikipedia namespacewikipedia project wp

Adjust output for the Wikipedia namespace. Use "yes" to enable with the output "project page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
File namespacefile image

Adjust output for the File namespace. Use "yes" to enable with the output "file", "no" to disable, and other text to enable with custom output. Enabled by default.

Kataopsional
MediaWiki namespacemediawiki

Adjust output for the MediaWiki namespace. Use "yes" to enable with the output "interface page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Template namespacetemplate

Adjust output for the Template namespace. Use "yes" to enable with the output "template", "no" to disable, and other text to enable with custom output. Enabled by default.

Kataopsional
Help namespacehelp

Adjust output for the Help namespace. Use "yes" to enable with the output "help page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Category namespacecategory

Adjust output for the Category namespace. Use "yes" to enable with the output "category", "no" to disable, and other text to enable with custom output. Enabled by default.

Kataopsional
Portal namespaceportal

Adjust output for the Portal namespace. Use "yes" to enable with the output "portal", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Book namespacebook

Adjust output for the Book namespace. Use "yes" to enable with the output "book", "no" to disable, and other text to enable with custom output. Enabled by default.

Kataopsional
Education Program namespaceeducation program

Adjust output for the Education Program namespace. Use "yes" to enable with the output "education program page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
TimedText namespacetimedtext

Adjust output for the TimedText namespace. Use "yes" to enable with the output "Timed Text page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Module namespacemodule

Adjust output for the Module namespace. Use "yes" to enable with the output "module", "no" to disable, and other text to enable with custom output. Enabled by default.

Kataopsional
Special namespacespecial

Adjust output for the Special namespace. Use "yes" to enable with the output "special page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Media namespacemedia

Adjust output for the Media namespace. Use "yes" to enable with the output "file", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
All talk namespacestalk

Adjust output for all talk namespaces. Normally this template uses the subject page of the specified page to determine the pagetype, but if this parameter is enabled talk pages will be used as well. Use "yes" to enable with the output "talk page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Disambiguation page valuedab

Adjust output for pages in mainspace when the "Class" parameter has been set to "disambiguation", "disamb", or "dab". Use "yes" to enable with the output "disambiguation page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
N/A page valuena

Adjust output for pages in mainspace when the "Class" parameter has been set to "disambiguation", "disamb", or "dab". Use "yes" to enable with the output "page", "no" to disable, and other text to enable with custom output. Disabled by default.

Kataopsional
Other namespacesother

By default the template outputs the text "page" if the page is in a namespace that has not been specified. This value can be changed by using this parameter.

Kataopsional
Set of default namespacesdefaultns

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, Book, 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, Book, 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.

Barisopsional
Pluralise output?plural

Setting this value to "true", "yes", "y" or similar will result in the output from the template being in plural form (e.g. "articles" instead of "article").

Booleanopsional
Capitalise output?caps

Setting this value to "true", "yes", "y" or similar will result in the output from the template beginning with a capital letter (e.g. "Article" instead of "article").

Booleanopsional