Zum Inhalt springen

Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

K
was 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 -->
{{ombox
| type = move
| text = '''Namespace "Image" might change name to "File".''' <br> On 7 October 2008 [[Wikipedia:Village pump (technical)/Archive 49#Canonical namespace change coming: Image: -> File:|it was announced]] at the Village pump that the "image" namespace is probably going to be renamed to "file" at about 13 October. This template has been updated to understand both names. Thus this template will continue to work as before. <br> --[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 06:50, 7 October 2008 (UTC)
}}


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, image, mediawiki, template, help, category''' and '''portal''' = The other namespaces except the talk pages.
:'''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
| image    = Image page text
| 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 image and category pages the code above will render nothing.
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
| image    = Image page text
| file    = File page text
| category = Category page text
| category = Category page text
| other    =
| other    =
Anonymer Benutzer