Page MenuHomePhabricator

VisualEditor: Provide a way for users to insert variable magic words
Open, LowPublic

Description

https://www.mediawiki.org/wiki/Help:Magic_words#Variables

{{CURRENTYEAR}}, {{CURRENTMONTH}], etc. - possibly a pop-up inserter with a brief description of what each do (and their current value?)


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=62740

Details

Reference
bz49996

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:50 AM
bzimport set Reference to bz49996.

Feel like taking this on? It'd be a step towards fixing bug 50855 in general… Big fun challenge. :-)

So we need to:

  • Alter TemplateData to provide documentation for magic words
  • Add extra field to template insert dialog for the addition of magic words.

Actually, maybe we should just have VE query api.php?action=query&meta=siteinfo&siprop=magicwords, then load a documentation message for it in the given language.

(In reply to Alex Monk from comment #3)

Actually, maybe we should just have VE query
api.php?action=query&meta=siteinfo&siprop=magicwords, then load a
documentation message for it in the given language.

no, ignore this

Apparently some of the magic words involving 'colon arguments' will need Parsoid/VE DM support.

(In reply to Alex Monk from comment #5)

Apparently some of the magic words involving 'colon arguments' will need
Parsoid/VE DM support.

Does Parsoid not split out the zeroth argument or something? If so, is there a bug that this can be made semi-dependent on?

2014-06-16 22:00:29 <Krinkle> but we'll need to implemetn support for the colon argument in Parsoid and VisualEditor DM first.

Change 140445 had a related patch set uploaded by Alex Monk:
[WIP] Allow TemplateData to output information about magic words

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

Krenair removed Krenair as the assignee of this task.Sep 19 2015, 1:53 AM
Krenair added a subscriber: Krenair.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 19 2015, 1:53 AM
Restricted Application added a subscriber: Luke081515. · View Herald TranscriptFeb 7 2016, 10:04 PM

Change 140445 had a related patch set uploaded (by Jforrester):
[WIP] Allow TemplateData to output information about magic words

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

Change 278429 had a related patch set uploaded (by Alex Monk):
[WIP] Add MagicWord::getDocs and i18n messages for documentation of magic words

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

Change 140445 abandoned by Alex Monk:
[WIP] Allow TemplateData to output information about magic words

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

Change 278429 abandoned by Alex Monk:
[WIP] Add MagicWord::getDocs and i18n messages for documentation of magic words

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