Page MenuHomePhabricator

Show reason, date in CitationNeededContextItem when available
Closed, ResolvedPublic

Description

Before:

image.png (181×416 px, 16 KB)

After:

image.png (232×418 px, 22 KB)

Date only:

image.png (181×408 px, 19 KB)

Reason only:

image.png (231×419 px, 22 KB)

Event Timeline

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 assigned this task to Esanders.
Jdforrester-WMF added a project: User-notice.
Jdforrester-WMF subscribed.

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

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.

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.