Shortcut: WD:R

Help:Redirects

From Wikidata
Jump to: navigation, search

Other languages:
العربية • ‎bosanski • ‎català • ‎dansk • ‎Deutsch • ‎English • ‎español • ‎فارسی • ‎suomi • ‎français • ‎Frysk • ‎Հայերեն • ‎Bahasa Indonesia • ‎日本語 • ‎Nederlands • ‎polski • ‎português do Brasil • ‎русский • ‎svenska • ‎中文

Redirects in Wikidata are basically the same as redirects of normal wiki pages. However, they have a slightly different meaning and intention. The main reason why we need redirects is because we want to provide stable identifiers.

Creating redirects[edit]

Redirects can be created using Special:RedirectEntity or the 'wbcreateredirect' api module.

Use cases[edit]

Redirects usually get created when two items are merged. This will happen when some user recognizes that they describe the same subject. If one item gets merged into another one, this item is useless and presumably can be deleted. However, there might still be references to this item's id, either from within Wikidata or even from other webpages. Therefore, we need a way to tell them that the same concept can now be found in the other item. This is what redirects do.

For instance, similar to Wikipedia when en:Haïti redirects to en:Haiti, no label (Q18511155) redirects to Category:1911 in Morocco (Q9404406) (because some time in the past, two items had been created to represent the same concept, and they were merged, leaving a redirect).

Rules for redirecting[edit]

Redirecting is the preferred result of solving real duplicates after they got merged, where due to some error one or more site links are found in one or more items. Administrators should not delete one item and leave the other, but turn one into a redirect to the other. Under no circumstances should redirects be deleted. Deleting them would mean invalidating possible references to this concept and Wikidata would lose a lot of its reliability.

Links to redirects[edit]

If a merged item is used as the value of statements on other items, those statements will not immediately be switched to use the new item (and should not be edited in that way by regular users). This allows a merge to be easily reverted if it was done in error. However, within a few days there is a bot running on wikidata that will replace the item values so they are directly linked, rather than indirectly through the redirect.

To visually identify redirects[edit]

To visually recognize links to redirect pages without having to follow the link, copy and paste .mw-redirect { color: #006633;} .mw-redirect:visited { color: #009900;} .mw-redirect:hover { color: #990000;} .mw-redirect:active { color: #990000;} in your css page. All redirects will be green, the same way that red links quickly show that they target a deleted page.