Page MenuHomePhabricator

Using ref inside formatnums causes parser error
Closed, DuplicatePublic

Description

Author: lunasantin

Description:
Any use of a <ref> tag inside a {{formatnum:}} seems to result in a UNIQ marker getting dumped into the final output.

Specifically, I am looking at an enwiki article[1]. An infobox on the page[2] formats one variable using formatnum, and in this case the variable includes a ref tag (which in turn includes a citation template[3]).

As best as I can tell, the only steps necessary to reproduce this are to use any formatnum with any ref. I specifically tested this with {{formatnum:<ref>Hi</ref>}} if that helps any.

[1] http://en.wikipedia.org/w/index.php?title=Bettendorf%2C_Iowa&oldid=225101322
[2] http://en.wikipedia.org/wiki/Template:Infobox_Settlement
[3] http://en.wikipedia.org/wiki/Template:Cite_web


Version: unspecified
Severity: enhancement

Details

Reference
bz14792

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:12 PM
bzimport added a project: Cite.
bzimport set Reference to bz14792.
bzimport added a subscriber: Unknown Object (MLST).

You cannot user <tags> inside formatnum, but the way it currently fails is probably not the best either.

It may be possible to use {{#tag:}} to force correct parsing order.

  • This bug has been marked as a duplicate of bug 2257 ***