Page MenuHomePhabricator

Add destination buttons to landing page
Closed, ResolvedPublic3 Estimated Story Points

Description

Add 3 buttons to the Special:CreatePage landing page. The three buttons should be the same as the 3 buttons here:
https://en.wikipedia.org/wiki/Wikipedia:Autoconfirmed_article_creation_trial/Landing_page_mock-up

Don't worry about adding any of the additional text or fancy page formatting yet.

The destinations of the 3 buttons should match the destinations in the mock-up (and pass along the subpage from the URL). The whole page should be a template so that it doesn't get translated in TranslateWiki. The title of the requested page should also be passed into the template as a parameter.

Make the h1 header "Create page".

Event Timeline

kaldari updated the task description. (Show Details)
kaldari updated the task description. (Show Details)
kaldari set the point value for this task to 3.Aug 1 2017, 11:28 PM
kaldari triaged this task as Medium priority.Aug 1 2017, 11:29 PM

Change 369592 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/extensions/ArticleCreationWorkflow@master] Add a template's contents as the landing page

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

The patch above adds the contents of [[Template:CreatePage landing page]] (or whatever template is specified by [[MediaWiki:acw-landing-page-template]]) to the Special:CreatePage landing page.

The destination page is passed in to the template as the page parameter.

The contents of the template will need to be created, and the template protected.

kaldari renamed this task from Add 3 buttons to landing page to Add destination buttons to landing page.Aug 3 2017, 7:32 AM

@Legoktm: Can you take a look at the configuration implementation at https://gerrit.wikimedia.org/r/369592 and let us know if we're doing this right? We're using the new extension configuration system that you built, but there aren't a lot of other examples to compare against since we're an early adopter :)

Samwilson added a subscriber: Bawolff.

I've updated the configuration names to use the $wgArticleCreation prefix.

Aug 10 11:43 PM @Bawolff :
Keep in mind, onAlternativeEdit might not run for other things that replace the edit box. It might be better to use an earlier hook (Maybe overriding the action handler or sommething - not sure).

I'm not sure we mind (I'm not sure we don't either), because the current hook will catch most situations that we're interested in I think. Either way, it's probably a separate issue to the one at hand.

Change 369592 merged by jenkins-bot:
[mediawiki/extensions/ArticleCreationWorkflow@master] Add a system message as the landing page

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