Page MenuHomePhabricator

Add edit notice element to New Discussion Tool
Closed, ResolvedPublic

Assigned To
Authored By
ppelberg
Nov 30 2020, 8:00 PM
Referenced Files
F33947252: image.png
Dec 16 2020, 5:03 PM
F33947248: image.png
Dec 16 2020, 5:03 PM
F33947246: image.png
Dec 16 2020, 5:03 PM
F33947250: image.png
Dec 16 2020, 5:03 PM
F33947254: image.png
Dec 16 2020, 5:03 PM
F33947256: image.png
Dec 16 2020, 5:03 PM
Tokens
"Like" token, awarded by ToBeFree.

Description

This task is about implementing a standardized "edit notice" [i] component within the New Discussion Tool's UI.

Requirements

Meta

  • Tools: New Discussion Tool
  • Platforms: Desktop and Mobile

Stories

  • As a Junior or Senior Contributor who has opened the New Discussion Tool on desktop or mobile, I want to know what – if any – instructions /guidelines I should consider before starting a new discussion topic on a talk page.

Background

There are four kinds of edit notices that can appear within the context of talk pages:

  1. Individual talk pages can contain page-specific messages people see when they click Edit. These messages are defined via the MediaWiki:Editnotice-N-Title user interface message.
  2. All talk pages within a given namespace can also contain the same message people see when they click Edit on a page within said namespace. These messages are defined via the MediaWiki:Editnotice-N user interface message.
  3. All talk pages, within any talk namespace [ii], can also contain the same message people see when they click Edit on a page within a talk namespace. This message is defined via the MediaWiki:Talkpagetext user interface message.
  4. All talk pages that have not yet been created can contain a generic message people see when they click Edit on a page that does not currently exist. This message is defined via the MediaWiki:Newarticletext user interface message.

This task is about creating a UI "component" that will appear when someone opens the New Discussion Tool on a page that has at least one of the three edit notice user interface messages above defined.

Minimum test case

  1. Visit a page on a wiki: 1) Where the New Discussion Tool is available and 2) That contains an edit notice. E.g. https://cs.wikipedia.org/wiki/Wikipedie:Potřebuji_pomoc.
  2. Click the Add topic button at the top of the page
  3. Notice the New Discussion Tool opens with the following edit notice above the Title field:
Upozornění
Prosíme, nevkládejte dotazy nesouvisející s Wikipedií. Tato stránka není všeobecnou internetovou poradnou. Hledáte-li všeobecnou poradnu, můžete vyzkoušet službu Ptejte se knihovny.

Open questions


i. https://www.mediawiki.org/wiki/Manual:Interface/Edit_notice
ii. Any namespace which has odd namespace number (1=Talk, 3=User talk etc.).

Event Timeline

Regarding 'talkpagetext': I think we shouldn't display this message. I had a look at the overrides on Wikimedia wikis, and all of them are mostly about signing your comments with ~~~~ (and some even include an image of the signature button in the old wikitext editor toolbar).

If folks want to have a link to https://en.wikipedia.org/wiki/Wikipedia:Talk_page_guidelines (or similar pages) above the tool, then we should introduce a new message to allow this. I'm a little surprised that no one has requested this for the reply tool yet. (Maybe that help page isn't as useful there, since most of it is actually about guidelines on using wikitext and the wikitext editor, but I imagine folks will want to have a link to something.)

A few representative examples:

Full list:

af.wikipedia ar.wikipedia az.wikipedia bg.wikipedia bg.wikiquote bn.wikipedia bs.wikipedia ca.wikipedia ca.wikibooks ca.wikiquote ce.wikipedia ckb.wikipedia cs.wikipedia de.wikibooks diq.wikipedia el.wikipedia en.wikipedia en.wikibooks en.wikinews en.wikiversity en.wiktionary es.wikipedia es.wikinews es.wikiquote es.wikiversity et.wikipedia fa.wikipedia fa.wikiquote fi.wikipedia fi.wikiquote fr.wikipedia fr.wikibooks fr.wikinews gag.wikipedia gl.wikipedia gl.wikibooks gl.wikiquote gl.wikisource gu.wikipedia ha.wikipedia he.wikipedia he.wikibooks he.wikinews he.wikisource hi.wikipedia hr.wikipedia ilo.wikipedia is.wikipedia is.wikibooks is.wikiquote it.wikivoyage ja.wikipedia ja.wikibooks ja.wikinews ja.wiktionary kk.wikipedia km.wikipedia km.wiktionary ko.wikipedia ko.wikibooks ko.wikisource ko.wiktionary krc.wikipedia ksh.wikipedia la.wikipedia lv.wikipedia my.wikipedia ne.wikipedia nn.wikipedia no.wikinews oc.wikipedia pa.wiktionary pl.wikinews pms.wikipedia pnb.wikipedia ps.wikipedia ro.wikipedia ro.wikiquote ru.wikipedia ru.wikinews se.wikipedia simple.wikipedia simple.wikiquote simple.wiktionary sl.wikipedia sq.wikinews sr.wikipedia sr.wikiquote sr.wikisource th.wikipedia th.wikibooks th.wikiquote th.wiktionary tr.wikipedia tr.wikibooks tr.wikinews tr.wiktionary ur.wikipedia ur.wikiquote vi.wikipedia vi.wiktionary yi.wikipedia zh-yue.wikipedia zh.wikipedia zh.wikibooks zh.wikinews zh.wikiquote zh.wikisource zh.wiktionary

Change 649944 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/DiscussionTools@master] Show edit notices in the reply tool (and new discussion tool)

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

Thanks for doing that research @matmarex
I agree an wonder if we need it on the message level of the page as opposed to the page frame. cc @ppelberg

We can search for overridden messages with global search tool:

https://global-search.toolforge.org/?q=.&regex=1&namespaces=8&title=Talkpagetext

161 wikis (including sister projects)

Notes from today's standup
As we discussed during today's standup meeting, this task cannot be worked on until the newly-created T270454 is resolved.

I dusted off my patch from December, and set up the demo wiki linked above. For testing, I imported the edit notice from https://en.wikipedia.org/wiki/Talk:Main_Page to https://patchdemo.wmflabs.org/wikis/1469c4ab766b236d440e43dc73bfe977/w/index.php/Talk:Main_Page (it's particularly bad).

I'm not sure what the next steps here are. Are we prioritizing this now?

The patch is also showing the notice in the reply tool, which I don't think is asked for in the task (nor do I think it is a good idea).

ppelberg moved this task from Untriaged to Next Quarter on the Editing-team board.
ppelberg moved this task from Backlog to Triaged on the DiscussionTools board.

The patch is also showing the notice in the reply tool, which I don't think is asked for in the task (nor do I think it is a good idea).

1. @matmarex can you revise the patch you linked to in T269033#6858570 such that edit notices are shown in the New Discussion Tool exclusively.

Change 649944 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] Show edit notices in the new discussion tool

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

ppelberg updated the task description. (Show Details)
ppelberg added a project: Editing QA.

Test Instructions needed.

Done.