Page MenuHomePhabricator

Special pages for delete and protect
Closed, ResolvedPublicFeature

Description

Feature summary
Redirect Special:Delete/Foo to Foo?action=delete, and Special:Protect/Foo to Foo?action=protect.

Benefits
I once wanted to link to Special:Delete on another wiki, then realized that it doesn't even exist. Comparing to https://en.wikipedia.org/w/index.php?title=Foo&action=delete, [[:w:Special:Delete/Foo]] is shorter, easier to type (needless of those "?" and "&"), and more wiki-like. The same with action=protect. We already have 'Special:EditPage' for edit, 'Special:PageHistory' for history, 'Special:PageInfo' for info, so why can't there be special redirects for delete and protect?

Event Timeline

Reedy added a subscriber: Reedy.

Tagging this as easy.

Using SpecialPageHistory as an example, it should be trivial to create similar pages for Delete and Protect.

rMWf3e2b140c821: Create abstract special page SpecialRedirectWithAction, and use it. from T13456: Add Special-page redirects for page actions for easy wiki linkage (Special:History, Special:Edit, Special:Purge, Special:PageInfo) was the basis for this work, and should be similar in implementation. SpecialRedirectWithAction doesn't need re-creating though.

T233987 seems to already cover half of this

Change 738508 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] Create Special pages for delete and protect action

https://gerrit.wikimedia.org/r/738508

T233987 seems to already cover half of this

That task is about converting the deletion logic from an action page to a special page. This task is just about creating a redirect from Spedial:Delete to the deletion action page.

T233987 seems to already cover half of this

That task is about converting the deletion logic from an action page to a special page. This task is just about creating a redirect from Spedial:Delete to the deletion action page.

Thanks, though these do seem to be mutually exclusive - so if this one is done that other one may need to be declined?

T233987 seems to already cover half of this

That task is about converting the deletion logic from an action page to a special page. This task is just about creating a redirect from Spedial:Delete to the deletion action page.

Thanks, though these do seem to be mutually exclusive - so if this one is done that other one may need to be declined?

Potentially, yeah. The other is marked as stalled and waiting various PM type reviews. Can probably stay open (for now?) but when this is merged a comment left there to say it might not be needed anymore.

Change 738508 merged by jenkins-bot:

[mediawiki/core@master] Create redirect Special Pages for delete and protect action

https://gerrit.wikimedia.org/r/738508

Reedy assigned this task to Zabe.

Change 738555 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] Rename Special:Delete/Protect to Special:DeletePage/ProtectPage

https://gerrit.wikimedia.org/r/738555

Change 738555 merged by jenkins-bot:

[mediawiki/core@master] Rename Special:Delete/Protect to Special:DeletePage/ProtectPage

https://gerrit.wikimedia.org/r/738555

Change 740689 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@wmf/1.38.0-wmf.9] Revert \"Create redirect Special Pages for delete and protect action\"

https://gerrit.wikimedia.org/r/740689

Change 740689 merged by jenkins-bot:

[mediawiki/core@wmf/1.38.0-wmf.9] Revert \"Create redirect Special Pages for delete and protect action\"

https://gerrit.wikimedia.org/r/740689

Mentioned in SAL (#wikimedia-operations) [2021-11-23T00:48:20Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.9/includes/specialpage/SpecialPageFactory.php: 7c0e074: Revert "Create redirect Special Pages for delete and protect action" (T295611; T296203; 1/4) (duration: 00m 56s)

Mentioned in SAL (#wikimedia-operations) [2021-11-23T00:49:33Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.9/includes/specials/: 7c0e074: Revert "Create redirect Special Pages for delete and protect action" (T295611; T296203; 2/4) (duration: 00m 55s)

Mentioned in SAL (#wikimedia-operations) [2021-11-23T00:50:43Z] <urbanecm@deploy1002> Synchronized php-1.38.0-wmf.9/autoload.php: 7c0e074: Revert "Create redirect Special Pages for delete and protect action" (T295611; T296203; 3/4) (duration: 00m 55s)

Mentioned in SAL (#wikimedia-operations) [2021-11-23T00:51:34Z] <urbanecm@deploy1002> Started scap: 69aa4a7: 7c0e074: Revert "Create redirect Special Pages for delete and protect action" (T295611; T296203; 4/4)

Mentioned in SAL (#wikimedia-operations) [2021-11-23T01:17:24Z] <urbanecm@deploy1002> Finished scap: 69aa4a7: 7c0e074: Revert "Create redirect Special Pages for delete and protect action" (T295611; T296203; 4/4) (duration: 25m 50s)