Page MenuHomePhabricator

Images: Templated image options are not properly marked encapsulated
Closed, ResolvedPublic

Description

See this example:

[subbu@earth tests] echo '[[File:Telephone exchange 1.svg|thumb|{{echo|261px}}]]' | node parse --wt2wt
[[File:Telephone exchange 1.svg|thumb|261px]]


Version: unspecified
Severity: normal

Details

Reference
bz51921

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:06 AM
bzimport set Reference to bz51921.

This now round-trips ok:

echo '[[File:Telephone exchange 1.svg|thumb|{{echo|261px}}]]' | node parse --wt2wt
[[File:Telephone exchange 1.svg|thumb|{{echo|261px}}]]

It is however still not marked as template-affected, nor is the value exposed as HTML so that the template parameters etc can be edited.

Change 110095 had a related patch set uploaded by Subramanya Sastry:
WIP: (Bug 51921) Set up data-mw for all img attrs.

https://gerrit.wikimedia.org/r/110095

Change 110095 had a related patch set uploaded by Subramanya Sastry:
WIP: Set up data-mw for all templated image attributes.

https://gerrit.wikimedia.org/r/110095

Change 110095 merged by jenkins-bot:
Set up data-mw for all templated image attributes.

https://gerrit.wikimedia.org/r/110095