Template:Talkspace detect/sandbox: Difference between revisions

Content deleted Content added
Copying the code from the main template.
 
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1:
{{safesubst:<noinclude/>#switch:
{{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
{{safesubst:<noinclude/>#if:{{{page|}}}
| {{#switch:{{NAMESPACE}}
| {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE:{{{page}}} }}|{{safesubst:<noinclude/>SUBJECTSPACE:{{{page}}} }}
| Talk = {{{main|{{{default|}}}}}}
| anysubject
| User talk = {{{user|{{{default|}}}}}}
| {{safesubst:<noinclude/>TALKSPACE:{{{page}}} }}
| Wikipedia talk = {{{wikipedia|{{{default|}}}}}}
}}
| File talk = {{{file|{{{default|}}}}}}
| {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>SUBJECTSPACE}}
| MediaWiki talk = {{{mediawiki|{{{default|}}}}}}
| anysubject
| Template talk = {{{template|{{{default|}}}}}}
| {{safesubst:<noinclude/>TALKSPACE}}
| Help talk = {{{help|{{{default|}}}}}}
}}
| Category talk = {{{category|{{{default|}}}}}}
| Portal talk = {{{portal|{{{default|}}}}}}
| #default = {{{default|}}}
}}
<noinclude><!-- Only one of the lines below will be executed.
| {{{other|}}}
Respecting empty parameters on purpose. --></noinclude>
| anysubject = {{{other|}}} <noinclude><!--Any subject space--></noinclude>
| Talk = {{{main| {{{default|}}} }}}
| User talk = {{{user| {{{default|}}} }}}
| Wikipedia talk = {{{wikipedia| {{{default|}}} }}}
| File talk = {{{file| {{{image| {{{default|}}} }}} }}}
| MediaWiki talk = {{{mediawiki| {{{default|}}} }}}
| Template talk = {{{template| {{{default|}}} }}}
| FileHelp talk = {{{filehelp| {{{default|}}} }}}
| Category talk = {{{category| {{{default|}}} }}}
| Portal talk = {{{portal| {{{default|}}} }}}
| HelpDraft talk = {{{helpdraft| {{{default|}}} }}}
| MOS talk = {{{mos| {{{default|}}} }}}
| TimedText talk = {{{timedtext| {{{default|}}} }}}
| Module talk = {{{module| {{{default|}}} }}}
| Event talk = {{{event| {{{default|}}} }}}
| #default = {{{default|}}} <noinclude><!--A new talk space--></noinclude>
}}<noinclude>
 
{{documentation}} -->
 
<!-- Add categories and interwikis to the /doc subpage, notinterwikis go to Wikidata, thank hereyou! -->
{{template sandbox notice}}
<!-- {{pp-template}}
{{documentation}} -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>