Page MenuHomePhabricator

Provide a MediaWiki extension(?) and VisualEditor/wikitext tool for inserting and (re-)formatting dates
Open, LowestPublic

Description

197.218.80.136 says:

Problem statement:
It is not currently possible to insert or format dates using VisualEditor without writing them manually or using a template. This is a common tool in most text-editors for the past decade, e.g. Notepad, MS-DOS Editor.

Use Case:
As an editor, when writing a document about present, past or conceivably future events one needs to insert a date.
As an editor, when writing a document one may need to reformat the inserted date (e.g. change from ISO 2010/01/01 to 01 January 2010)
As an editor, when writing a reference, often the current date is entered as the retrieval date because websites sometimes go down, and it is useful to have a reference point.

Suggestions:
Datetime tool - This would be a standard dialog to choose a date, and its format, see Libreoffice
A simple button that inserts text containing the current client date using javascript (and ISO standard date), the user can later change this.
Tool that inserts and formats the <time> tag - see (https://developer.mozilla.org/en/docs/Web/HTML/Element/time).

Event Timeline

This seems of limited use. Maybe when we have a more flexible toolbar, but at the moment this would just be clutter.

Jdforrester-WMF renamed this task from Tool for inserting and (re-)formatting dates to Provide a MediaWiki extension(?) and VisualEditor/wikitext tool for inserting and (re-)formatting dates.Aug 10 2016, 10:14 PM
Jdforrester-WMF triaged this task as Lowest priority.
Jdforrester-WMF moved this task from To Triage to Freezer on the VisualEditor board.
Harej subscribed.

I believe this should be implemented first as a gadget so that we have a proof of concept.