Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen
Vorlage:Namespace detect/Doku (Quelltext anzeigen)
Version vom 1. Januar 2009, 20:06 Uhr
, vor 17 Jahrenwas renamed
imported>Alksentrs K (update link to Village Pump to point to archive) |
imported>Gurch K (was renamed) |
||
| Zeile 1: | Zeile 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- 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. | ||
| Zeile 14: | Zeile 10: | ||
:'''main''' = Main/article space, as in normal Wikipedia articles. | :'''main''' = Main/article space, as in normal Wikipedia articles. | ||
:'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "Image talk:" and so on. | :'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "Image talk:" and so on. | ||
:'''user, wikipedia, | :'''user, wikipedia, file, mediawiki, template, help, category''' and '''portal''' = The 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. | ||
"image" may also be used instead of "file". | |||
'''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 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. | ||
| Zeile 51: | Zeile 49: | ||
<pre> | <pre> | ||
{{namespace detect | {{namespace detect | ||
| | | file = File page text | ||
| category = Category page text | | category = Category page text | ||
| other = | | other = | ||
| Zeile 57: | Zeile 55: | ||
</pre> | </pre> | ||
On any pages other than | On any pages other than file and category pages the code above will render nothing. | ||
<!-- Do not remove this one. It is supposed to render nothing, but we have it here for testing purposes. --> | <!-- Do not remove this one. It is supposed to render nothing, but we have it here for testing purposes. --> | ||
:{{namespace detect | :{{namespace detect | ||
| | | file = File page text | ||
| category = Category page text | | category = Category page text | ||
| other = | | other = | ||