Content deleted Content added
Adding the "anytalk" parameter. |
Use the "page" parameter instead of the "demospace" parameter. More flexible. And compatible with {{basepage subpage}} etc. |
||
Line 1:
{{#switch:
| {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{SUBJECTSPACE:{{{page}}} }}
| anysubject
▲ {{#if:{{{demospace|}}}
| {{TALKSPACE:{
}}
| {{#ifeq:{{NAMESPACE}}|{{SUBJECTSPACE}} }}
}}
▲<!-- Only one of the lines below will be executed -->
| anysubject = {{{other|}}} <!--Any subject space-->
▲<!-- Respecting empty parameters on purpose -->
▲| talk = {{{talk| {{{anytalk| {{{other|}}} }}} }}}
▲| user talk = {{{user talk| {{{anytalk| {{{other|}}} }}} }}}
▲| wikipedia talk = {{{wikipedia talk| {{{anytalk| {{{other|}}} }}} }}}
▲| file talk = {{{file talk| {{{anytalk| {{{other|}}} }}} }}}
▲| mediawiki talk = {{{mediawiki talk| {{{anytalk| {{{other|}}} }}} }}}
▲| template talk = {{{template talk| {{{anytalk| {{{other|}}} }}} }}}
▲| help talk = {{{help talk| {{{anytalk| {{{other|}}} }}} }}}
▲| category talk = {{{category talk| {{{anytalk| {{{other|}}} }}} }}}
▲| portal talk = {{{portal talk| {{{anytalk| {{{other|}}} }}} }}}
▲| #default = {{{other|}}} <!--"demospace=other" or a new talkspace-->
▲}}<!--End switch--><noinclude>
|