https://bugzilla.wikimedia.org/show_bug.cgi?id=19811

           Summary: New parameter for file size and or image dimensions
           Product: MediaWiki
           Version: 1.16-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Images and files
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I'd like to request a new parameter for image and gallery tags to display the
file's file size and dimensions for images. Let's call it "fileinfo".

<pre>[[File:Example.jpg|300px|thumb|fileinfo]]</pre>
This would return e.g. "400×300 (24 KB)" in the thumb.

<pre>[[File:Example.jpg|300px|thumb|Bla - |fileinfo]]</pre>
This would return e.g. "Bla - 400×300 (24 KB)" in the thumb.

<pre><gallery perrow="3" fileinfo="true">
File:Example1.jpg|Bla 1
File:Example2.jpg|Bla 2 - 
File:Example3.jpg|Bla 3<br>
File:Example4.jpg|
File:Example.ogg|Bla x
File:Example.pdf|Bla y
</gallery></pre>
This would would return a gallery with the file info behind the file's caption,
e.g. "Bla 2 - 400×300 (24 KB)" or "Bla 3
400×300 (24 KB)".
If you decide to add the fileinfo in green as on search results a seperator may
not be urgely needed as in the example above.

May be smart to also allow file info in galleries per file:
<pre><gallery perrow="3">
File:Example1.jpg|Bla 1|fileinfo
File:Example2.jpg|Bla 2|fileinfo
File:Example3.jpg|Bla 3|fileinfo
File:Example4.jpg|Bla 4|fileinfo
File:Example.ogg|Bla x
File:Example.pdf|Bla y
</gallery></pre>
This would return the file info behind the only behind the 4 image captions.

I wonder why Commons didn't request it yet or created an own solution. It seems
so handy to me.

I changed getShortDesc() in Generic.php so it displays KB instead of bytes
which is pretty useless for files btw ;)


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to