Content deleted Content added
Copying the code from the main template. |
Making it fully compatible with the other namespace detection templates. |
||
Line 1:
{{#switch:
{{lc: <!--Lower-case the result-->
<!--If no or empty "demospace" parameter then detect namespace-->
| Talk = {{{main|{{{default|}}}}}}▼
| subject
| MediaWiki talk = {{{mediawiki|{{{default|}}}}}}▼
}}
| Help talk = {{{help|{{{default|}}}}}}▼
}}
| Category talk = {{{category|{{{default|}}}}}}▼
| Portal talk = {{{portal|{{{default|}}}}}}▼
}}
<!-- Only one of the lines below will be executed -->
| {{{other|}}}▼
<!-- Respecting empty parameters on purpose -->
}}<noinclude>▼
| main
| user
| project <!-- project = wikipedia -->
| wikipedia
| image <!-- image = file -->
| file
| mediawiki
| template
| help
| category
| portal
| talk = {{{talk| {{{other|}}} }}}
| user talk = {{{user talk| {{{other|}}} }}}
| project talk
| wikipedia talk = {{{wikipedia talk| {{{project talk| {{{other|}}} }}} }}}
| image talk
| file talk = {{{file talk| {{{image talk| {{{other|}}} }}} }}}
| template talk = {{{template talk| {{{other|}}} }}}
| #default = {{{other|}}} <!--"demospace=other" or a new talkspace-->
▲}}<!--End switch--><noinclude>
|