Content deleted Content added
Adding {{pp-template}} since semi-protected. |
Added the "page" parameter. Thus compatible with {{namespace detect}} and {{basepage subpage}} etc. |
||
Line 1:
{{#switch:
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}▼
| {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{SUBJECTSPACE:{{{page}}} }}
| Talk = {{{main|{{{default|}}}}}}▼
| anysubject
| User talk = {{{user|{{{default|}}}}}}▼
}}
| File talk = {{{file|{{{default|}}}}}}▼
| MediaWiki talk = {{{mediawiki|{{{default|}}}}}}▼
| anysubject
| Template talk = {{{template|{{{default|}}}}}}▼
}}
| Category talk = {{{category|{{{default|}}}}}}▼
| Portal talk = {{{portal|{{{default|}}}}}}▼
| #default = {{{default|}}}▼
}}
<!-- Only one of the lines below will be executed.
Respecting empty parameters on purpose. -->
| anysubject = {{{other|}}} <!--Any subject space-->
| Wikipedia talk = {{{wikipedia| {{{default|}}} }}}
| File talk = {{{file| {{{image| {{{default|}}} }}} }}}
}}<noinclude>
|