Last modified: 2013-08-30 23:13:24 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 T55201, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53201 - VisualEditor: Need way to insert templates that set both key and value for a parameter into a template invocation, like {{subst:DATE}}
VisualEditor: Need way to insert templates that set both key and value for a ...
Status: RESOLVED WONTFIX
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Rob Moen
:
Depends on:
Blocks: ve-templatesupport
  Show dependency treegraph
 
Reported: 2013-08-22 07:47 UTC by Robin Green
Modified: 2013-08-30 23:13 UTC (History)
4 users (show)

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


Attachments

Description Robin Green 2013-08-22 07:47:59 UTC
Currently there is no way to use {{subst:DATE}} in a template invocation in VisualEditor. If you try to paste it into the value of a date field, it won't work because you get

|date = date=August 2013

which won't parse.

VisualEditor should actually set the date automatically, always, for such templates (e.g. refimprove).
Comment 1 James Forrester 2013-08-30 23:13:24 UTC
Yes(In reply to comment #0)
> Currently there is no way to use {{subst:DATE}} in a template invocation in
> VisualEditor. If you try to paste it into the value of a date field, it won't
> work because you get
> 
> |date = date=August 2013
> 
> which won't parse.

Yes. This is by design; templates that are designed around wikitext's structure won't work in general for editing. Note that "{{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}}" works fine; auto-inserting this would solve the problem.

> VisualEditor should actually set the date automatically, always, for such
> templates (e.g. refimprove).

I agree; that is bug 51428 (and its corresponding implementation in VisualEditor).

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


Navigation
Links