Last modified: 2014-03-01 00:12:03 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'.
"{{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?