Template:Talkspace detect/sandbox: Difference between revisions

Content deleted Content added
Removing support for deprecated "image" space name, after all this is a new template.
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1:
{{safesubst:<noinclude/>#switch:
{{safesubst:<noinclude/>#if:{{{page|}}}
{{lc: <!--Lower-case the result-->
| {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE:{{{page}}} }}|{{safesubst:<noinclude/>SUBJECTSPACE:{{{page}}} }}
<!--If no or empty "demospace" parameter then detect namespace-->
| anysubject
{{#if:{{{demospace|}}}
| {{safesubst:<noinclude/>TALKSPACE:{demospace{{page}}} }}
}}
| {{#ifeq:{{NAMESPACE}}|{{SUBJECTSPACE}}
| {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>SUBJECTSPACE}}
| subject
| {{TALKSPACE}}anysubject
| {{safesubst:<noinclude/>TALKSPACE}}
}}
}}
}}
<noinclude><!-- Only one of the lines below will be executed -->.
<!-- Respecting empty parameters on purpose. --></noinclude>
| anysubject = {{{other|}}} <noinclude><!--Any subject space--></noinclude>
| main <!-- demospace = main ... portal -->
| helpTalk talk = {{{help talkmain| {{{otherdefault|}}} }}}
| user
| portalUser talk = {{{portal talkuser| {{{otherdefault|}}} }}}
| wikipedia
| mediawikiWikipedia talk = {{{mediawiki talkwikipedia| {{{otherdefault|}}} }}}
| file
| templateFile talk = {{{templatefile| talk{{{image| {{{otherdefault|}}} }}} }}}
| mediawiki
| categoryMediaWiki talk = {{{category talkmediawiki| {{{otherdefault|}}} }}}
| template
| Template talk = {{{template| {{{default|}}} }}}
| help
| Help talk = {{{help| {{{default|}}} }}}
| category
| Category talk = {{{category| {{{default|}}} }}}
| portal
| subjectPortal talk = {{{subjectportal| {{{otherdefault|}}} }}}
| Draft talk = {{{draft| {{{default|}}} }}}
 
| MOS talk = {{{talkmos| {{{otherdefault|}}} }}}
| userTimedText talk = {{{user talktimedtext| {{{otherdefault|}}} }}}
| wikipediaModule talk = {{{wikipedia talkmodule| {{{otherdefault|}}} }}}
| fileEvent talk = {{{file talkevent| {{{otherdefault|}}} }}}
| #default = {{{default|}}} <noinclude><!--A new talk space--></noinclude>
| mediawiki talk = {{{mediawiki talk| {{{other|}}} }}}
}}<!--End switch--><noinclude>
| template talk = {{{template talk| {{{other|}}} }}}
| help talk = {{{help talk| {{{other|}}} }}}
| category talk = {{{category talk| {{{other|}}} }}}
| portal talk = {{{portal talk| {{{other|}}} }}}
 
| other
| #default = {{{other|}}} <!--"demospace=other" or a new talkspace-->
 
}}<!--End switch--><noinclude>
 
 
{{documentation}} -->
{{template sandbox notice}}
<!-- Add categories and interwikis to the /doc subpage, notinterwikis go to Wikidata, thank hereyou! -->
<!-- {{pp-template}}
{{documentation}} -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>