Last modified: 2014-02-15 00:08: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 T56803, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54803 - Images: {{largethumb}} template on nlwiki getting substituted on save
Images: {{largethumb}} template on nlwiki getting substituted on save
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal major
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-30 21:18 UTC by Romaine
Modified: 2014-02-15 00:08 UTC (History)
9 users (show)

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


Attachments

Description Romaine 2013-09-30 21:18:48 UTC
The VisualEditor substitutes templates that shouldn't been substituted. The largethumb template got substituted on several occasions, like:

https://nl.wikipedia.org/w/index.php?title=Managua_%28stad%29&diff=38749742&oldid=38743043

If this continues to happen too long, we are forced to disable the VisualEditor for everyone as it changes things that absolutely should not be changed.
Comment 1 James Forrester 2013-10-03 20:55:46 UTC
Is this just the {{largethumb}} template, or are there others? (Templates that define some but not all of the parameters of an image are particularly troublesome.)
Comment 2 Romaine 2013-10-14 16:22:52 UTC
I haven't seen it happen with other templates so far.
Comment 3 Ed Sanders 2013-10-22 13:49:12 UTC
This doesn't round trip in Parsoid.
Comment 4 Kelson [Emmanuel Engelhart] 2013-12-06 12:22:46 UTC
Wanted to create an offline copy of nlwiki; but this bug is, for this usage, a showstopper.

The rendering is awful (but this is nothing new), for example:
http://parsoid-lb.eqiad.wikimedia.org/nlwiki/Abraham_Lincoln?oldid=39371115

... and such type of templates are widely used: ~10.000 articles only for {{largethumb}} on nlwiki. This bumps the whole size of the dump by a factor 2.

@James, good news: I have had a look a little bit around and I don't have found other templates working on the same principle.
Comment 5 Gabriel Wicke 2013-12-06 19:36:55 UTC
(In reply to comment #4)
> Wanted to create an offline copy of nlwiki; but this bug is, for this usage,
> a
> showstopper.
> 
> The rendering is awful (but this is nothing new), for example:
> http://parsoid-lb.eqiad.wikimedia.org/nlwiki/Abraham_Lincoln?oldid=39371115
> 
> ... and such type of templates are widely used: ~10.000 articles only for
> {{largethumb}} on nlwiki. This bumps the whole size of the dump by a factor
> 2.
> 
> @James, good news: I have had a look a little bit around and I don't have
> found
> other templates working on the same principle.

@Kelson, that is great news! Scott is looking into image rendering issues, so assigning to him. We should be able to add a special-case hack for this template and edit-protect affected images.

For proper editing the thumb parameter should be pulled out, as in |thumb|{{large}} with large returning just something like '400px'. That will require some convincing and bot activity.
Comment 6 Kelson [Emmanuel Engelhart] 2013-12-07 17:25:38 UTC
@Gabriel Do you mean Parsoid won't be able to parse this template in the same way like the PHP one does?

After discussing a little bit about that on the nlwiki IRC channel, they are (of course) not so happy about that. Not only because the thousands of pages but also because the template is old and a lot of people would have then to change their habits.
Comment 7 Gabriel Wicke 2013-12-07 18:26:05 UTC
We can parse it (so that it renders as expected), but I don't see a sane way to represent multiple attributes generated by the same template for visual editing.
Comment 8 Kelson [Emmanuel Engelhart] 2013-12-08 19:41:00 UTC
If the Parsoid will be able to parse this, this would at least avoid bad rendering (thumbnail at the right size) and fix (selfishly) my concern :)
Comment 9 Gerrit Notification Bot 2014-02-05 22:31:36 UTC
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
Comment 10 Gerrit Notification Bot 2014-02-14 21:37:27 UTC
Change 110095 merged by jenkins-bot:
Set up data-mw for all templated image attributes.

https://gerrit.wikimedia.org/r/110095
Comment 11 Gabriel Wicke 2014-02-15 00:08:03 UTC
Scheduled for deployment next Wednesday.

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


Navigation
Links