Template:Talkspace detect: Difference between revisions

Content deleted Content added
m Changed protection level of Template:Talkspace detect: highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))
sync from sandbox. Make substable (used by templates such as Template:Splitnote).
Line 1:
{{safesubst<noinclude />:#switch:
{{safesubst<noinclude />:#if:{{{page|}}}
| {{safesubst<noinclude />:#ifeq:{{NAMESPACE:{{{page}}} }}|{{SUBJECTSPACE:{{{page}}} }}
| anysubject
| {{TALKSPACE:{{{page}}} }}
}}
| {{safesubst<noinclude />:#ifeq:{{NAMESPACE}}|{{SUBJECTSPACE}}
| anysubject
| {{TALKSPACE}}
}}
}}
{{safesubst<noinclude />:^|<!-- Only one of the lines below will be executed.
Respecting empty parameters on purpose. -->}}
| anysubject = {{{other|}}} {{safesubst<noinclude />:^|<!--Any subject space-->}}
| Talk = {{{main| {{{default|}}} }}}
| User talk = {{{user| {{{default|}}} }}}
Line 25:
| Module talk = {{{module| {{{default|}}} }}}
| Draft talk = {{{draft| {{{default|}}} }}}
| #default = {{{default|}}} {{safesubst<noinclude />:^|<!--A new talk space-->}}
}}<noinclude>