{"id":218,"date":"2014-07-03T21:46:16","date_gmt":"2014-07-03T20:46:16","guid":{"rendered":"http:\/\/blog.magnusmanske.de\/?p=218"},"modified":"2014-07-03T22:56:13","modified_gmt":"2014-07-03T21:56:13","slug":"evacuation","status":"publish","type":"post","link":"http:\/\/magnusmanske.de\/wordpress\/archives\/218","title":{"rendered":"Evacuation"},"content":{"rendered":"<p><a href=\"http:\/\/commons.wikimedia.org\">Wikimedia Commons<\/a> is a great project. Over 21 million freely licensed files speak a clear language. But, like all projects of such a magnitude, there are some issues that somewhat dampen the joy. The major source of conflict is the duality of Commons: on one hand, it is a stand-alone repository of free files; on the other hand, it is the central repository for files used on many other projects of the Wikimedia family, first and foremost Wikipedia. Some Wikipedias, the Spanish one for example, have completely deactivated local file storage and rely completely on Commons; others prefer Commons, but keep local file storage around for special cases, like the &#8220;fair use&#8221; files on English Wikipedia, and &#8220;Freedom of Panorama&#8221; images on German Wikipedia.<\/p>\n<div id=\"attachment_219\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/ExCommons-interface.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-219\" class=\"size-medium wp-image-219\" src=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/ExCommons-interface-300x169.png\" alt=\"The ExCommons interface on the deletion page.\" width=\"300\" height=\"169\" srcset=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/ExCommons-interface-300x169.png 300w, http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/ExCommons-interface-1024x577.png 1024w, http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/ExCommons-interface.png 1385w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-219\" class=\"wp-caption-text\">The interface on the deletion page.<\/p><\/div>\n<p>Commons admins (myself among them, albeit more in a technical capacity) want the keep Commons &#8220;clean&#8221;, and remove non-free images. While this is only proper, it can lead to issues with the projects depending on Commons, when files that are used e.g. on Wikipedia get deleted on Commons. The issue becomes aggravated if the deletion appears to be &#8220;overzealous&#8221;; some admins interpret &#8220;only free images&#8221; as &#8220;there must not be a shadow of a doubt&#8221;. When files that are very likely to be free, and will (in all likelihood) never see a takedown notice from a third party, are deleted because of a vague feeling of unease, and thus vanish from a dozen Wikipedias without warning, it is bound to raise the ire of someone. Yet, Commons admins do have a point when they want to keep their project in excellent legal shape, no matter the consequences.<\/p>\n<p>One of my most popular tools is the <a href=\"http:\/\/tools.wmflabs.org\/commonshelper\/\">CommonsHelper<\/a>, which helps to transfer suitable images from other projects to Commons. Today, I try to at least reduce the impact of happy-trigger-finger file deletions on Commons by throwing some tech at the admins there: I present <a href=\"https:\/\/commons.wikimedia.org\/wiki\/MediaWiki:ExCommons.js\">ExCommons<\/a>. It is a small JavaScript that reverses the direction of CommonsHelper: It can transfer files from Commons to other Wikimedia projects, using OAuth.<\/p>\n<div id=\"attachment_220\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/Local-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-220\" class=\"size-medium wp-image-220\" src=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/Local-file-300x235.png\" alt=\"This is what an &quot;evacuated&quot; file looks like.\" width=\"300\" height=\"235\" srcset=\"http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/Local-file-300x235.png 300w, http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/Local-file-1024x802.png 1024w, http:\/\/magnusmanske.de\/wordpress\/wp-content\/uploads\/2014\/07\/Local-file.png 1390w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-220\" class=\"wp-caption-text\">This is what an &#8220;evacuated&#8221; file looks like.<\/p><\/div>\n<p>It presents as a list of projects that use the file; the list automatically loads on the special page for deletion (Commons admins can try it <a href=\"https:\/\/commons.wikimedia.org\/w\/index.php?title=File:M%C3%BCnster,_LVM,_-Villa_Kunterbunt-_--_2013_--_1-2.jpg&amp;action=delete&amp;withJS=MediaWiki:ExCommons.js\">here<\/a>; but <em>don&#8217;t<\/em> actually delete the image!).<\/p>\n<ul>\n<li>Sites that use the file in one or more articles are marked in bold; other sites use the file in other namespaces, where a loss might not be as critical<\/li>\n<li>Sites that are known to have local upload disabled are shown but <s>unavailable<\/s><\/li>\n<li>Sites that are known to allow a wider range of files <em>and<\/em> use the file in an article are automatically checked; others can be checked manually<\/li>\n<\/ul>\n<p>If you have authorized OAuth file upload, you can click the &#8220;Copy file to selected wikis&#8221; button, and the tool will attempt to copy the file there. The upload will be done under your user name. A Commons deletion template will be removed to avoid confusion; a {{From Commons}} template will be added. I created <a href=\"https:\/\/en.wikipedia.org\/wiki\/Template:From_Commons\">that template<\/a> for the English Wikipedia; it states that the file was deleted on Commons, that it might not be suitable on en.wp either, it has a No-Commons template to prevent re-uploading, a category for tracking etc.<\/p>\n<p>For this tool to be permanently enabled, add the line<\/p>\n<pre class=\"javascript source-javascript\" style=\"padding-left: 30px;\"><span class=\"co1\">importScript('MediaWiki:ExCommons.js') ;<\/span><\/pre>\n<p>to <a href=\"https:\/\/commons.wikimedia.org\/wiki\/Special:Mypage\/common.js\">your common.js<\/a> page.<\/p>\n<p>This tool should allow Commons admins to quickly and painlessly &#8220;rescue&#8221; files to Wikipedias that use them, prior to their deletion on Commons. It is said that social problems cannot be fixed by technology; but sometimes they can be alleviated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wikimedia Commons is a great project. Over 21 million freely licensed files speak a clear language. But, like all projects of such a magnitude, there are some issues that somewhat dampen the joy. The major source of conflict is the duality of Commons: on one hand, it is a stand-alone repository of free files; on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7],"tags":[],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","category-commons-2","category-wikimedia-2"],"_links":{"self":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":3,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":223,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/posts\/218\/revisions\/223"}],"wp:attachment":[{"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/media?parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/categories?post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/magnusmanske.de\/wordpress\/wp-json\/wp\/v2\/tags?post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}