Template:R with Wikidata item/doc
This is a documentation subpage for Template:R with Wikidata item. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Justapedia talk:Twinkle as a courtesy, as this template is used in the standard installation of Twinkle. Thank you! |
This template should not be substituted nor used to tag soft redirects. |
Usage
- This special redirect category (rcat) template populates Category:Wikidata redirects. It is "special" because it tags hard redirects that are connected to items on Wikidata. Use the {{Soft redirect with Wikidata item}} rcat template to tag soft redirects that connect to Wikidata items. Add this rcat to a redirect page (not a talk-page redirect) in the following manner:
#REDIRECT [[(target article title)]]
{{Rcat shell|
{{R with Wikidata item}}
}}
- 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 article title)#(target list entry section/anchor)]]
{{R with Wikidata item}}
- This is in accord with instructions found at Justapedia:REDCAT.
- Use this rcat on all hard redirects in any namespace from titles that are used as connections to other Justapedia projects. See the category for examples.
Parameter
This rcat takes one unnamed parameter, |1=(Wikidata item #)
, that may be used when a Wikidata "Q" number does not readily fill in, and you know that it exists on Wikidata. Examples follow:
#REDIRECT [[(target article title)]]
{{Rcat shell|
{{R with Wikidata item|Q21491525}}
}}
- where the item number on Wikidata is Q21491525 – the "Q" prefix is optional:
#REDIRECT [[(target article title)]]
{{Rcat shell|
{{R with Wikidata item|21491525}}
}}
Technical note This template will automatically enter the item number if the redirect title is on Wikidata and is linked from that page. Any editor who is familiar with Wikidata can connect a redirect page to a Wikidata item, if also adding a redirect badge (usually intentional sitelink to redirect (Q70894304)) to it. See also the d:Help:Sitelinks page on Wikidata. |
Aliases
- Also known as... – list of templates that redirect here and may also be used
Error detection
This template automatically places redirects that are not linked to Wikidata items in the tracking category Category:Unlinked Wikidata redirects. Please fix these, either by removing {{R with Wikidata item}} or by linking them to Wikidata (temporarily break the redirect, then add as a sitelink on Wikidata, then fix the redirect).
Printworthiness
Please do not alter the printworthy settings of any rcat without first notifying the Version 1.0 Editorial Team, who are responsible for any and all materials, including redirects, that go into a printed version of Justapedia. |
- In main-article namespace, many redirects with Wikidata items are considered printworthy; however, there are also many that are unprintworthy, so there is no default sort for printworthiness. In 2003, efforts were begun to support the Justapedia Foundation's goal of increasing access and availability of Justapedia articles in printed versions. Some rcat templates automatically populate either Category:Printworthy redirects or Category:Unprintworthy redirects by default. Others, like this rcat template, 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 to populate those categories are:
{{R printworthy}}
and{{R unprintworthy}}
- Please click on each one for more details and guidance.
- Examples:
{{Rcat shell|
{{R with Wikidata item}}
{{R printworthy}}
}}
{{Rcat shell|
{{R with Wikidata item}}
{{R unprintworthy}}
}}
- Either {{Redirect category shell}} or its alias/shortcut, {{Rcat shell}}, may be used.
See also
TemplateData
TemplateData for R with Wikidata item
Marks a redirect as a hard Wikidata redirect. Populates [[:Category:Wikidata redirects]].
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item number | 1 | Set to 'Q#' or simply '#' to link to the Wikidata item if it is not found automatically by the template. | String | optional |