Page MenuHomePhabricator

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

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

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 subscribed.

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

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: rmoen.