Last modified: 2014-07-25 11:50:36 UTC
wbsetredirect should be used to turn an item page into a redirect. Turning a page into a redirect should only be possible if that page is empty or already a redirect. This module is needed to restore deleted pages on wikidata.org as redirects.
Question: I thought an item can only become a redirect after merging? I think the best behaviour to resotre deleted pages as redirects is to restore them and then turn them into redirects by merging them again (which has no effect to the item but avoids a magic api module).
Change 143366 had a related patch set (by Daniel Kinzler) published: Introduce wbcreateredirect api module https://gerrit.wikimedia.org/r/143366
Change 143366 merged by Jeroen De Dauw: Introduce wbcreateredirect API module https://gerrit.wikimedia.org/r/143366