Page MenuHomePhabricator

Create an easy way to link people to an open New Discussion Tool
Closed, ResolvedPublic

Description

This task is about making it easy to generate a link that, when clicked, will lead someone to an open New Discussion Tool on a specified page.

Requirements

Meta
The person clicking/tapping the URL may not be able to use the new discussion tool for technical reasons (browser without/with disabled JavaScript, mobile interface etc.), and they should still receive an interface that enables them to write their topic.

Behavior

  1. Open the Reply or New Discussion Tool
  2. Switch to the visual mode if you are not already in it
  3. Draft a message

Current

  1. It does not currently appear to be possible to generate a link, that when clicked, will open the New Discussion tool (e.g. https://en.wikipedia.org/wiki/User_talk:Stussll?dtenable=1)

Desired

  1. ✅ Insert a link to a talk page you've specified, that when clicked, will open the New Discussion Tool (or the new section form if the person clicking the link does not have the New Discussion Tool enabled).

Use cases

  • Use case 1: When talking with someone who is new to contributing to Wikipedia, "I" will sometimes invite this person to contact me if they have any questions in the future by leaving a message on my user talk page. [i] It would be nice for the person "I" am offering help to to be able to start drafting a message to "me" in one step.
  • Use case 2: Notice a Junior Contributor editing article(s) related to a WikiProject you are a part of. Reach out to this Junior Contributor making them aware there are other people on Wikipedia who likely have similar interests to them. Let this Junior Contributor know that if they ever want to talk with the people at this WikiProject, they can do so by starting a conversation on the WikiProject's talk page (e.g. https://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Medicine).

Notes

We can work on this task once we have implemented a way to create links to the New Discussion Tool. This work will happen in T270797.


i. https://en.wikipedia.org/w/index.php?title=User_talk:WhatsImportantToMe&type=revision&diff=1006848867&oldid=1005023523&diffmode=source

Event Timeline

ppelberg added a subscriber: Whatamidoing-WMF.

Adding "Use case 2" to the task description. @Whatamidoing-WMF shared this use case during today's stand up.

Couldn’t we just reuse the normal action=edit&section=new URL? Please note that the person who receives the URL may not be able to use the new discussion tool for technical reasons (browser without/with disabled JavaScript, mobile interface etc.), and they should still receive an interface that enables them to write their topic.

Couldn’t we just reuse the normal action=edit&section=new URL?

As far as I can tell, the New Discussion Tool does not currently cause a change in the page's URL:

Screen Shot 2021-02-15 at 3.30.37 PM.png (1×2 px, 434 KB)

Please note that the person who receives the URL may not be able to use the new discussion tool for technical reasons (browser without/with disabled JavaScript, mobile interface etc.), and they should still receive an interface that enables them to write their topic.

Good point and agreed. I've added this to the now-created ===Requirements section of the task description.

matmarex added a subscriber: matmarex.

This will automatically work once T282204: Handle URLs for starting new sections is done. (We can move this to QA once that is in QA.)

You'll be able to just use the normal section=new links like https://en.wikipedia.org/w/index.php?title=User_talk:Stussll&action=edit&section=new (right-click the "New section" tab, then "Copy link address").

I'm not sure if you meant that you want to link people to an open New Discussion Tool even if they do not have the beta feature enabled in preferences. But that will be possible too, just add &dtenable=1 to the link, like https://en.wikipedia.org/w/index.php?title=User_talk:Stussll&action=edit&section=new&dtenable=1.

ppelberg claimed this task.

This will automatically work once T282204: Handle URLs for starting new sections is done. (We can move this to QA once that is in QA.)

You'll be able to just use the normal section=new links like https://en.wikipedia.org/w/index.php?title=User_talk:Stussll&action=edit&section=new (right-click the "New section" tab, then "Copy link address").

I'm not sure if you meant that you want to link people to an open New Discussion Tool even if they do not have the beta feature enabled in preferences. But that will be possible too, just add &dtenable=1 to the link, like https://en.wikipedia.org/w/index.php?title=User_talk:Stussll&action=edit&section=new&dtenable=1.

What is implemented worked as I was expecting: the https://en.wikipedia.org/w/index.php?title=User_talk:Stussll&action=edit&section=new URL will "behave" according to whether the person clicking on said link has the New Discussion Tool enabled.

Although, it's good to know people have the option to specify that the New Discussion Tool be opened, regardless of how the person clicking said button's settings are configured.