Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen
Vorlage:Namespace detect/Doku (Quelltext anzeigen)
Version vom 6. September 2013, 20:19 Uhr
, vor 12 JahrenCopyedit on introduction
(add {{lua}} template) |
imported>RainCity471 (Copyedit on introduction) |
||
| Zeile 4: | Zeile 4: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
This is the {{tl|namespace detect}} meta-template. | This is the {{tl|namespace detect}} meta-template. It helps other templates detect what type of page they are on. | ||
It helps other templates detect what type of page they are on. | |||
It detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types: | It detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types: | ||
:'''main''' = Main/article space, | :'''main''' = Main/article space, where normal Wikipedia articles are kept. | ||
:'''talk''' = Any talk space, | :'''talk''' = Any talk space, including page names that start with "Talk:", "User talk:", "File talk:" and so on. | ||
:'''user, wikipedia, file, mediawiki, template, help, category''', '''portal''' and '''book''' = | :'''user, wikipedia, file, mediawiki, template, help, category''', '''portal''' and '''book''' = Other namespaces except the talk pages. | ||
:'''other''' = Any namespaces that were not specified as a parameter to the template. See explanation below. | :'''other''' = Any namespaces that were not specified as a parameter to the template. See explanation below. | ||
For backwards compatibility this template also understands | For backwards compatibility this template also understands '''image''' for '''file'''. '''Image''' is now deprecated. | ||
'''Note | '''Note:''' For most cases it may be better to use the simpler namespace detection templates (see the [[#See also|see also]] section below). This template is more prone to human errors such as misspelling parameter names. | ||
=== Usage === | === Usage === | ||