Last modified: 2014-03-01 00:12:03 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 T51954, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49954 - VisualEditor: Provide a neater way to edit transclusions that do not take a pipe (e.g. {{formatnum:…}})
VisualEditor: Provide a neater way to edit transclusions that do not take a p...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-21 12:15 UTC by Ltrlg
Modified: 2014-03-01 00:12 UTC (History)
3 users (show)

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


Attachments

Description Ltrlg 2013-06-21 12:15:48 UTC
If I try to edit a number in a {{formatnum:…}}, the VisualEditor displays the template’s edition window, saying it is (for example) the 'formatnum:959719' template, without any parameter. So if I want to change the number, I need to remove the 'template' and then to add a new one, for example 'formatnum:958719'.

The editor should allow changing the number without having to remove the 'template'.
Comment 1 James Forrester 2013-06-21 15:14:01 UTC
"{{formatnum:…}} is not a template" - true

For this, Parsoid takes wikitext like:

  This was {{formatnum:1234567890}} years ago.

… and gives us HTML of:

<p data-parsoid="…">This was <span about="#mwt1" typeof="mw:Transclusion" data-mw="{'target':{'wt':'formatnum:1234567890','function':'formatnum'}" data-parsoid="…">1,234,567,890</span> years ago.</p>

… so maybe we'd want to special-case on 'function':'formatnum' so that they're easier to edit?

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


Navigation
Links