Jump to content

Template:Editnotice pagename and Template:Editnotice pagename/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Add safesubst
 
Amalthea (talk | contribs)
replace NAMESPACEID with NAMESPACENUMBER -- magic work does the exact same work, if no parameter is given.
 
Line 1: Line 1:
{{#switch:{{NAMESPACENUMBER}}
{{{{{|safesubst:}}}Editnotice pagename/core
|0|1|6|8|12|13|14|15=Template{{#ifeq:{{lc:{{{1|}}}}}|talk|<nowiki> </nowiki>talk}}:Editnotices/{{FULLPAGENAME}}
|1={{{1|}}}
|4|5|7|9|10|11|100|101=MediaWiki{{#ifeq:{{lc:{{{1|}}}}}|talk|<nowiki> </nowiki>talk}}:Editnotice-{{NAMESPACENUMBER}}-{{#titleparts:{{PAGENAME}}|1}}{{
|page={{{{{|safesubst:}}}#if:{{{page|}}}
#if:{{#titleparts:{{PAGENAME}}|1|2}} | -{{#titleparts:{{PAGENAME}}|1|2}}{{
|{{{page}}}
#if:{{#titleparts:{{PAGENAME}}|1|3}} | -{{#titleparts:{{PAGENAME}}|1|3}}
|{{{{{|safesubst:}}}FULLPAGENAME}}
}}
}}
}}
}}<noinclude>
|2|3={{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}
|{{FULLPAGENAME}}/Editnotice
|MediaWiki{{#ifeq:{{lc:{{{1|}}}}}|talk|<nowiki> </nowiki>talk}}:Editnotice-{{NAMESPACENUMBER}}-{{#titleparts:{{PAGENAME}}|1}}
{{#if:{{#titleparts:{{PAGENAME}}|1|2}} | -{{#titleparts:{{PAGENAME}}|1|2}}{{
#if:{{#titleparts:{{PAGENAME}}|1|3}} | -{{#titleparts:{{PAGENAME}}|1|3}}
}}
}}
}}
}}
<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>