Difference between revisions of "Template:R from move"

From Wikispooks
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{hatnote|This rcat template is automatically added to all new redirects that result from page moves; it must be added manually to older redirects when appropriate.}}{{This is a redirect/rcat}}
 
<noinclude>{{hatnote|This rcat template is automatically added to all new redirects that result from page moves; it must be added manually to older redirects when appropriate.}}{{This is a redirect/rcat}}
</noinclude>{{#ifeq:{{{embed}}}|yes
+
</noinclude>{{Redirect template
|{{Redirect template
 
 
   |name=From a page move
 
   |name=From a page move
 
   |from=a page that has been moved (renamed)
 
   |from=a page that has been moved (renamed)
 
   |info=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.
 
   |info=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.
 
   |all category=Redirects from moves
 
   |all category=Redirects from moves
}}
+
}}<includeonly>{{#ifeq:{{FULLPAGENAME}}|MediaWiki:Move-redirect-text||[[Category:Redirects from moves]]}}{{#ifeq: {{NAMESPACENUMBER}}|1|{{#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>
|{{Redirect template
+
<!-- Place categories on /doc subpage; interwikis go to Wikidata. -->
  |from=a page that has been '''[[:Category:Redirects from moves|moved (renamed)]]'''
 
  |info=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 bold category link.
 
<includeonly>
 
  |all category=Redirects from moves</includeonly>
 
}}
 
}}<includeonly>{{#ifeq:{{FULLPAGENAME}}|MediaWiki:Move-redirect-text||[[Category:Redirects from moves]]}}{{#ifexist: {{SUBJECTPAGENAME}}|{{#ifexist: {{TALKPAGENAME}}|{{#ifeq: {{NAMESPACENUMBER}}|1|{{#ifeq:{{#invoke:redirect|isRedirect|{{SUBJECTPAGENAME}}}}|yes|{{#switch: {{SUBPAGENAME}}
 
  |doc=
 
  |sandbox=
 
  |testcases=
 
  |#default={{#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. -->
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 10:47, 10 March 2017

When used with the "This is a redirect" (Redr) template:

Template {{This is a redirect}} may be used to add from one to seven rcat templates, along with their parameters and categories, to a redirect. For more information see the documentation page below.

When used by itself:

  • From a page move: 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.
Template documentation[view] [edit] [history] [purge]

Usage

  • This redirect category (rcat) template populates Category:Redirects from moves, which is used to track all page moves that, if a redirect is not left behind, would result in the breakage of links, both internal wikilinks and external internet website links.
  • For redirects that have been left behind from page moves and have not yet been categorized, add this rcat in the following manner:
#REDIRECT [[(target page name)]]

{{Redr|from move}}
Template {{Redr}} is an alias for the This is a redirect template, which may be used to add up to seven appropriate rcats, along with their parameters, to a redirect. For more information see the documentation on its template page and its comparison page. This rcat may also tag a redirect individually:
#REDIRECT [[(target page name)]]

{{R from move}}
This is in accord with instructions found at Wikipedia:REDCAT.
  • Use this rcat to tag any redirect in any namespace that has been left behind as the result of a page move (rename). This tagging has become automated; however, there are still many older redirects from moves that need to be manually tagged by this rcat.

Aliases

Printworthiness

  • In main-article namespace, many redirects from moved pages are considered unprintworthy; however, there are many others that are printworthy, so there is no default sort for printworthiness. At some point in the future, Jimmy Wales wants to make more printed versions of Wikipedia encyclopedia articles. Some rcats automatically populate either Category:Printworthy redirects or Category:Unprintworthy redirects by default. Others, like this rcat, do not, and that means it is up to editors to choose which of those categories, Printworthy or Unprintworthy, is appropriate and should be populated. The rcats that are used separately to populate those categories are:
Please click on each one for more details and guidance.
Examples:
{{Redr|from move|printworthy}}
{{Redr|from move|unprintworthy}}
Either {{This is a redirect}} or its alias/shortcut, {{Redr}}, may be used.

TemplateData

<templatedata> { "params": {}, "description": "Places this redirect in the category. It takes no parameters." } </templatedata>

See also