Jump to content

From Noumenapedia
Revision as of 10:07, 9 September 2026 by Deleatur yhe (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:R with Wikidata item/doc

__EXPECTED_UNCONNECTED_PAGE__

Usage

<syntaxhighlight lang="wikitext">

  1. REDIRECT (target article title)

__EXPECTSHORTPAGE__

</syntaxhighlight>

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:

<syntaxhighlight lang="wikitext">

  1. REDIRECT (target article title)#(target list entry section/anchor)


  • From a cross-project redirect: This is a redirect from a title associated with an item on Wikidata. The Wikidata item associated with this page is [[d:Special:EntityPage/Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).|Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value).)]].

</syntaxhighlight>

This is in accord with instructions found at Wikipedia:REDCAT.
  • Use this rcat on all hard redirects in any namespace from titles that are used as connections to other Wikimedia projects. See the category for examples.

Parameter

This rcat takes one unnamed parameter, <syntaxhighlight lang="wikitext" inline style="display: none;" />|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: <syntaxhighlight lang="wikitext">

  1. REDIRECT (target article title)

__EXPECTSHORTPAGE__

</syntaxhighlight>

where the item number on Wikidata is Q21491525 – the "Q" prefix is optional:

<syntaxhighlight lang="wikitext">

  1. REDIRECT (target article title)

__EXPECTSHORTPAGE__

</syntaxhighlight>

Aliases

A live list of redirects is here.

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 (using the Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (Q70894304) badge to avoid running into an error).

Printworthiness

  • 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 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.

<syntaxhighlight lang="wikitext">{{Redirect category shell| {{R with Wikidata item}} {{R printworthy}} }}

{{Redirect category shell| {{R with Wikidata item}} {{R unprintworthy}} }}</syntaxhighlight>

See also

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:R with Wikidata item in articles based on its TemplateData.

TemplateData for R with Wikidata item

<templatedata> { "description": "Marks a redirect as a hard Wikidata redirect.",

 "params": { "1":
             { "label":       "Item number",
               "description": "Set to 'Q#' or simply '#' to link to the Wikidata item if it is not found automatically by the template.",
               "type":        "string",
               "required":    false
             }
           }

} </templatedata>