On May 13, 2014 6:32 AM, "Gergo Tisza" <gtisza@wikimedia.org> wrote:
>
> On Mon, May 12, 2014 at 4:22 PM, Gnangarra <gnangarra@gmail.com> wrote:
>>
>> just reading through and one issue that stands out with (e.g.: [[file:foo.png|thumb|no-viewer|…]]). format is that many of the small image files are embedded within infoboxes, templates and tables would it be more efficient to restrict media viewer to only images that use the syntax [[File:foo.jpg|thumb|....]] within an article body ignoring images embedded with in {{.....}}  and encourage editors to shift flags, small icons, maps etc into templates.

Gnangarra's suggestion seems very sensible. Rather than mediaviewer launching trying to include everything, and being 'wrong' many times, causing community discontent and lots of 'emergency' editing, ... only enable it for a very large subset which will have very low negatives, and then have a productive discussion with the community about rolling the feature out on more images. Fine tuning.

> MediaViewer uses the HTML code of the page to make decisions. Using the wikitext directly would create way more problems than it would solve.

'thumb' already adds a css class to the HTML that you can use.

>> Alternatively just use the [[file:Foo.jpg|thumb |....]] as the key for media viewer to display otherwise it just ignores the file 
>
>
> There are images that do not use that syntax but we want to display them, for example infobox main images, gallery templates, images on the main page...

But you could launch without the infobox images...?

Maybe infobox templates could add the 'thumb' class in the right part of the html to trigger the correct viewer effect?

<gallery> also uses the 'thumb' class.

Does the mediaviewer register a pageview on the image page when the viewer is opened? If not, images on the mainpage may not be good candidates for mediaviewer, as that is one desired outcome of being on the front page.

Also the mediaviewer commons image parser doesnt work well for complex pages, such as images typically seen on the frontpage of the projects.  The mediaviewer for Sitta europaea wildlife 2 1.jpg (on en.wp mp right now) only gives the filename - the description is missing.

--
John