Jump to content

Template:R to main namespace and Template:R to main namespace/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
add parameter {{{nocat}}} for WP:NOCAT
 
m m
 
Line 1: Line 1:
<!--
<noinclude>{{This is a redirect/rcat}}

</noinclude>{{Redirect template
Add your experimental template code here.
|id=R to main namespace

|name=[[:Category:Redirects to the main namespace|From outside mainspace]]
--><noinclude>
|from=a page outside the main-article namespace (mainspace)
|to=an article in mainspace. This redirect page ''must be '''outside''''' of mainspace
|info=** '''Note:''' ''If this redirect is in mainspace, then it will populate '''{{cat|Pages with templates in the wrong namespace}}''' instead.''
}}<includeonly>{{Main other|{{Incorrect redirect template|[[WP:Mainspace|main]]||outside}}|[[Category:Redirects to the main namespace]]}}{{#ifeq: {{BASEPAGENAME}}|R to main namespace||{{#ifeq: {{NAMESPACE:{{#invoke:redirect|main|{{FULLPAGENAME}}}}}}|{{ns:0}}||{{info|image=Stop hand nuvola.svg|{{error|The above template is being used incorrectly. Please remove it from this redirect.}}}}{{#if:{{{nocat|}}}||[[Category:Pages with incorrectly transcluded templates]]}}<!-- /#if nocat -->}}}}</includeonly><noinclude>
<!-- Place categories on /doc subpage; interwikis go to Wikidata. -->
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>