Page MenuHomePhabricator

Show reason, date in CitationNeededContextItem when available
Closed, ResolvedPublic

Description

Before:

After:

Date only:

Reason only:

Event Timeline

Esanders created this task.Dec 14 2020, 2:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 14 2020, 2:43 PM
Esanders updated the task description. (Show Details)Dec 14 2020, 2:45 PM

Change 649354 had a related patch set uploaded (by Esanders; owner: Esanders):
[mediawiki/extensions/Cite@master] Show reason and/or date in CitationNeededContextItem

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

Change 649354 merged by jenkins-bot:
[mediawiki/extensions/Cite@master] Show reason and/or date in CitationNeededContextItem

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

Jdforrester-WMF closed this task as Resolved.Dec 14 2020, 4:40 PM
Jdforrester-WMF assigned this task to Esanders.
Jdforrester-WMF added a project: User-notice.
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

Might be nice to put in the next Tech/News.

Restricted Application added a project: User-Ryasmeen. · View Herald TranscriptDec 14 2020, 4:40 PM
Johan added a subscriber: Johan.Dec 14 2020, 8:34 PM

Something like this? (Maybe edited for style or clarity.)

"The {{citation needed}} template shows when a statement in a Wikipedia article needs a source. If you click on it when you edit with the visual editor there is a popup that explains this. Now it can also show the reason and when it was added."

Something like this? (Maybe edited for style or clarity.)

"The {{citation needed}} template shows when a statement in a Wikipedia article needs a source. If you click on it when you edit with the visual editor there is a popup that explains this. Now it can also show the reason and when it was added."

That sounds great.

Trizek added a subscriber: Trizek.Dec 22 2020, 3:37 PM

I'd like to implement this on my wiki. How do I proceed? Is it documented somewhere?

Documentation task is here T265878, but we need to close out T265907 before rolling out to more wikis. Which wiki were you thinking?

If the wiki is already using the feature successfully, you can copy the params config from en.wiki: https://en.wikipedia.org/wiki/MediaWiki:Visualeditor-template-tools-definition.json

Documentation task is here T265878, but we need to close out T265907 before rolling out to more wikis. Which wiki were you thinking?

French Wikipedia.

I checked on the doc but I'm not sure of what I'm supposed to do if I copy the English page. What the different parameters do?

If I read T265878's description correctly, I would just have to create the file and add the multiple redirects to it?

Because fr.wiki uses the same template for a simple "citation needed" number and also wrapped text (Template:Citation_needed_span on English Wikipedia) I would advise not setting it up until T265907 is resolved, otherwise people using the tool on wrapped text usages would get the text deleted.