Template:Pagetype/doc: Difference between revisions

m 1 revision imported: More leftover templating
m Text replacement - "[[WP:" to "[[wikipedia:WP:"
 
Line 4: Line 4:
{{lua|Module:Pagetype}}
{{lua|Module:Pagetype}}


This template is used to detect the page type of a given page. It detects [[WP:REDIRECT|redirect pages]] automatically and is highly customisable. It can be used on its own or as a meta-template to create other page-type-detection templates.
This template is used to detect the page type of a given page. It detects [[wikipedia:WP:REDIRECT|redirect pages]] automatically and is highly customisable. It can be used on its own or as a meta-template to create other page-type-detection templates.


== Syntax ==
== Syntax ==
Line 49: Line 49:
  {{pagetype}}
  {{pagetype}}


That will produce the following results, depending on the page type or the [[WP:NAMESPACE|namespace]]:
That will produce the following results, depending on the page type or the [[wikipedia:WP:NAMESPACE|namespace]]:


{| class="wikitable"
{| class="wikitable"
Line 454: Line 454:


== Disambiguation pages ==
== Disambiguation pages ==
By default, the template uses [[Module:Disambiguation]] to detect [[WP:DAB|disambiguation pages]] in the main namespace. If you want, you can turn this detection off, or use a custom value for disambiguation pages.
By default, the template uses [[Module:Disambiguation]] to detect [[wikipedia:WP:DAB|disambiguation pages]] in the main namespace. If you want, you can turn this detection off, or use a custom value for disambiguation pages.


  {{pagetype|dab=''no''}}
  {{pagetype|dab=''no''}}