Zum Inhalt springen

Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

Copyedit 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, as in normal Wikipedia articles.
:'''main''' = Main/article space, where normal Wikipedia articles are kept.
:'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "File talk:" and so on.
:'''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''' = The other namespaces except the talk pages.
:'''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 the old name '''image''' for '''file'''. But using '''image''' is now deprecated.
For backwards compatibility this template also understands '''image''' for '''file'''. '''Image''' is now deprecated.


'''Note!''' For most usage cases it might be better to use the simpler namespace detection templates. (See the [[#See also|see also]] section below.) Since this template is more prone to human errors such as misspelling the parameter names.  
'''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 ===
Anonymer Benutzer