Zum Inhalt springen

Vorlage:Namespace detect/Doku: Unterschied zwischen den Versionen

→‎Technical details: Adding explanation about the rename of namespace "Image" to "File".
imported>Davidgothberg
(Some fixes to the doc text since the "image" namespace was renamed to "file".)
imported>Davidgothberg
(→‎Technical details: Adding explanation about the rename of namespace "Image" to "File".)
Zeile 13: Zeile 13:
:'''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''', although using '''image''' is deprecated.
For backwards compatibility this template also understands the old name '''image''' for '''file'''. But using '''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 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 112: Zeile 112:


=== Technical details ===
=== Technical details ===
Namespace "Image" was renamed to "File" on 11 December 2008. This template was updated to understand both names well before that, thus it still works fine. For backwards compatibility it still understands "image" both as a parameter name, such as "image = File page text", and as a value "demospace = image".


If you intend to feed tables as content to the numbered parameters of this template, then you need to know this:
If you intend to feed tables as content to the numbered parameters of this template, then you need to know this:
Anonymer Benutzer