Last modified: 2014-07-16 18:00:53 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51996, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49996 - VisualEditor: Provide a way for users to insert variable magic words
VisualEditor: Provide a way for users to insert variable magic words
Status: PATCH_TO_REVIEW
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Alex Monk
:
Depends on:
Blocks: 50855 65644
  Show dependency treegraph
 
Reported: 2013-06-22 00:15 UTC by James Forrester
Modified: 2014-07-16 18:00 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2013-06-22 00:15:14 UTC
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?)
Comment 1 James Forrester 2014-06-12 21:28:32 UTC
Feel like taking this on? It'd be a step towards fixing bug 50855 in general… Big fun challenge. :-)
Comment 2 Alex Monk 2014-06-13 21:59:58 UTC
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.
Comment 3 Alex Monk 2014-06-14 15:57:13 UTC
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.
Comment 4 Alex Monk 2014-06-16 18:56:55 UTC
(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
Comment 5 Alex Monk 2014-06-16 22:47:10 UTC
Apparently some of the magic words involving 'colon arguments' will need Parsoid/VE DM support.
Comment 6 James Forrester 2014-06-18 03:02:08 UTC
(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?
Comment 7 Alex Monk 2014-06-18 16:56:07 UTC
2014-06-16 22:00:29	<Krinkle>	but we'll need to implemetn support for the colon argument in Parsoid and VisualEditor DM first.
Comment 8 Gerrit Notification Bot 2014-06-18 19:31:02 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links