[[w:]]>LuK3
m Reverted edits by 180.243.3.90 (talk) to last version by DB1729
 
m 1 revision imported
 
(No difference)

Latest revision as of 13:12, 25 June 2022

[[Category:Template documentation pages{{#translation:}}]]

Usage

<templatestyles src="Hatnote/styles.css"/>

Use this rcat template in any namespace.
#REDIRECT [[(target page name)]]

{{Rcat shell|
{{R from modification}}
}}
Template {{Rcat shell}} is an alias for the Redirect category shell template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redirect. For more information see the documentation on its template page. This rcat may also tag a redirect individually:
#REDIRECT [[(target page name)]]

{{R from modification}}
This is in accord with instructions found at Wikipedia:REDCAT.
  • Use this rcat to tag any redirect in any namespace that is a modification of the target's title; for example, its words are rearranged, or punctuation in the name is changed, with a hyphen (-), without a hyphen, etc.
  • If the redirect is from a title including the numeral form of a number to a title with the worded form, use the template {{R from numerals}} instead. If it is from the worded form to the numeral form, then use {{R to numerals}}.
  • In cases of modification from distinctly shorter or longer names, instead please use {{R from short name}} or {{R from long name}}, respectively.
  • Since rcats like {{R from other capitalisation}} and {{R from plural}} are only used in main-article namespace, this R from modification rcat is useful for other capitalisations, plurals, etc., in namespaces other than mainspace.
  • This template should not be used with {{R from transliteration}}, which populates a subcategory of this rcat's category.

Parameters

This rcat takes two optional parameters:

  • <templatestyles src="Template:Nowrap/styles.css"/>|demo=yes suppresses categorization for demonstration purposes.
  • <templatestyles src="Template:Nowrap/styles.css"/>|1= (a.k.a. <templatestyles src="Template:Nowrap/styles.css"/>|reason= or <templatestyles src="Template:Nowrap/styles.css"/>|of=) will include additional explanatory text. This is needed if the redirect is from a modification of some term other than the target title, e.g. an alternative name or subtopic. For example:
#REDIRECT [[Direct-to-video#Digital releases]]

{{Rcat shell|
{{R from subtopic}}
{{R to section}}
{{R from alternative hyphenation|'''{{-r|Direct-to-digital}}'''}}
{{R unprintworthy}}
}}
where <templatestyles src="Template:Nowrap/styles.css"/>{{R from alternative hyphenation}} is an alias of <templatestyles src="Template:Nowrap/styles.css"/>{{R from modification}}. This will make the template read:
"This is a redirect from a modification of the target's title or a closely related title. For example, the words may be rearranged, or punctuation may be different. This redirect is a modification of Direct-to-digital."
(which uses hyphens instead of spaces between words).

Aliases

Printworthiness

  • In main-article namespace, many redirects from modified page titles are considered unprintworthy; however, there are many others that are printworthy, so there is no default sort for printworthiness. In 2003, efforts were begun to support the Wikimedia Foundation's goal of increasing access and availability of Wikipedia articles in printed versions. 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:
{{Rcat shell|
{{R from modification}}
{{R printworthy}}
}}

{{Rcat shell|
{{R from modification}}
{{R unprintworthy}}
}}
Either {{Redirect category shell}} or its alias/shortcut, {{Rcat shell}}, may be used.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

R from modification

[[Category:TemplateData documentation{{#translation:}}]]

<templatedata> {

   "description": "Puts redirect in the categories . It takes two parameters.",
   "params": {
             "demo":
             { "label":       "yes",
               "description": "Set to 'yes' to suppress categorization for purpose of demonstration.",
               "type":        "string",
               "required":    false
             },
             "1":
             { "label":       "(text)",
               "description": "Set 'text' to modification other than target when appropriate.",
               "type":        "string",
               "required":    false
             },
             "reason":
             { "label":       "(text)",
               "description": "Set 'text' to modification other than target when appropriate.",
               "type":        "string",
               "required":    false
             }
   }

} </templatedata>

See also