Zum Inhalt springen

Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(markiert als Import)
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
{{Modulimport|2013-03-03|w|en|Template:Namespace detect}}
{{Modulimport|2013-03-03|w|en|Template:Namespace detect}}
{{lua|Module:Namespace detect}}
{{lua|Module:Namespace detect}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
Dies ist eine Meta-Vorlage die für andere Vorlagen ermittelt, in welchem {{Wikivoyage:Namensräume|Namensraum]] sie sich befinden. Dazu werden alle verfügbaren Namensräume gruppiert und in folgende Typen geordnet:


This is the {{tl|namespace detect}} meta-template. It helps other templates detect what type of page they are on.
:'''main''' – Artikelnamensraum.
:'''talk''' – Alle Diskussionsseiten "Diskussion:", "Benutzer Diskussion:", "Wikivoyage Diskussion:" usw.
:'''user, wikivoyage, file, mediawiki, template, help, category''', '''portal''' and '''book''' – weitere spezielle Namensräume.
:'''other''' – alle anderen Namensräume.


It detects and groups all the different [[Wikipedia:Namespace#Enumeration|namespaces]] used on Wikipedia into several types:
:'''main''' = Main/article space, where normal Wikipedia articles are kept.
:'''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''' = Other namespaces except the talk pages.
:'''other''' = Any namespaces that were not specified as a parameter to the template. See explanation below.
For backwards compatibility this template also understands '''image''' for '''file'''. '''Image''' is now deprecated.
'''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