Because I'm a whore for all things gadget... I made a gadget for this. My Preferences > Gadgets > Categories > Tag<br><br>Note: It Magnus's code doesn't check where you are, so you can tag any page (not just images).<br>
<br>-Jon<br><br>PS - I think this is very cool.<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 14:28, Magnus Manske <span dir="ltr"><<a href="mailto:magnusmanske@googlemail.com">magnusmanske@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Now that I have your attention :-)<br>
<br>
I've cooked up a simple tagging system for Commons. It uses the<br>
category system by prefixing tag "categories" with TAG, e.g.<br>
[[Category:TAG:Flower]]. TAG categories will be "flat", so<br>
intersections are easy. Merging of equivalent tags could later be<br>
possible through redirects, without having to bot-edit all affected<br>
pages. Also, redirects and/or language links could allow for<br>
multilingual tags, or at least multilingual tag search/intersection.<br>
<br>
For the frontend, I put the tag section into the sidebar, which will<br>
make it instantly familiar to many web users. On page load, the TAG<br>
categories are removed from the normal category section and shown as<br>
tags in the sidebar. This also means no additional web traffic will<br>
arise for normal page viewing.<br>
<br>
Tags can be removed with a single click. One or multiple tags can be<br>
added or removed in a single operation. All editing is done via API,<br>
so the page does not have to reload.<br>
<br>
When checking one or more tags, a section containing a link to<br>
"subset" will show. Currently, it links to my CatScan rewrite, showing<br>
all pages in the current namespace that also have all the checked<br>
tags. Linking to CatScan gives you the opportunity to add further<br>
conditions; you can do a combined subset of TAG and "normal"<br>
categories, templates, etc.<br>
<br>
Of course, there could also be a dialog window or fake special page<br>
showing e.g. images in the subset, using CatScan only as a backend. I'<br>
holding back on that one...<br>
<br>
The script is making extensive use of jQuery, so this script will only<br>
work when jQuery is loaded. This is currently only the case for the<br>
Vector skin, AFAIK. So, don't complain if it doesn't work for you in<br>
Monobook ;-)<br>
<br>
I have tagged the total of one example page so far (picture by me, so<br>
noone else unduly harmed:-) Here you go:<br>
<br>
<br>
<a href="http://commons.wikimedia.org/wiki/File:Vernomia_altissima_%28Compositae%29_flower.JPG?withJS=MediaWiki:Tag.js" target="_blank">http://commons.wikimedia.org/wiki/File:Vernomia_altissima_%28Compositae%29_flower.JPG?withJS=MediaWiki:Tag.js</a><br>
<br>
<br>
Before the traditional (f)lamewar begins, let me say that I want to<br>
"enforce" neither the TAG category system, the JavaScript sidebar<br>
thing, or CatScan. I just want to present a working tagging system<br>
within the current software framework, as is. I hope that, now that<br>
there is at least demo code, something more useful than the usual "but<br>
it also needs to make coffee!" discussion will arise.<br>
<br>
Cheers,<br>
Magnus<br>
<br>
P.S.: Yes, there are probably a million bugs in the code...<br>
<br>
_______________________________________________<br>
Commons-l mailing list<br>
<a href="mailto:Commons-l@lists.wikimedia.org">Commons-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/commons-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/commons-l</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jon <br>[[User:ShakataGaNai]] / KJ6FNQ<br><a href="http://photo.snowulf.com/">http://photo.snowulf.com/</a> - Buy a pic, feed a photog.<br><a href="http://snowulf.com/">http://snowulf.com/</a><br>
<br>