Last modified: 2014-01-06 01:27:08 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 T57977, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55977 - "Software" field of metadata on file description page is difficult to link correctly
"Software" field of metadata on file description page is difficult to link co...
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.22.0
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-21 21:01 UTC by Redrose64
Modified: 2014-01-06 01:27 UTC (History)
8 users (show)

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


Attachments

Description Redrose64 2013-10-21 21:01:45 UTC
On a file description page, there is a Metadata section near the bottom. This has two columns, one for item names the other for values. Each name/value pair has a corresponding pair of pages in MediaWiki: namespace, containing the text to show for the name, or a formatting template for the value.

The pages for the values sometimes contain links, and it is possible to modify the input value $1 when constructing the link, in order to link to a suitable page. See for example http://en.wikipedia.org/wiki/MediaWiki:Exif-make-value (which formats the value associated with http://en.wikipedia.org/wiki/MediaWiki:Exif-make ) In this page, some makes of camera are given a piped link because the straight link would go to the wrong page - for example, [[Apple]] would go to the fruit, but [[Apple Inc.|Apple]] goes to the correct page.

Something similar is needed for http://en.wikipedia.org/wiki/MediaWiki:Exif-software-value (associated with http://en.wikipedia.org/wiki/MediaWiki:Exif-software ) but here the problem is that if $1 merely states a bare version number like 6.0, that might be ambiguous - in the context of an Apple iPhone, it should link to http://en.wikipedia.org/wiki/IOS_6 but if the camera is not an iPhone, that's clearly the wrong link. Either the value passed into $1 needs the camera make adding, or a second parameter needs to be added which has the camera make.

See http://en.wikipedia.org/wiki/File_talk:Torre_dei_Becci,_June_2013.jpg for background
Comment 1 Bawolff (Brian Wolff) 2013-10-22 00:40:06 UTC
(In reply to comment #0)

> 
> Something similar is needed for
> http://en.wikipedia.org/wiki/MediaWiki:Exif-software-value (associated with
> http://en.wikipedia.org/wiki/MediaWiki:Exif-software ) but here the problem
> is
> that if $1 merely states a bare version number like 6.0, that might be
> ambiguous - in the context of an Apple iPhone, it should link to
> http://en.wikipedia.org/wiki/IOS_6 but if the camera is not an iPhone, that's
> clearly the wrong link. Either the value passed into $1 needs the camera make
> adding, or a second parameter needs to be added which has the camera make.
> 
> See http://en.wikipedia.org/wiki/File_talk:Torre_dei_Becci,_June_2013.jpg for
> background

Not that it really helps, but software is not supposed to really have anything to do with the camera make and model. Software is supposed to be what software processed the photo after the camera took the picture. /me blames camera manufactures...
Comment 2 Technical 13 2013-10-22 01:53:25 UTC
I agree with you Bawolff that the camera manufacturers are to blame here, I think that adding a $2 parameter to [[MediaWiki:Exif-software-value]] that contains the same value as $1 does in [[MediaWiki:Exif-make-value]] then it would be easy to use parser functions or whatnot to say if $2 is Apple and $1 is 6.0 then link to iOS_6.
Comment 3 Bawolff (Brian Wolff) 2013-10-22 14:20:11 UTC
I had a patch that added a parser function which could access other metadata fields (Gerrit change #67047. Its been in limbo for a while now). That is one possible solution to this problem.
Comment 4 Bawolff (Brian Wolff) 2013-10-22 15:38:05 UTC
(In reply to comment #2)
> I agree with you Bawolff that the camera manufacturers are to blame here, I
> think that adding a $2 parameter to [[MediaWiki:Exif-software-value]] that
> contains the same value as $1 does in [[MediaWiki:Exif-make-value]] then it
> would be easy to use parser functions or whatnot to say if $2 is Apple and $1
> is 6.0 then link to iOS_6.

Hmm. It seems just really arbitrary to me, given the fields are supposed to be independant.

What about special casing it so if the make is apple, and software is 6.0, then we display exif-software-value-6.0 rather then the normal msg. Somehow this feels like it would be less arbitrary to me, although it would still be pretty arbitrary.

Is 6.0 the only value this happens for?
Comment 5 Technical 13 2013-10-22 15:49:09 UTC
According to the discussion redrose linked, it's not the only one.  There is also at least a 7.2.x with a similar issue.  Being able to get a wider set of important values and using parser functions is most logical to me.  How those values are obtained is unimportant whether it's done with a $2 variable or the new parser function you mentioned above.

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


Navigation
Links