Content deleted Content added
Indentating code for readability. No change in functionality. Nice namespace detection template you made Hornoir! |
Theknightwho (talk | contribs) Copying from sandbox: (1) support missing namespaces MOS talk, TimedText talk and Event talk, (2) fix broken subst support for subject spaces, and (3) avoid unnecessary use of Template:^ when <noinclude> tags work just fine. |
||
(11 intermediate revisions by 6 users not shown) | |||
Line 1:
{{safesubst<noinclude/>:#switch:
{{safesubst<noinclude/>:#if:{{{page|}}}
| {{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|}}}}}}▼
}}
<noinclude><!-- Only one of the lines below will be executed.
Respecting empty parameters on purpose. --></noinclude>
| anysubject = {{{other|}}} <noinclude><!--Any subject space--></noinclude>
| File talk = {{{file| {{{image| {{{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
</noinclude>
|