Template:Namespace detect
Versione del 7 Ott 2008 alle 00:31 di Davidgothberg (Discussione) (Changed to also understand "file=File page text" and "demospace=file". To handle the announced change from "Image" to "File" naming of that namespace.)
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:template| | main | {{#ifeq:template|discussioni template | talk | template }} }} }}
| main = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | other | #default =
}}