"ഫലകം:Namespace detect/doc" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

imported>Alksentrs
(ചെ.) update link to Village Pump to point to archive
(ചെ.) was renamed
വരി 1:
{{Documentation subpage}}
<!-- 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.
Line 14 ⟶ 10:
:'''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.
:'''user, wikipedia, imagefile, 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.
 
"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.
Line 51 ⟶ 49:
<pre>
{{namespace detect
| imagefile = ImageFile page text
| category = Category page text
| other =
Line 57 ⟶ 55:
</pre>
 
On any pages other than imagefile 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. -->
:{{namespace detect
| imagefile = ImageFile page text
| category = Category page text
| other =
"https://ml.wikipedia.org/wiki/ഫലകം:Namespace_detect/doc" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്