सामग्रीमा जानुहोस्

मोड्युल:Pagetype/doc

विकिपिडिया बठेइ

This is the documentation page for मोड्युल:Pagetype

This module is used to detect the page type of a given page. It detects redirect pages automatically and is highly customisable. It can be used on its own or as a meta-module to create other page-type-detection templates. This module can also be accessed using {{pagetype}}.

Basic usage
{{#invoke:pagetype|main}}
All parameters
{{#invoke:pagetype|main
| page              = 
| defaultns         = 
| main              = 
| user              = 
| wikipedia         = 
| project           = 
| wp                = 
| file              = 
| image             = 
| mediawiki         = 
| template          = 
| help              = 
| category          = 
| portal            = 
| book              = 
| draft             = 
| education program = 
| timedtext         = 
| module            = 
| topic             = 
| special           = 
| media             = 
| talk              = 
| redirect          = 
| dab               = 
| na                = 
| other             = 
}}

For simple detection of the page type of the current page, use the default settings:

{{#invoke:pagetype|main}}

That will produce the following results, depending on the page type or the namespace:

Page type / namespaceOutput
Redirects (in any namespace)redirect
Main namespaceलेख
File namespaceचित्र
Template namespaceढाँचा
Category namespaceश्रेणी
Module namespaceमोड्युल
Book namespaceपुस्तक
Other namespacesपृष्ठ

If the module is used on a talk page, it will detect the page type for the corresponding subject page.

Example
CodeResult
{{#invoke:pagetype|main}}module