Template:Talkspace detect/sandbox: Difference between revisions

Content deleted Content added
Updating to handle the new "Book talk:" namespace.
Make substable (substed by 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 23:
| Portal talk = {{{portal| {{{default|}}} }}}
| Book talk = {{{book| {{{default|}}} }}}
| #defaultModule talk = {{{module| {{{default|}}} <!--A new talk space-->}}}
| Draft talk = {{{draft| {{{default|}}} }}}
| #default = {{{default|}}} {{safesubst<noinclude />:^|<!--A new talk space-->}}
}}<noinclude>
 
{{documentation}} -->
 
{{template sandbox notice}}
<!-- {{pp-template}}
{{documentation}} -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>