Template:R from move: Difference between revisions

From Vigyanwiki
Template>Paine Ellsworth
(account for talk pages of soft-redirected categories)
Template>Paine Ellsworth
(simplify code)
Line 13: Line 13:
   |all category=Redirects from moves</includeonly>
   |all category=Redirects from moves</includeonly>
  }}
  }}
}}<includeonly>{{#ifeq:{{FULLPAGENAME}}|MediaWiki:Move-redirect-text||[[Category:Redirects from moves]]}}{{#ifexist: {{SUBJECTPAGENAME}}|{{#ifexist: {{TALKPAGENAME}}|{{#switch: {{SUBPAGENAME}}|doc=|sandbox=|testcases=|#default={{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||{{#ifeq: {{NAMESPACENUMBER}}|15||{{#ifeq: {{FULLPAGENAME}}|{{SUBJECTPAGENAME}}||[[Category:Unsynchronized talk page redirects]]}}}}}}}}}}}}</includeonly><noinclude>
}}<includeonly>{{#ifeq:{{FULLPAGENAME}}|MediaWiki:Move-redirect-text||[[Category:Redirects from moves]]}}{{#ifexist: {{SUBJECTPAGENAME}}|{{#ifexist: {{TALKPAGENAME}}|{{#ifeq:{{#invoke:redirect|isRedirect|{{SUBJECTPAGENAME}}}}|yes|{{#ifeq: {{PAGENAME:{{#invoke:redirect|main|{{TALKPAGENAME}}}}}}|{{PAGENAME:{{#invoke:redirect|main|{{SUBJECTPAGENAME}}}}}}||{{#ifeq: {{FULLPAGENAME}}|{{SUBJECTPAGENAME}}||[[Category:Unsynchronized talk page redirects]]}}}}}}}}}}</includeonly><noinclude>
<!-- Categories are to be placed on the /doc subpage; interwikis go to Wikidata. -->
<!-- Categories are to be placed on the /doc subpage; interwikis go to Wikidata. -->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 07:37, 2 November 2015

When used with the "Redirect category shell" (Rcat shell) template:

Template {{Redirect category shell}} may be used to add one or more rcat templates, along with their parameters and categories, to a redirect. For more information see the documentation page below.

When used by itself:

  • This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name. For more information follow the category link.
Template documentation