Template:This is a redirect/Comparison

From MattWiki
Jump to navigation Jump to search

Because of a software modification, text can now appear on Wikipedia's redirect pages. Therefore, they all have the capability to display other readable text in addition to the redirect arrow and target page title, which had been the sole, displayable content prior to the software modification.

This page compares how text appears in accordance with project endeavors to categorize redirects using redirect category (rcat) templates. In particular, the style comparisons on this page display examples that show how text is rendered when template {{This is a redirect}}, or its shortcut/alias, {{Redr}}, is used:

{{This is a redirect|from plural|with possibilities}}

in contrast to how text appears when rcats are added to redirects individually, such as:

{{R from plural}} {{R with possibilities}}

Protection detection

One very good reason to consider the use of the This is a redirect template over use of individual rcats on redirects is that this template, in addition to holding up to seven rcats and their parameters, is capable of detecting the protection level(s) of a redirect. When an administrator protects a redirect, either edit-protected, move-protected or both, if the This is a redirect template has already been used to tag the redirect, then it automatically sorts the redirect into appropriate protection categories. If and when protection is lifted, raised or lowered, then the protection tags and categories are automatically removed. This automatic protection detection is not available to individually applied rcats.

Style comparison

Templates used
The rcat templates used in this example are:

This is a redirect

The following is the way text appears when This is a redirect is used:

Individually added

The following is text that results from adding rcats individually:
  • This is a redirect from a word (or phrase) to a page title that is related in some way. This redirect might be a good candidate for a Wiktionary link. For more information follow the bold category link.
    • Redirects from related words are not properly redirects from alternative spellings of the same word. They are also different than redirects from subtopics or related terms or topics, since a related word is unlikely to warrant a full subtopic in the target page, or to have the possibility of ever becoming an article.
  • This is a redirect from a shortcut page name in any namespace to a page in template namespace. For more information follow the bold category link.
    • If target page is not a template, then use {{R from shortcut}} instead. Template shortcuts are wikilinked on community pages, talk pages and edit summaries, but not in mainspace articles.
    • Note: Template talk pages are in a talk namespace; they are not in the template namespace. All shortcuts to talk pages should be tagged with {{R from shortcut}}.
  • This is a redirect from a title that is a complete, more complete or longer version of the name of a person, organization, legislative act, etc. It leads to the title in accordance with the naming conventions for common names and can help writing and searches. However, do not replace these redirected links with a piped link unless the page is updated for another reason. For more information follow the bold category link.
  • This is a redirect from a title that is another name such as a pseudonym, a nickname, or a synonym of the target, or of a name associated with the target. For more information follow the bold category link.
    • This redirect leads to the title in accordance with the naming conventions for common names and can help writing. It is not necessary to replace these redirected links with a piped link.
    • If this redirect is an incorrect name for the target, then use {{R from incorrect name}} instead.
  • This is a redirect from an alias/shortcut (usually), or from a redirect that is the result of a page move/rename, to a redirect category (rcat) template. For more information follow the bold category link.

Incorrect namespace

Also noted is how these will appear if an rcat is used to tag a redirect in the wrong namespace:

{{This is a redirect|from plural}}...

{{R from plural}}...

  • This is a redirect from a plural noun to its singular form. Either {{R from plural}} or {{R to singular}} may be used to tag plural redirects. For more information follow the bold category link.
    • This redirect link is used for convenience; it is often preferable to add the plural directly after the link (for example, [[link]]s). However, do not replace these redirected links with a simpler link unless the page is updated for another reason (see WP:NOTBROKEN).
    • Use this rcat to tag only mainspace redirects; when plural forms are found in other namespaces, use {{R from modification}} instead.

Note 1: If {{R from plural}} or any template is used in a different namespace than it should be used, the editor may note that both the above error message and a different categorization than expected is generated. The page will not be sorted to the expected category, and will instead populate Category:Pages with templates in the wrong namespace.

Note 2: When the error box shown above is seen on "preview" or after the edit has been saved, be sure to correct the error by removing the rcat that should only be used in another namespace. In this case the {{R from modification}} rcat, which may be used in any namespace, can be used instead of R from plural:

{{This is a redirect|from modification}}...

{{R from modification}}...

  • This is a redirect from a modification of the target's title; for example, its words are rearranged, or punctuation in the name is changed. In cases of modification from distinctly longer or shorter names, please use {{R from long name}} or {{R from short name}}, respectively. For more information follow the bold category link.

Bug note

There were two bugs that dealt with the appearance of text on redirects:

Until these were resolved, the above texts only appeared at RFD, because only then was a redirect disabled (by the Rfd template). It was only when a redirect was disabled that text would appear.

Edit notes

  • The following "preview trick" is no longer necessary since the bugs were fixed. It is kept only for historic reasons, because it also works for other templates. There is another way the text can be seen and checked to see if the correct rcat has been added. When an editor begins to edit a redirect, the edit screen is brought up that gives the ability to change the page. If the redirect is disabled for preview and not saved, the editor can see the text of the rcat(s) added by clicking on Show preview. Once the editor has determined that the correct rcats have been added, the redirect can be re-enabled before being saved. One easy way to disable a redirect is to type a number or letter in the upper left of the edit field, to the left of the "#REDIRECT", as in "4#REDIRECT". Be sure that the "4" is removed before the Save page is clicked.
  • The above "preview trick" works for other templates as well, such as {{Reflist}} or its shortcut, {{RE}}. Place one of those beneath a paragraph of an article section and click on Show preview to give you a "test reflist" with which to check citation edits. If you forget to remove the test reflist and save the page with it, just be sure to double check the edit and correct your mistake. Others will understand because we've all made the same or similar errors.
  • Always double check your edits even after you have previewed and saved them. Some edits may appear differently in different browsers and skins, so it's good to be prepared and to check those edits with different browsers and in different skins. Also, a few edits may appear differently after saved than when they were viewed on preview.
  • If your edits fail to appear after you've saved them, be sure you have enabled your ability to see "hidden categories". You can make this choice very easily:
  1. Go to Preferences → Appearance
  2. Scroll down to Advanced options
  3. Check the box Show hidden categories
  4. Click Save
You may need to purge your browser cache to ensure that you can see hidden cats in the future.