MediaWiki talk:Gadget-Stockphoto.js
![]() |
MediaWiki:Gadget-Stockphoto.js forms part of the MediaWiki interface and can only be edited by administrators. To request a change to MediaWiki:Gadget-Stockphoto.js, add {{Edit request}} to this talk page, followed by a description of your request. This interface message or skin may be documented on MediaWiki.org or TranslateWiki. |
|
![]() |
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 3 days. |
Contents
- 1 Info
- 2 Tickets
- 2.1 Version for Wikipedias to show on transcluded pages
- 2.2 Attribution field
- 2.3 IE 8 opacity
- 2.4 Languages for anonymous users
- 2.5 Mobile access with Opera
- 2.6 Print usage
- 2.7 Always show buttons
- 2.8 Should work on Internet Explorer
- 2.9 stockPhoto.backlink_url only protocol-relative when used in HTML
- 3 Discussion
- 3.1 Translation
- 3.2 Cleanup Use on wiki
- 3.3 Artworks
- 3.4 Share icons
- 3.5 Social networking icons
- 3.6 Moving to original layout
- 3.7 Needs major improvements for crossbrowser compatibility and other stuff
- 3.8 Not on top!
- 3.9 Separate tab?
- 3.10 IE8 transparency issue
- 3.11 Success!
- 3.12 Use mwEmbed code for embedding ogg files
- 3.13 CJK script is broken in send_email
- 3.14 Bug?
- 3.15 Author info
- 3.16 Translation (2)
- 3.17 file, fullImageLink and fullMedia
- 3.18 Bug reports & requests
- 3.19 "Use this file" code and download "attribution" code of Creative Commons files should be compatible with OpenAttribute
- 3.20 A caption version should be provided in addition to the present mouseover version
- 3.21 The title names of the source files combined in derivative works must be provided
- 3.22 "Use this file" box html code for videos
- 3.23 fix or disable for Internet explorer. It is crashing the whole browser.
- 3.24 Where is the gadget supposed to be located ?
- 3.25 Social icons
- 3.26 New buttons
- 3.27 Missing URI of CC legalcode in "Use this file on the web"
- 3.28 No buttons on some pages
- 3.29 Oddity on non-image files
- 3.30 Escaping fix in URLs
- 3.31 Icons are separated from their text if line length is too short (line break)
- 3.32 Python "port"
- 3.33 Some questions on the code
- 3.34 Credit line should be more proeminent
- 3.35 HTML generated by "use this code" does not work as img src URL is missing scheme
- 3.36 Further hint on how to use this in a wiki
- 3.37 Skins other than vector and monobook
- 3.38 Should be "Download file:"
- 3.39 Not working always
- 3.40 Serbian translation
- 3.41 Bug with src element
- 3.42 Download not working for ogg files in Firefox?
- 3.43 In kazak language
- 3.44 Attribution text for printed newspapers
Info[edit]
- See also m:Meta:Babel/Archives/2008-12#Proposal_to_disable_hotlinking; Add this at Commons, Problems using pictures from Commons in Blogger - making it more of a stock photo repository (August 2010), [Commons-l] Nice icons... (October 2010), Commons:Village_pump/Archive/2010/10#Share_this, Commons:Village_pump/Archive/2010/10#Disable_file_menu_with_icons, Commons:Village_pump/Archive/2010/10#Share_icons, Commons:Village_pump/Archive/2010/10#.22Use_this_file.22_is_a_bit_of_a_mess
This script displays download/attribution buttons next to images under the Vector skin. Original author is Magnus Manske (talk).
Hints[edit]
How to turn this feature off[edit]
- To turn temporarily off, click on the red x (
) near the buttons.
- To turn completely off, go to section Gadgets in your Preferences, remove the checkmark ☑ in front of “StockPhoto” and save.
What version do I have cached ?[edit]
- In the sourcecode, there's a line:
StockPhoto = { rev: 'number', //… }
. Even if you purge that page, the code that is sent to the browser is the raw version the browser keeps a seperate cache for that. If you're developing in your Console simply execute StockPhoto.rev
; and see what it returns to compare. Otherwise pasting javascript:alert(StockPhoto.rev);
in the addressbar on a File-page and hitting Enter will give you the number aswell.
Tickets[edit]
Version for Wikipedias to show on transcluded pages[edit]
Status: In progress
Attribution field[edit]
Status: In progress
If the attribution field (possibly the author field and definitely the second parameter of the cc licenses) is hyperlinked then so should the "attribution" text. At least in the "use for web" section. /129.215.149.97 15:39, 7 October 2010 (UTC)
- Much to do with the license problem + links. We need to redesign the licenses to be better machine readable. TheDJ (talk) 18:42, 7 October 2010 (UTC)
IE 8 opacity[edit]
Status: In progress
IE 8 has trouble with opacity on transparent PNGs. Alternative is said to set opacity on a parent element of a png that you want to be transparent. TheDJ (talk) 17:12, 8 October 2010 (UTC)
Languages for anonymous users[edit]
Status: In progress
The logged-out version should have language switch + remember selected language in cookie. LeinaD dyskusja 13:54, 11 October 2010 (UTC)
- There's several scripts and templates that already have it's own language memory. I'm currently working with a few people to think of some kind of central way fix this for both {{mld}}, {{LangSwitch}}, the Sitenotice and perhaps more. –Krinkletalk 16:37, 9 November 2010 (UTC)
Mobile access with Opera[edit]
Status: In progress
When viewing an image page using Opera Mobile this "feature" is a bit annoying: the (on mobile screen) big icons are first(!) on the image page... then you have to scroll down to see the image you wanted to see. Cheers --Saibo (Δ) 18:18, 9 November 2010 (UTC)
- We could add a check to not only use the small icons in the tocbar when the image is narrow/small, but also when the screen width is narrow (use
screen.width
/screen.height
) –Krinkletalk 03:40, 16 November 2010 (UTC)
Print usage[edit]
Status: In progress
A button with information on how to use it in print will come in handy. This making the third "Use file"-ish button we may wanna group them somehow. Perhaps make it a single button with tabs, or clarify the kind of usage direct in the link (Not just a different icon). Or perhaps a single link with three icons in parentheses. Will see. –Krinkletalk 03:27, 23 November 2010 (UTC)
Always show buttons[edit]
Status: In progress
Today, the whole gadget is disabled if sufficient metadata can't be found. I think this is confusing to the user (at least for me), "where did that thing go?". It would be better to always show the buttons, but give an informative message such as "Sufficient licensing information can't be found. You can help Wikimedia Commons by editing this page (link with help on tagging)" or "This file has licensing problems, please do not reuse until this is resolved." /skagedaltalk 07:06, 14 March 2012 (UTC)
Should work on Internet Explorer[edit]
Status: In progress
Thought there should be a ticket for this. The gadget is currently disabled on all IE versions. Would be nice if issues were worked around so it can be enabled. /skagedaltalk 07:06, 14 March 2012 (UTC)
stockPhoto.backlink_url only protocol-relative when used in HTML[edit]
- Status: In progress
"stockPhoto.backlink_url" should be protocol relative when used in html, and use current window protocol in other places. --Sumanah 14:22, 30 March 2012
- Right now it expands the relative url with the current protocol of the reader. That's still better than hardcoding it, but ideally we wouldn't hardcode the protocol at all on that backlink so that people will stay on HTTPS when serving the web and make use of the HTTPS service that Wikimedia has. Should be an easy fix (keep backlink_url protocol-relative, and expand in textContent and input values where needed). –Krinkletalk 14:30, 30 March 2012 (UTC)
Discussion[edit]
Translation[edit]
Hello, it could be really really really nice to allow the translation. How to proceed ? Otourly (talk) 04:46, 5 October 2010 (UTC)
- Is there an "official" way for i18n of JS on our wikis? --Magnus Manske (talk) 06:55, 5 October 2010 (UTC)
- Maybe translatewiki like Multichill did?--Diaa abdelmoneim (talk) 08:23, 5 October 2010 (UTC)
- Translation is now possible. See the schema at the end of the JavaScript file. --Magnus Manske (talk) 15:46, 5 October 2010 (UTC)
- It seems not work : MediaWiki:Stockphoto.js/fr Otourly (talk) 19:17, 5 October 2010 (UTC)
- There seems to be some race condition between loading of the translation and loading of the page. I fixed it partially; the buttons are labeled in English, the dialogs text is in French. I'll keep working. --Magnus Manske (talk) 19:55, 5 October 2010 (UTC)
Fixed Needed an additional line at the end of the translation. --Magnus Manske (talk) 20:00, 5 October 2010 (UTC)
- There seems to be some race condition between loading of the translation and loading of the page. I fixed it partially; the buttons are labeled in English, the dialogs text is in French. I'll keep working. --Magnus Manske (talk) 19:55, 5 October 2010 (UTC)
- It seems not work : MediaWiki:Stockphoto.js/fr Otourly (talk) 19:17, 5 October 2010 (UTC)
- Translation is now possible. See the schema at the end of the JavaScript file. --Magnus Manske (talk) 15:46, 5 October 2010 (UTC)
- Maybe translatewiki like Multichill did?--Diaa abdelmoneim (talk) 08:23, 5 October 2010 (UTC)
Done: MediaWiki:Stockphoto.js/pl. LeinaD dyskusja 00:34, 6 October 2010 (UTC)
Cleanup Use on wiki[edit]
Use on wiki and website have the same "Page URL" and "File URL" Fields. I suggest you clear those from Use on wiki and have use on wiki as Use on wikipedia with just the thumbnail and image fields and maybe something like mdales mediawizard gadgets tools like specifying the thumbnail size and description. Users from outside the wikimedia foundation can use the use this file on a website or just use the use on wikipedia if they have instant commons.--Diaa abdelmoneim (talk) 08:41, 5 October 2010 (UTC)
Artworks[edit]
The attribution function does not work properly when an "artwork" infobox template is used. In this case, the attribution should be the "source" rather than the "author" or "artist" (the source is the photographer, the author is the the author of the work and the one who owns rights on the photo, see File:Satyr Anapauomenos Musei Capitolini MC2419 n2.jpg for instance). I don't know if it can be fixed here or if something has to be done directly on the template.--Zolo (talk) 20:29, 5 October 2010 (UTC)
[edit]
I doubt whether share icons are ok... I see a few problems:
- Wikimedia Commons is a multilingual project, not an English Wikinews, so some services are completely unknown in some countries - list of "share icons" should depend on the language and geographical region.
- Who should decide which services should be on the list of "share icons"? - now it looks like free advertising of certain selected services.
LeinaD dyskusja 01:05, 6 October 2010 (UTC)
- I love NewsTrust (the last icon), but it certainly doesn't belong in the sharing toolkit for Wikimedia Commons. It's a site to review news articles, which makes a lot of sense on Wikinews. ;-)
- There are definitely different dominant platforms in different countries -- short of localizing the selection, I think global usage numbers are the most meaningful criterion that can be used. What services are popular in China? :-)--Eloquence (talk) 01:39, 6 October 2010 (UTC)
-
- I just copied all that are on Wikinews. I haven't even checked if they work, because I'm not using any of them actively. Removing one of them is just deleting/commenting a line; feel free to do so, or I'll do it later. Creating new ones is a little less trivial, and making language-specific ones will be even more work, but I'll get around to it eventually; so suggest away. --Magnus Manske (talk) 08:59, 6 October 2010 (UTC)
-
-
- I removed newstrust. TheDJ (talk) 14:15, 6 October 2010 (UTC)
- Awesome. I came here just to request its removal, as it is something completely unrelated to a multimedia project ;-) --Diego Grez return fire 19:46, 8 October 2010 (UTC)
- I removed newstrust. TheDJ (talk) 14:15, 6 October 2010 (UTC)
-
Social networking icons[edit]
Really really not happy about this. The copyright issues asside this is advertising. There are also massive nutrality issues (why no Hi5 or Orkut for example).I've commented them out for the time being (hopefuly js isn't something I've used much). If we are going to use them we really need to have a sitewide debate.Geni (talk) 18:30, 6 October 2010 (UTC)
- Okey I've set show_social_bookmarks : false , which is a far more sensible approach.Geni (talk) 18:47, 6 October 2010 (UTC)
- I call bullshit. TheDJ (talk) 19:30, 6 October 2010 (UTC)
- 1: There is no neutrality issue. The services that are included are entirely up to us. We decide.
- 2: If there is a copyright issue, then it is a fair use. The icons are however not hosted on Commons.
- 3: Share icons are a good idea, that will help further the mission of our Free collection. We should not let good ideas be limited by our efforts to be the most anal kid in the class.
- TheDJ (talk) 19:44, 6 October 2010 (UTC)
- 1)Us deciding does not mean neutral. It means chosing to endorse. Something we should not be doing.
- 2)If if you want to argue fair use let me know when you've got an EDP for commons through the foundation.
- 3)it is not evident.Geni (talk) 19:57, 6 October 2010 (UTC)
- 1) We also list a hundred or so commercial services for maps. (and considering limiting that, because the page is starting to become unusable). We endorse identi.ca as a free service, because it's the only free service. Beyond that we have to live in the reality that there are 500 million Facebook users. That's my opinion.
- 2) Actually most files are actually public domain or CC icons hosted locally at Commons and mirrored under wikinews under fair use it seems... Many are of Category:Open Icon Library.
- 3) He said she said situation, but if you want to vote on that. sure, why not. lets waste some more editor time :D TheDJ (talk) 20:45, 6 October 2010 (UTC)
- I call bullshit. TheDJ (talk) 19:30, 6 October 2010 (UTC)
WikiNews uses these icons (that's where I got them from), so the Foundation apparently has no problem with using them. Reusing content is a (or the) part of the Commons mission; that includes making reuse easier IMHO. Personally, I stay away from social networks as far as possible these days, so I couldn't care less for these icons in terms of personal use, but they do seem to be useful and used by many people on other sites. --Magnus Manske (talk) 20:22, 6 October 2010 (UTC)
- Do we have any evidence that they are actualy used to any great degree?Geni (talk) 20:38, 6 October 2010 (UTC)
- Only their prevalence on other (non-wikimedia) sites. And googling "social network icons" (with quotes) yields >300K pages, so it seems to be a topic of interest for websites in general. I'm not sure clicktracking would be particularly well received on Wikimedia sites, even if it's only for anonymous bulk statistics, so how could we record those? --Magnus Manske (talk) 21:15, 6 October 2010 (UTC)
- Here is a blog arguing that these icons are not worth it. Note that the blog page itself has such icons... --Magnus Manske (talk) 21:24, 6 October 2010 (UTC)
- As I said above, it's not fair that we have all these icons for all users - people use other social medias in USA, other in Russia, other in Poland etc. Plus, there should be clear rules which social bookmarks can be added on the list. LeinaD dyskusja 22:59, 6 October 2010 (UTC)
- Hasn't the problem of avoiding endorsing one organisation over another already been essentially solved by the geohack tool e.g. [1]? It's not as nice as being able to click on an icon, but it preserves the functionality for those that want it. IMO it's definitely worth having the links available somewhere fairly easy to find. Mike Peel (talk) 08:15, 7 October 2010 (UTC)
-
- Alternatively, we could do something like the ShareThis tool with a pull-out set of sharing buttons that is as long as you like (I believe ShareThis has > 800), with the world's main networks shown as default. This could work without going down the route of having language-specific network selection and ordering, though that's potentially useful too..
- James F. (talk) 11:45, 7 October 2010 (UTC)
- Depends on what you call solved. Solved in our warped perspective perhaps, but I know many people who consider geohack and ISBN tools unsuable and scary. There is a proposal for those pages on en.wp almost monthly to cut them down to 10 services and toss the rest into a well hidden deep pitt. The Sharethis system works a lot better in that respect, but unfortunatly both sharethis and addthis are commercial services in their own, and we are definitely not gonna use a single commercial services. Some one should write an open version of that, but i've been asking for that for 3 years now and it doesn't seem to me to be around the corner any time soon. TheDJ (talk) 13:24, 7 October 2010 (UTC)
The Signpost recently had a similar discussion, and ended up going with an icon-free pulldown menu. See here, for example; it's at the top of the article on the right. I rather like it, design-wise. (I do use a number of social services, but I don't think I've ever used the share buttons. For me, adding them is just clutter. But I'm happy to tolerate them if others find them useful.)--ragesoss (talk) 21:11, 7 October 2010 (UTC)
- To be honest, I didn't see the share links on the Signport page until I really looked for the menu very closely. I'm like you, I never use the share buttons, but hiding them in a collapsed menu is the best way to hinder discoverability. Just sayin' (I'm not really leaning either way). guillom 21:42, 7 October 2010 (UTC)
They are removed -- RE rillke questions? 14:41, 6 January 2012 (UTC)
Moving to original layout[edit]
I am moving the icons back to the original top/side layout, as per discussion thread starting here. Please join the discussion on the mailing list so we can decide together which layout is preferable. --Magnus Manske (talk) 08:00, 7 October 2010 (UTC)
- IMO they're definitely much better on the right-hand side, although that is possibly because I use a widescreen monitor. ;-) They were difficult to find when they were below the image, but that could be due to the reduced size of the icons when they were in that position - perhaps if they were kept at the same size it would still be easy to see them there? I like how they change to being on the top line if the picture is a panorama e.g. File:Cheyenne_dance4.jpg. It would be nice if they appeared on the page load, though, rather than slightly afterwards - presumably this is due to the timing of the javascript loading? Having the code embedded into the HTML code would be better (but presumably is more politically difficult?). Mike Peel (talk) 08:21, 7 October 2010 (UTC)
Needs major improvements for crossbrowser compatibility and other stuff[edit]
Copied from Village Pump
Good idea, not such a good code behind it, though. :-/ CSS needs improvements, since the look is seriously broken e.g. in Firefox 2. The HTML result code is also not very well designed and should be rewritten. Lot of unnecessary redundant stuff. Using intrinsic events instead of their binding isn't also the best approach. Last but not least: if it is supposed to be shown to all users by default, there should be gadget providing the chance to suppress such feature and such script should be loaded according to the state of supressing. I can provide better HTML output and appropriate CSS if somebody with access rights (and enough knowledge of JS/jQ :-)) is willing to fix the script with it.
— Danny B. (talk) 11:57, 7 October 2010 (UTC)
Hard to make suggestions for code, when design and position are being changed under hands. :-/ Yesterday, there was a block under the image with icons of random third party services and small icons, today it's above the image, no services, big icons, what will happen tomorrow? Set a consensus on design, preferably put some final mockup online (as currently it looks totally different in random browsers) and I'll be happy to provide the code immediately. Now it would be just wasting of time of all of us - me with creating, you (whoever would be putting it into the script) with recoding of the script and then on and on again with nearly every single change of design.
Re the suggestions - some already are in my previous text, the other major one is that since this is significantly undevelopped prealpha version, it should not be forced for all users (and scare/confuse them on daily basis) until it's fully developped. Make it as a gadget for the time of development, and those interested in it can turn it on. Promote it in sitenotice if you'd need more feedback.
— Danny B. (talk) 16:27, 7 October 2010 (UTC)
Not on top![edit]
Please don't put these huge buttons above the image! Maybe it was unintentional as it only does it on certain images (like File:Anonymous Flag by D3L1GHT.jpg). Or is this a problem specific to my browser/gadgets/etc. setup? Rocket000 (talk) 01:19, 8 October 2010 (UTC)
- It depends on the size of the image. If it's too small vertically, then it aligns the buttons at the top. TheDJ (talk) 13:51, 8 October 2010 (UTC)
Separate tab?[edit]
Couldn't the share/use menu simply be another tab at the top of the page? As in "View | Edit | Use/Share | View History" Then it would be highly visible, not conflict with other gadgets (above/below image), and would not get cut off on some displays (right margin). Also, JavaScript would not be required, just as the Signpost menu still works with JS disabled. And if the plan is tapping directly into the database instead of screen scraping, a MediaWiki extension might make more sense IMHO. --Morn (talk) 10:18, 8 October 2010 (UTC)
- That an extension is the best way to implement this is clear. Who is volunteering to do that, is what is not clear. TheDJ (talk) 13:52, 8 October 2010 (UTC)
- I do not believe that the database has more information we could use. On the contrary: HTML tag IDs distinguish very nicely the different Information parts; there is no way to get to that reliably fron the database/wikitext. A tab could be created with JS. --Magnus Manske (talk) 14:51, 8 October 2010 (UTC)
- True, that field in the database would have to be created first. But at least it would have to be done only once for each file (unless the license changes), while doing it client-side means that the JS parser must be more or less perfect (and there would need to be some test pages to make sure it still works right after an update).
- Why doesn't Wikimedia help with this, especially if a MW extension is what's really wanted? Presumably whatever solution is developed for Commons will sooner or later be deployed on the Wikipedias themselves, so they should be interested in this, right? Supposedly they have some programmers and a budget now, don't they?
- Wikia wikis have "Follow" and "Share this article" in the tab bar. Can't we use that code as a starting point for an extension? Or isn't that GPL'ed? --Morn (talk) 16:24, 8 October 2010 (UTC)
- This is called the ShareFeature extension. It is GPL, but currently only works with the skin of Wikia, has the same issues regarding supporting a limited number of commercial services, and most importantly, our feature cannot work without JS, because it needs to screenscrape the HTML to retrieve the proper license and attribution information. TheDJ (talk) 17:24, 8 October 2010 (UTC)
- I do not believe that the database has more information we could use. On the contrary: HTML tag IDs distinguish very nicely the different Information parts; there is no way to get to that reliably fron the database/wikitext. A tab could be created with JS. --Magnus Manske (talk) 14:51, 8 October 2010 (UTC)
IE8 transparency issue[edit]
Anyone got ideas on how to fix this ? I tried setting it on a parent element, but it doesn't really seem to do the trick either. The blue lines are from the IE8 develop tool inspector btw. don't worry about that. TheDJ (talk) 17:20, 8 October 2010 (UTC)
Success![edit]
Hi, please have a look at this blogpost, I found today by a GoogleAlert (on my real name). All images are from Wikimedia Commons and all attributions were generated by Magnus' ShareIt icons. This is a really great success for this script. I bet that if this blogpost would has be written 1 week before (or earlier) the attributions would'nt be so perfect. Raymond 17:39, 8 October 2010 (UTC)
- What didn't work is the ampersand in the second image attribution line, but perhaps the blogging software has escaped the HTML entity. Otherwise it's very nice to see a blog getting attribution right of course. --Morn (talk) 18:10, 8 October 2010 (UTC)
Use mwEmbed code for embedding ogg files[edit]
When mwEmbed is finally "finished", we can use the embeddable player. It's rather simple and currently looks like: <object data="http://prototype.wikimedia.org/mwe-gadget/mwEmbed/remotes/../mwEmbedFrame.php?apiTitleKey=Adeste_Fidelis.ogg&apiProvider=commons&skin=kskin&durationHint=123&width=250&" width="250" style="overflow:hidden" ></object>
- It should be possible to retrieve it with the getShareEmbedObject() of the player. Probably not a good idea to do this right now, because I expect that uri to change in the immediate future. TheDJ (talk) 18:52, 8 October 2010 (UTC)
- updated to a relatively stable url ( did not see this section in the feature request above ) http://commons.wikimedia.org/wiki/File:Nice_People_MEDIUM.ogv?withJS=MediaWiki:MwEmbed.js&embedplayer=yes Mdale (talk) 22:59, 15 November 2010 (UTC)
CJK script is broken in send_email[edit]
If source is filled with non-Latin (for example, CJK) script, Source is broken in email program. (Windows Live Mail, Windows XP) Please fix this problem. Thanks. – Kwj2772 (msg) 03:28, 9 October 2010 (UTC)
- Please give example links if you encounter issues like this. TheDJ (talk) 12:00, 9 October 2010 (UTC)
- Some googling reveals: "Windows Live Mail and Outlook do not support UTF-8 mailto: links", but then there is this: http://blogs.msdn.com/b/ie/archive/2007/02/12/international-mailto-uris-in-ie7.aspx, which say it is supported under some conditions... TheDJ (talk) 12:53, 10 October 2010 (UTC)
Bug?[edit]
Hmm ... when I'm logged in I see the buttons above the image in the gray bar, but when I'm logged out, the buttons appear on the right side of the image - is this correct? LeinaD dyskusja 22:03, 10 October 2010 (UTC)
- This is intentional. It was the solution to present a very visible solution to readers, and yet keep current registered users happy as well, who were annoyed by all the "clutter" the "reader mode" was creating. TheDJ (talk) 23:47, 10 October 2010 (UTC)
- IMHO buttons on the right look much better :) And I can't see navigation links in gray bar:
- File
- File history
- File usage on Commons
- Metadata
- File usage on other wikis
Maybe a good solution would be a gadget, which moves the buttons to the right side or under a gray bar? LeinaD dyskusja 11:27, 11 October 2010 (UTC)
- Yeah, they replace links there, because most people simply don't use the TOC anyway. I was personally considering a sort of "buttonbar", but I haven't finished my design yet. In the end it's all a problem of "can't satisfy every person", decisisions will have to be made and preferably without month long votes :D TheDJ (talk) 12:16, 11 October 2010 (UTC)
Author info[edit]
The author info needs to be improved, especially when there are creator templates. Something like this perhaps:
var authorNode = $j("#fileinfotpl_aut + td"); var author = ''; $j(authorNode).find("div.vcard span#creator").each(function (idx) { if (idx > 0) author += ", "; author += $j.trim($j(this).text()); }); if (author.length == 0) author = $j.trim($j(authorNode).text());
(Untested) Lupo 15:39, 16 October 2010 (UTC)
- Additionally, the CC-templates (with Attribution) should override the Author-field whenever possible. It is machine readable by getting
.licensetpl_attr
- Also, since some of the older uploads don't have {{Information}}, but do have {{Creator}}, I suggest not limiting the Creator-search to the authorNode, but instead look through
#bodyContent
:
var author = ''; $j("#bodyContent div.vcard span#creator").each(function (idx) { if (idx > 0) author += ", "; author += $j.trim($j(this).text()); }); if (author.length == 0) { author = $j.trim($j('.licensetpl_attr').eq(0).text()); // eq(0) because {{Self|GFDL|Cc-by-sa|migration=relicense|author=Foo}} causes two cc-by-sa's (2nd being migration) to show up. Only pick the first one. } if (author.length == 0) { author = $j.trim($j("#fileinfotpl_aut + td").text()); }
- –Krinkletalk 15:42, 21 October 2010 (UTC)
- And additionally, for photos of statues and such, should the author info contain both the author of the photo as well as that of the sculpture? In particular for still copyrighted sculptures? Lupo 18:13, 21 October 2010 (UTC)
Translation (2)[edit]
Just a note which I'll do myself when I have the time. Create a function to get a message instead of hooking into the i18n object directly. Also, name the core one differently so that the loaded translation won't override it. That way the function will pick the translation if available, and if that object item is undefined, it'll pick the english one. For example, right now the Dutch version is returning 'undefined' on via_wikimedia_commons in the attribution. Doing it this way will make it possible to A) add a message without having to add the English-version to other languages to avoid breakage, B) dont force translators to translate everything at once because missing 1 message breaks it. –Krinkletalk 23:30, 28 October 2010 (UTC)
file, fullImageLink and fullMedia[edit]
Just so you know, I recently committed changes to MediaWiki to make those classes more consistent. It really was a mess and tools like this show it. TheDJ (talk) 12:10, 30 October 2010 (UTC)
Bug reports & requests[edit]
Hi folks, here are my complaints :-) :
- GFDL links are <a href>-like even when the box is not ticked (eg « Par Highflier (Self-made at SAC Museum; Omaha, NE) [GFDL (<a href="http://www.gnu.org/copyleft/fdl.html" class="external free" rel="nofollow">http://www.gnu.org/copyleft/fdl.html</a>) ou CC-BY-SA-3.0 (www.creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons »), which makes that ticked it becomes « Par Highflier (Self-made at SAC Museum; Omaha, NE) [<a href="<a href="http://www.gnu.org/copyleft/fdl.html" class="external free" rel="nofollow">http://www.gnu.org/copyleft/fdl.html</a>">GFDL</a> ou <a href="www.creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA-3.0</a>], <a href='http://commons.wikimedia.org/wiki/File:Wright_R-3350_Cyclone_Engine_1.jpg'>via Wikimedia Commons</a> »
- GFDL links use http://www ; CC ones just use www.
- Probably a feature, but... In the case of multi-licensed files, do we really need the GFDL mention and all the CC ? I understand that end-users may want to use whatever license may suit their needs better, but well, CC are simpler than GFDL in most cases aren't they ? (hope this will not be viewed as trolling)
- HTML/BBcode snippets are broken on Opera 11.00 / Ubuntu 10.10 : the textbox is empty.
- On both Firefox 3 and opera, "HTML" is on a new line after the tickbox (ie, the tickbox is alone at the end).
Jean-Fred (talk) 20:04, 5 January 2011 (UTC)
- Most of the above is fixed ; this leaves :
- « Public domain » should be i18n (to display « Domaine public » in French for example)
- This is set in {{PD-Layout}}, with <span class="licensetpl_short" style="display:none;">Public domain</span><span class="licensetpl_long" style="display:none;">Public domain</span> ; what can be done? Jean-Fred (talk) 19:33, 21 March 2011 (UTC)
"Use this file" code and download "attribution" code of Creative Commons files should be compatible with OpenAttribute[edit]
http://openattribute.com/ is a system allowing people on a variety of websites to easily copy-paste copyright and licensing information when they reuse Creative Commons contents from one website on another website.
I learnt about it the other day at http://lists.wikimedia.org/pipermail/foundation-l/2011-February/063796.html .
It is not working very well on Commons at present, but even if it remains so for the time being, at least the copy-paste code provided by Wikimedia Commons should be (by default or not ? I don't know) made compatible with the markup language they have developped.
That means adding "rel=license" property="cc:attributionName" and that sort of things, as you can see in the source code of http://labs.creativecommons.org/2011/ccrel-guide/examples/multiple_textimage.html .
The aim of this proposal is that after a user adds the "use this file" code from Wikimedia Commons on his own website, the OpenAttribute tool is able to work fine on that website. Teofilo (talk) 15:06, 12 February 2011 (UTC)
This concerns also what happens after a user uses the "html" tick box at the "download all sizes" popup. Teofilo (talk) 12:38, 13 February 2011 (UTC)
A caption version should be provided in addition to the present mouseover version[edit]
The present solution using a en:mousover is not suitable for printing. Webmasters should be provided with an alternative code using a caption below the picture. This could be combined with the above proposal about OpenAttribute. Teofilo (talk) 15:47, 12 February 2011 (UTC)
The title names of the source files combined in derivative works must be provided[edit]
This is a legal requirement for Creative Commons derivative works :
"If you distribute (...) or publicly digitally perform (...) any Derivative Works (...) You must (...) give the Original Author credit (...) by conveying (...) the title of the Work if supplied;
http://creativecommons.org/licenses/by-sa/2.0/legalcode Article 4-c
For example in the case of File:Collage_of_Six_Cats-01.jpg every source file name mentioned in |source= of template:information must be provided in a simplified way as follows or exactly the same way as we can see in the |source= field, with links to each source files, and author names nearby :
- Tesla the cat 2.jpg
- Orange tabby cat sitting on fallen leaves-Hisashi-01A.jpg
- Brown and white tabby cat and flower trees-Hisashi-01.jpg
- Mackerel tabby cat with orange eyes-Hisashi-02.jpg
- Black and white cat sitting on a street-Hisashi-01.jpg
- Stray calico cat near Sagami River-01.jpg
Teofilo (talk) 15:15, 12 February 2011 (UTC)
Would not the easiest approach be to simply provide 100% of the exact contents included in the information template instead of trying to write things in another format, but missing some key legal requirements ? The mouseover might be a little big, but what is the problem with big mouseovers ? Teofilo (talk) 20:39, 12 February 2011 (UTC)
-
-
- So, for the mouseover, we might simply put commas or semicolons between sets of information, instead of linebreaks. Conversely, the "html" tick box at the "download all sizes" popup could be bigger and be as big as the whole information template (without the |description= part which is not a legal requirement). Teofilo (talk) 12:35, 13 February 2011 (UTC)
-
"Use this file" box html code for videos[edit]
I think the "attribution" html tick box and the "html/bbcode" box should be merged (at least for the html part : bbcode might remain separate). They should provide a ready-to-use "video + licensing/attributing caption", fulfilling the Creative Commons legal code requirements.
If we want to use the OpenAttribute markup, this would result into something like this for File:Time_Lapse_of_New_York_City.ogv :
<table class="video"> <tr><td> <iframe src="http://commons.wikimedia.org/wiki/File:Time_Lapse_of_New_York_City.ogv?withJS=MediaWiki:MwEmbed.js&embedplayer=yes" width="500" height="281" frameborder="0" ></iframe> </td></tr> <tr><td class="caption"> <span about="http://www.flickr.com/photos/26395784@N00/2968646319/" xmlns:dct="http://purl.org/dc/terms/" xmlns:cc="http://creativecommons.org/ns#"><a href="http://www.flickr.com/photos/26395784@N00/2968646319/" property="dct:title">From Bluerock's office window in New York City</a> / <a rel="cc:attributionURL" property="cc:attributionName" href="http://www.flickr.com/photos/tylersparks/">Tyler Sparks</a> / <a rel="license" href="http://creativecommons.org/licenses/by/2.0/">CC BY 2.0</a> via <a href="http://commons.wikimedia.org/wiki/File:Time_Lapse_of_New_York_City.ogv">Wikimedia Commons</a></span> </td></tr> </table>
Teofilo (talk) 13:57, 13 February 2011 (UTC)
The "embed on a page" code provided by the Kaltura player at the end, when the video stops running, should also provide this sort of code with full licensing and attribution information, possibly with the OpenAttribute markup. The "credit" option provided by the Kaltura player at the end of the video should be filled with the exact credits, which is not presently the case. Teofilo (talk) 14:10, 13 February 2011 (UTC)
I tried to use the tool at http://creativecommons.org/choose/
The following kind of code is provided :
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Contrat Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/MovingImage" property="dct:title" rel="dct:type">titleofvideo</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http:www.thecreatorshomepage.org" property="cc:attributionName" rel="cc:attributionURL">Nameofcreator</a> est mis à disposition selon les termes de la <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">licence Creative Commons Paternité 3.0 Unported</a>.<br />Basé(e) sur une oeuvre à <a xmlns:dct="http://purl.org/dc/terms/" href="http:www.theinternetsitewhereifoundthevideo.ogg" rel="dct:source">http:www.theinternetsitewhereifoundthevideo.ogg</a>.<br />Les autorisations au-delà du champ de cette licence peuvent être obtenues à <a xmlns:cc="http://creativecommons.org/ns#" href="http:www.thecreatorshomepage.org" rel="cc:morePermissions">http:www.thecreatorshomepage.org</a>.
Teofilo (talk) 15:28, 20 February 2011 (UTC)
fix or disable for Internet explorer. It is crashing the whole browser.[edit]
Please see Commons:Village_pump#Internet_Explorer_.28IE.29_8.0.6_and_IE_7.0.6_crash (archived here)
Thank you! --Saibo (Δ) 15:00, 17 February 2011 (UTC)added archive link --Saibo (Δ) 00:29, 2 May 2011 (UTC)
- "Edit 2011-02-17T15:10:17 DieBuche" disabled it. Now in both my test system the problem does not occur anymore. Thank you! Viele Grüße --Saibo (Δ) 15:30, 17 February 2011 (UTC)
- Maybe add a link/hint in the comment line ("// Disabled for Opera 9.27 and below") to this section here so people do understand why it is disabled for msie. ;-) --Saibo (Δ) 00:29, 2 May 2011 (UTC)
Maybe this script works now in IE (similar crash was fixed by using a newer jquery version - see https://commons.wikimedia.org/w/index.php?title=Commons:Village_pump&oldid=60698104#IE_8_crash ) I would test it but I do not know how since I have no adblock in IE. Cheers --Saibo (Δ) 18:56, 8 October 2011 (UTC)
Where is the gadget supposed to be located ?[edit]
When I am logged in, I see the gadget above the picture, as a header. The "File-File history-File usage on Commons-Metadata" header/Table of contents disappears.
When I am logged off, I see the gadget as a sidebar on the right side of the picture.
Is this a feature or a bug ?
Teofilo (talk) 15:37, 17 February 2011 (UTC)
- Unless I am mistaken, feature. It was argued that for visitors buttons had to be big to be useful ; and long-time users complained it was using too much space. Thus solution. :-þ Jean-Fred (talk) 16:00, 17 February 2011 (UTC)
-
- You are probably right. This is another reason why there should be a help page available explaining in which cases the tool will be a horizontal bar, and in which cases a vertical right-hand-side sidebar, and what User preferences I must set in order to choose the horizontal version or the vertical version. Teofilo (talk) 16:04, 17 February 2011 (UTC)
The horizontal toolbar version should be centered on the center of the picture (at 512 px for a 1024 px wide picture) rather than the center of the html page. Or left-aligned, which would be consistent with the information template. Teofilo (talk) 11:32, 20 February 2011 (UTC)
Social icons[edit]
While I understand the change to remove social icons by default a few months ago, I as a personal choice would like to have them. I ended up duplicating StockPhoto.js under my personal space and then restoring old social code.
Unsurprisingly, it doesn't work. Is there a posibility that someone may take a look and help making this optional? (Perhaps creating a gadget that sets variable=true and correctly enabling the missing code? -- Magister Mathematicae 09:29, 16 March 2011 (UTC)
New buttons[edit]
We have these new buttons on the image page. Wondering how we would go about improving the "use this file on a wiki" output? Rather than it substituting the file name as the caption can we set it so that it uses the description? This would say me a few operations.--James Heilman, MD (talk) 00:50, 5 April 2011 (UTC)
-
- Anyone? --James Heilman, MD (talk) 01:14, 29 May 2011 (UTC)
Missing URI of CC legalcode in "Use this file on the web"[edit]
Displaying the URL of or the hyperlink to the CC legalcode is a central requirement of the license (see 4.a de, en). I miss that in most of the codes displayed when using the gadget "Use this file on the web". An example:
This bug leads to illegitimate reuses. Could that be fixed? --Martina talk 18:32, 21 June 2011 (UTC)
Info A user informed me that this occures in images where the template:credit line is embedded. If not, the gadget seems to continuously show the en-deed (instead of hyperlink to the legalcode):
|
- --Martina talk 18:43, 21 June 2011 (UTC)
- This falls into the category: "everything can be fixed but someone needs to do some actual work and no one is doing it so it is not getting fixed until someone does some actual work". Too busy RL myself. TheDJ (talk) 19:40, 21 June 2011 (UTC)
- Unless I am mistaken linking to the legalcode is not mandatory, linking to the deed is enough − that is what is actually stated in, er, the deed : « For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page. ».
- The all point of the deed is to be human readable to show to normal people. Linking it just makes sense. This is what Flickr does, what OSM asks for, etc.
- Jean-Fred (talk) 20:25, 21 June 2011 (UTC)
- We are dealing with two issues.
- The gadget obviously cannot properly handle the credit line (most codes lack of any licence URI/URL)
- The deed's disclaimer says itself: The Commons Deed is not a license. [...] This Deed itself has no legal value, and its contents do not appear in the actual license. (bold marking by me) The CC legalcode says: You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. This is, of course, a mandatory condition.
- Both bugs are sending trustful reusers into unauthorized usages. --Martina talk 11:14, 22 June 2011 (UTC)
-
- Yeah, that sucks.
- So, basically, Flickr, Google Knol, Vimeo, DeviantArt, PloS, these major companies and institutions featured as examples on Creative Commons front page are wrongly using the Creative Commons licenses ? Even the Creative Commons website itself and Lawrence Lessig himself are? Please.
- Jean-Fred (talk) 12:53, 22 June 2011 (UTC)
- Does the URI requirement really require the URL to the deed or license text? Per en:URI "one can classify URIs as locators (URLs), or as names (URNs), or as both." I.e. perhaps simply "CC-BY-SA-3.0-de" (or the same written out in full) is enough. Also note that on the official FAQ it says "Cite the specific CC license the work is under. If you are publishing on the Internet, it is nice if the license citation links to the license on the CC website." (emphasis added by me) i.e. a link is not a requirement (yet personally I believe it's nevertheless useful). /129.215.149.98 14:52, 22 June 2011 (UTC)
- Other platforms or CC FAQ (even more when addressing publishers not reusers) are not a measure (neither is en:URI, contradicting de:URI/de:URN. The author himself might publish it with a link to the deed, but reusers have to follow the terms of the legalcode. The [German CC version even says deren vollständige Internetadresse (its full internet address). There's nothig to interpret or discuss about that. --Martina talk 17:39, 22 June 2011 (UTC)
- There you go: here the CC blog reuses a Flickr photo, not as the publisher of the picture. Here Lessig reuses an xkcd sketch. I’m sorry, but in these conditions I am not going to change my mind with your opinion only against the practices of people who happen to be quite knowledgeable on the subject. Please provide some sources to back your interpretation (the existence of alternate interpretations quite clearly mean there is something to interpret and discuss here). Jean-Fred (talk) 13:32, 23 June 2011 (UTC)
- Other platforms or CC FAQ (even more when addressing publishers not reusers) are not a measure (neither is en:URI, contradicting de:URI/de:URN. The author himself might publish it with a link to the deed, but reusers have to follow the terms of the legalcode. The [German CC version even says deren vollständige Internetadresse (its full internet address). There's nothig to interpret or discuss about that. --Martina talk 17:39, 22 June 2011 (UTC)
- Does the URI requirement really require the URL to the deed or license text? Per en:URI "one can classify URIs as locators (URLs), or as names (URNs), or as both." I.e. perhaps simply "CC-BY-SA-3.0-de" (or the same written out in full) is enough. Also note that on the official FAQ it says "Cite the specific CC license the work is under. If you are publishing on the Internet, it is nice if the license citation links to the license on the CC website." (emphasis added by me) i.e. a link is not a requirement (yet personally I believe it's nevertheless useful). /129.215.149.98 14:52, 22 June 2011 (UTC)
-
- We are dealing with two issues.
- Whom could we ask to fix it? (I am sorry, cannot write one single line of program code) --Schwäbin (talk) 20:53, 22 June 2011 (UTC)
-
- I am sorry, but I am lost what are we discussing here. Is the whole discussion about if we should be linking to either:
- If that is the whole controversy than I think we are slitting hairs here, since the first page links to the second and second page links to the first. First page gives you the essence using readable language and second one gives you all the gory details in en:Legalese#Legalese. It makes no sense for anybody to suffer the details without first reading the bullet points. --Jarekt (talk) 21:08, 23 June 2011 (UTC)
-
-
- As far as I can tell, there is not a single, right solution to this. You might notice here that similar issues are raised daily, and usually CC people just link to their FAQ/best practices section (I cannot find it now, but I remember clearly an answer given to a Commons user there saying what I stated earlier; you might ask there for an advice, but do not expect official or final answers). If you ask me, we'd be safe with the legal code (I'd +1 this), but we'd be ok with the deed too as the first one is just a click away. This said, I don't see how unjustified animosity toward an user legitimately pointing out a potential issue might take us anywhere. --Elitre (talk) 21:25, 23 June 2011 (UTC)
- If I use the template:credit line when uploading my pictures, any person who might want to use my pictures elsewhere on the internet, clicking Use this file on the web will NOT receive a link to neither the deed nor the legal code. That was the first point that Martina made, as far as I understood. So it is a question of programming, isn't it? --Schwäbin (talk) 21:34, 23 June 2011 (UTC)
- It is, yes. Jean-Fred (talk) 22:52, 23 June 2011 (UTC)
- I do not know how this script works but since searching for "credit line" returns nothing I assume it does not look for {{credit line}} template. And I agree that it should, that is one of the standard ways users could specify exact attribution format. Other way is the attribution parameter in license templates for example in {{{1}}} in {{Cc-by-sa-3.0}} or "author" and "attribution" in {{self}}. I am not sure if this script can parse those either. --Jarekt (talk) 03:54, 24 June 2011 (UTC)
- Huh. I was sure this was done through fileinfotpl_xxx fetching, but it appears {{Credit line}} does not set it... Maybe we should push that into the template, so the script would get it? Jean-Fred (talk) 06:50, 24 June 2011 (UTC)
- Since I do not speak programmer's language, I do not understand your debate (never mind), but may I add a wish if you are about to fix the link anyway? I publish my pictures under CC-BY-SA 3.0 de, that is the German ported version. I would appreciate the link leading not to the English version of the deed, but to the German version (or the German legalcode, but this was the point that made the feelings run high above and I do not wish to press on this). Is that a wish that may become true? --Schwäbin (talk) 09:24, 24 June 2011 (UTC)
-
- @Jean-Fred I am not familiar with fileinfotpl_xxx could you add it to {{Credit line}} or tell me how to use it?
- @Schwäbin in {{Credit line}} you can point to any license in any language. If we get it to work with this script than your wish would come true.
- --Jarekt (talk) 13:53, 24 June 2011 (UTC)
-
- Since I do not speak programmer's language, I do not understand your debate (never mind), but may I add a wish if you are about to fix the link anyway? I publish my pictures under CC-BY-SA 3.0 de, that is the German ported version. I would appreciate the link leading not to the English version of the deed, but to the German version (or the German legalcode, but this was the point that made the feelings run high above and I do not wish to press on this). Is that a wish that may become true? --Schwäbin (talk) 09:24, 24 June 2011 (UTC)
- Huh. I was sure this was done through fileinfotpl_xxx fetching, but it appears {{Credit line}} does not set it... Maybe we should push that into the template, so the script would get it? Jean-Fred (talk) 06:50, 24 June 2011 (UTC)
- I do not know how this script works but since searching for "credit line" returns nothing I assume it does not look for {{credit line}} template. And I agree that it should, that is one of the standard ways users could specify exact attribution format. Other way is the attribution parameter in license templates for example in {{{1}}} in {{Cc-by-sa-3.0}} or "author" and "attribution" in {{self}}. I am not sure if this script can parse those either. --Jarekt (talk) 03:54, 24 June 2011 (UTC)
- It is, yes. Jean-Fred (talk) 22:52, 23 June 2011 (UTC)
-
Hi folks, when working on languages let's do it right from the very beginning. It's nice to see how we translate our templates in any languages out there by the same pattern (subpages that is). I am rather bewildered to notice that we don't do that for CC licences so far. Question to our tech folks: is business as usual (via subpages) the proper method for this issue or does this require serious coding? Regards, PETER WEIS TALK 15:46, 24 June 2011 (UTC)
- The CC licenses use a more advanced system that the ususal subpages thing, using the MediaWiki system messages and TranslateWiki. See this post by Guillaume Paumier for a comprehensive overview. Jean-Fred (talk) 21:12, 24 June 2011 (UTC)
- Thanks for the hint. I wonder if we could use this for other static licences, such as pd-us-gov as well. Regards, PETER WEIS TALK 10:03, 29 June 2011 (UTC)
- Browse through Commons:Template i18n and look for dark gray rows - all those templates are internationalized using TranslateWiki. We are slowly moving towards converting other templates. Unfortunately very few people know how to do it, since the process is not documented as far as I know. --Jarekt (talk) 13:12, 29 June 2011 (UTC)
- Thanks for the hint. I wonder if we could use this for other static licences, such as pd-us-gov as well. Regards, PETER WEIS TALK 10:03, 29 June 2011 (UTC)
The field Attribution is fine now
-
Foto: <a href="http://de.wikipedia.org/wiki/User:Martina_Nolte" class="extiw" title="de:User:Martina Nolte">Martina Nolte</a> / Lizenz: <a href="http://creativecommons.org/licenses/by-sa/3.0/de/legalcode" class="external text" rel="nofollow">Creative Commons CC-by-sa-3.0 de</a>
, <a href='http://commons.wikimedia.org/wiki/File:Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg'>via Wikimedia Commons</a>
But HTML/BBCode still gives a wrong attribution without any licence link or in BBCode only with the - english - deed:
- <a title=' Foto: Martina Nolte / Lizenz: Creative Commons CC-by-sa-3.0 de , via Wikimedia Commons' href='http://commons.wikimedia.org/wiki/File:Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg'><img width='800' alt='Augustinerkloster Erfurt 19-05-2011 DSCF6230' src='http://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg/800px-Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg'/></a>
- [url=http://commons.wikimedia.org/wiki/File:Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg][img]http://upload.wikimedia.org/wikipedia/commons/thumb/1/18/Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg/800px-Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg[/img][/url]
[url=http://commons.wikimedia.org/wiki/File:Augustinerkloster_Erfurt_19-05-2011_DSCF6230.jpg]Augustinerkloster Erfurt 19-05-2011 DSCF6230[/url] [CC-BY-SA-3.0-de (www.creativecommons.org/licenses/by-sa/3.0/de/deed.en) or CC-BY-SA-3.0-de (www.creativecommons.org/licenses/by-sa/3.0/de/deed.en)], by Martina Nolte (Eigenes Werk), from Wikimedia Commons An issue since 2010. --Martina talk 21:33, 15 August 2011 (UTC)
- maybe this is a resulting error:
- HTML attribution at http://commons.wikimedia.org/wiki/File:Dibba_on_24_November_2007_Pict_2.jpg?uselang=de misses the protocol and // for both license text links.
By Imre Solt [<a href="www.gnu.org/copyleft/fdl.html">GFDL</a> or <a href="www.creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA-3.0</a>], <a href='http://commons.wikimedia.org/wiki/File:Dibba_on_24_November_2007_Pict_2.jpg'>via Wikimedia Commons</a>
- Cheers --Saibo (Δ) 19:08, 8 October 2011 (UTC)
- Cannot find these incomplete URLs in the script.. no clue where they come from. --Saibo (Δ) 16:06, 13 October 2011 (UTC)
No buttons on some pages[edit]
Some pages like File:Side view of adobe house with water in foreground," Acoma Pueblo (National Historic Landmark, New Mexico).", 1933 - 1942 - NARA - 519834.TIF do not have Stockphoto buttons, while other images from the same mass upload do, like File:"Two Medicine Lake, Glacier National Park," Montana, 1933 - 1942 - NARA - 519874.tif. Actually, most images in Category:Media from the National Archives and Records Administration needing categories are missing them. --Jarekt (talk) 16:06, 22 July 2011 (UTC)
- It seems to work better now than before. "Use this file" on File:"Two Medicine Lake, Glacier National Park," Montana, 1933 - 1942 - NARA - 519874.tif used note something like "see page", if I recall correctly. Possibly this is due to Template:NARA-Author having been edited since. -- Docu at 10:01, 24 July 2011 (UTC)
The buttons are not showing on File:Hauling guns by ox teams from Fort Ticonderoga for the siege of Boston, 1775 - NARA - 531113.tif : what should I do ? Teofilo (talk) 16:04, 27 July 2011 (UTC)
- Without knowledge of codes, I'd say: There are a lot of unusual fields in the source code. Especially field author = not specified and instead field = creator. I guess you cannot expect a script to work on this. --Schwäbin (talk) 08:03, 20 October 2011 (UTC)
- At least it is no issue with ".tif" (works at this file). --Saibo (Δ) 15:23, 20 October 2011 (UTC)
Oddity on non-image files[edit]
The download dialog ("Download" link just above the image, in the sharing options menu) should probably not link alternative sizes for non-image files (such as this one). --Tgr (talk) 09:52, 24 July 2011 (UTC)
Escaping fix in URLs[edit]
{{editprotected}}
Recommend using encodeURIComponent in place of encodeURI to fix escaping bug in description page backlink when contains "?". Thanks! --brion (talk) 18:31, 19 October 2011 (UTC)
- Doing it. --Saibo (Δ) 19:04, 19 October 2011 (UTC)
- Should be fixed. Tested it. --Saibo (Δ) 19:18, 19 October 2011 (UTC)
Done
The ? is fixed but not the '
signs. Test case: File:ThisisatestX" onclick="alert('XSS');" title="y.png produces this HTML code for reuse:
<a title='By idea by de:Benutzer:Schnark, image faithfully created by Saibo (Δ) [Public domain, CC0 (creativecommons.org/publicdomain/zero/1.0/deed.en) or Public domain], via Wikimedia Commons' href='https://commons.wikimedia.org/wiki/File%3AThisisatestX%22_onclick%3D%22alert('XSS')%3B%22_title%3D%22y.png'><img width='640' alt='ThisisatestX" onclick="alert('XSS');" title="y' src='https://upload.wikimedia.org/wikipedia/commons/2/22/ThisisatestX%22_onclick%3D%22alert%28%27XSS%27%29%3B%22_title%3D%22y.png'/></a>
Unescaped ' in href. --Saibo (Δ) 19:28, 19 October 2011 (UTC)
Icons are separated from their text if line length is too short (line break)[edit]
(with big icons - not logged in)
They should break (together with their text) to the next line. That is especially strange if the horizontal layout is shown. --Saibo (Δ) 16:10, 6 February 2012 (UTC)
Python "port"[edit]
I mentioned this at the Village pump, but I thought I should drop a note here as well. I ported the code for extracting attribution and license info into a Python library available here. This can be useful for generating attribution text from third party code. Some questions have arisen about why some things are the way they are, but I'll ask that under a separate heading. /skagedaltalk 20:49, 8 March 2012 (UTC)
Some questions on the code[edit]
- Sometimes it prints "via Wikimedia Commons" and sometimes "from Wikimedia Commons". This is controlled by the variable
stockPhoto.fromCommons
, which defaults tofalse
(i.e., "via" Wikimedia Commons), but is set totrue
if either: 1. the author field contains the text "Original uploader was", or 2. the author field is non-empty and an element with id "own-work" is found. What is the logic behind this? Is it to do with files automatically transferred from other wikis? - What is the origin of the [▼] that is stripped with the
if (author.substr(0, 3) === '[▼]') ...
code?
Hmm, there were other things... but let's start there. :) /skagedaltalk 21:28, 8 March 2012 (UTC)
- For #1 : Media hosted here may either be the production of Wikimedians and uploaded here (or in some Wikimedia project) in the first place (labeled as "own work"), or be made available from somewhere under a free license and copied over here. I guess the distinction is made to reflect this, and "advertise" Commons justly and only when this is really justified. Jean-Fred (talk) 23:23, 12 March 2012 (UTC)
- Ok, thanks! That makes sense — almost: it's not entirely clear to me why files transfered from Wikipedia (or other Wikimedia projects) should be labeled as "from Wikimedia Commons", are these always work by Wikimedians? Here's one counterexample... /skagedaltalk 12:38, 13 March 2012 (UTC)
Credit line should be more proeminent[edit]
Hi,
This blogpost by User:Ludo29 is some food for thought about this tool. What is argued there is that the “Credit line” (John Doe, CC-BY-SA) is not proeminent enough, and is buried between other information. Indeed, it may be accessed either by the “Download” button (which may be unexpected), with other URLs ; or by the “use the file on the web”, with blocks of HTML below. There is definitive (albeit anecdotal) evidence that make the credit line hard to find.
Okay, brainstorming time. I played around and have a first idea, depicted on the screenshot on the right.
Thoughts ? Better, worse ?
Jean-Fred (talk) 21:43, 21 March 2012 (UTC)
- Good blog post by User:Ludo29, it deserves to be widely shared in the Wikimedia universe. Although I unfortunately do not read French, I had no problems reading it using Google Translate. I also agree with Ludovic in the comments – why require the click of a button at all? I would prefer just a box with text right under the image, "Credit as: Joe Ravi [CC-BY-SA 3.0, etc...]" maybe even in a slightly larger font than the rest of the text. In some cases, this will duplicate the exact information already on the page (e.g. when {{credit_line}} is used), and sometimes it might say something empty or broken, but I think it's worth it for consistency and ease of finding this important info. This will also encourage contributors to machine-readably tag their uploads.
- (If Ludo's suggestion would for some reason not be acceptable by the community, your proposed change in the screenshot is an improvement from the current situation.) /skagedaltalk 13:10, 23 March 2012 (UTC)
{{credit line}} should not be ignored[edit]
Related to the discussion on the German Village pump: The stockphoto gadget ignores the {{credit line}} which could lead to legal problems.
- Example file: File:Alces alces Elchkuh liegend Wildpark Alte Fasanerie Juni 2012.JPG (compare the attribution generated by the gadget with the attribution filled into the {{credit line}})
- Proposed solution: Ignore other author attributions (e.g. |author= ####, {{cc-by-sa-3.0|attribution= ####, ...) when {{credit line}} is used on the description page.
--McZusatz (talk) 07:59, 15 July 2012 (UTC)
- This is not a reply to you, McZusatz but I'd like to add some general points. The problem is that people invent new templates without adjusting the scripts or notifying the script-authors or thinking about them. This really s****. The same is true for the edit-summaries the bots use: They change and if your script tries to extract the original uploader you can go mad. I am just not sure how one could educate people... I thought it would be in the interest of the photographers to get correct attribution but when I see some distracting colorful author-templates I am not sure anymore. This means that I'll refrain from improving this script as long as script devs have to run after the whole world. -- Rillke(q?) 21:20, 15 July 2012 (UTC)
-
- This sounds like a lot of work to do. Something has to be done to keep an overview over all the templates and stuff... Maybe only the most common license templates of the whole license jungle should be kept and replace the "colorful" ones, as you call them. --McZusatz (talk) 11:32, 16 July 2012 (UTC)
HTML generated by "use this code" does not work as img src URL is missing scheme[edit]
On Wikimedia commons the "HTML/BBCode" HTML for "use this file" includes image URLs that are without a protocol scheme. That is:
src="//upload.wikimedia.org/wikipedia/commons/3/3b/Glenda_dog_blue_eye.jpg")
instead of:
src="http://upload.wikimedia.org/wikipedia/commons/3/3b/Glenda_dog_blue_eye.jpg")
This happened once before and I was told it had to do with the switch to HTTPS, but it was restored and hence I could easily paste that code elsewhere. Now,the scheme has gone missing again in the past week or so. Lua error: too many expensive function calls.
- This is actually valid HTML! It's called a protocol relative URL and is used on Wikimedia Foundation wikis for URLs. When the browser follows a protocol relative URL, it uses http if on a http page, https if on a https page. This has some advantages, for example to get rid of annoying messages in Internet Explorer that appears when http delivered images are emedded in https delivered documents.
- The generated html for "use this file" was changed by Krinkle on 2012-03-19 with the edit message: "remove "location.protocol + " from stockphoto_get_thumbnail_url(). The html given to people for usage on their own site should be protocol relative, no reason not to. that means https for https sites, and http for https sites."
- So it's the intended behavior, and not a bug. I'm not all convinced it's the best behavior here, since this is code generated for use elsewhere, and most other places use URLs with absolute protocol scheme. Could there be places where you'd want to paste your HTML where this is not accepted? Reagle, are you having such problems? If so, where are you trying to use the HTML? /skagedaltalk 11:24, 27 March 2012 (UTC)
- Ah, I now found the last time this issue was raised. So, it causes problems when pasting HTML into local documents – which is natural, since there is then no http or https to relate to. I agree that it should be changed back again: "relative" only makes sense when we know what we're relative to. Otherwise, explicit is better. /skagedaltalk 11:31, 27 March 2012 (UTC)
- It is about re-usage on the web. On the web it will be relative to the current protocol of the web page it is embedded in. So if you paste it into a wordpress article on a server that uses HTTP, then it will load the image from HTTP://upload.wikimedia.org. If you paste it into an HTML document on a HTTPS server, it will load the image from HTTPS://upload.wikimedia.org. This works fine and it is supported in all major browsers (and has been for a very long time; just like
a href="/wiki/Sandbox"
works as relative path within a domain,//server/path
works are relative path for a protocol).
I don't think local navigating viafile:///
is a use case we should support (not to confuse with local navigation of html files throughhttp://localhost
, which works fine). And if you really do want to use it local file without a webserver, or are creating custom things (like rich HTML emails), then use the url displayed in the input fields (e.g. "File URL:") which are not protocol-relative or simply add the protocol to the html snippet manually. –Krinkletalk 14:25, 30 March 2012 (UTC)- Could you clarify what the benefits are of using the same protocol as the embedding document? Except for the annoying message in IE? /skagedaltalk 21:22, 30 March 2012 (UTC)
- It seems arbitrary to simply say you are going to throw out support for a major Web protocol/scheme, that is "file:", and hence people can't see images on pages when viewed from a file system. I used the the images this way and have done so for a while now. I don't use IE and don't see these nags, if that's the sole reason, sounds like a clientside issue. -Reagle (talk) 21:45, 12 April 2012 (UTC)
If the BBCode is missing the URL scheme, it seems to be impossible to use it in some server software. Reported at talk page of German Main page. -- Rillke(q?) 20:50, 6 October 2012 (UTC)
Further hint on how to use this in a wiki[edit]
Hi there, when clicking on the puzzle globe it ways "Use this file on a wiki" and displays two wikitext input fields. What about some additional line explaining that the user should copy this into an article of the wiki (e.g. Wikipedia)? A friend of mine tested uploading pictures to commons without any previous knowledge. She found the button, but didn't know what to do with the popup and the wikitext. --Flominator (talk) 12:23, 7 September 2012 (UTC)
- I would prefer a pictogram. Otherwise one has to translate everything… Ideas welcome. -- Rillke(q?) 13:17, 7 September 2012 (UTC)
- Isn't "copy and paste this text into your wiki" a bit too much for a pictogram? --Flominator (talk) 10:04, 23 September 2012 (UTC)
- Was für Paste? And where the hell I should paste it? In my opinion, there could be much more pictograms. But if no one creates one, what about using MediaWiki:mwe-upwiz-thanks-wikitext: (To use the file in a wiki, copy this text into a page:) -- Rillke(q?) 11:26, 23 September 2012 (UTC)
- Better than nothing. --Flominator (talk) 15:15, 20 October 2012 (UTC)
- Where can we insert that? --Flominator (talk) 15:03, 16 November 2012 (UTC)
- We would have to edit each translation. In theory, with Gadgets 2.0, we could use MediaWiki messages directly but Gadgets 2.0's deployment and development seems to be delayed. -- Rillke(q?) 15:41, 5 January 2013 (UTC)
- What time dimension (days, months or years) do you expect for it to take? Where can I read something about Gadgets 2.0? --Flominator (talk) 17:21, 12 January 2013 (UTC)
- I've absolutely no clue. In 2012-03, I asked Krinkle and he said they will be likely usable in about 2012-10. No update since then. mw:Gadgets 2.0 is the design draft page. -- Rillke(q?) 14:15, 16 January 2013 (UTC)
- What time dimension (days, months or years) do you expect for it to take? Where can I read something about Gadgets 2.0? --Flominator (talk) 17:21, 12 January 2013 (UTC)
- We would have to edit each translation. In theory, with Gadgets 2.0, we could use MediaWiki messages directly but Gadgets 2.0's deployment and development seems to be delayed. -- Rillke(q?) 15:41, 5 January 2013 (UTC)
- Was für Paste? And where the hell I should paste it? In my opinion, there could be much more pictograms. But if no one creates one, what about using MediaWiki:mwe-upwiz-thanks-wikitext: (To use the file in a wiki, copy this text into a page:) -- Rillke(q?) 11:26, 23 September 2012 (UTC)
- Isn't "copy and paste this text into your wiki" a bit too much for a pictogram? --Flominator (talk) 10:04, 23 September 2012 (UTC)
Skins other than vector and monobook[edit]
So a user in hewiki is fond of "modern", and is also fond of Stockphoto.
In trying to see what the deal is, I copied the gadget code and removed the line that checks to see what the skin is, i.e., this line:
&& ( mw.config.get( 'skin' ) === 'vector' || mw.config.get( 'skin' ) === 'monobook' )
And guess what - the gadget works perfectly with modern. My guess is that it probably works just as well with all the other skins, but I can't/do not wish to test them all.
My suggestion is to either remove this line, or at least replace it with:
&& ( $.inArray( mw.config.get( 'skin' ), ['vector', 'monobook', 'modern'] ) + 1 )
peace - קיפודנחש (talk) 05:11, 11 December 2012 (UTC)
Should be "Download file:"[edit]
{{Edit request}} It currently always says "Download image file:" (download_image_file key). Because it could be a video, it should say "Download file:" or something along those lines. It makes sense to also change to i18n key (download_file), but it isn't critical.
It would be nice if it did in fact say the right thing (e.g. "Download video:") when appropriate, but it isn't necessary. Superm401 - Talk 16:20, 16 December 2012 (UTC)
- To be clearer, this is the requested change. Since ths shouldn't be controversial, I'm adding {{Edit request}}}. Superm401 - Talk 16:26, 16 December 2012 (UTC)
Not done for now. The message in question is for the links to the image in different sizes, and it makes little sense to change the wording to cover non-image files. As you can see in File:Editing_basics_-_Uploading_and_adding_images.webm, the relevant links go to nowhere. Instead, perhaps we could just hide these links for non-image files, but that requies some tweaks in the code. It will be great if you could offer any help changing the script along that line. --whym (talk) 23:56, 21 December 2012 (UTC)
Not working always[edit]
Hi, I noticed that the gadget does not always work for some images. One that I found just now is File:USS Newport News CA-148.jpg. Can someone please see why the gadget fails here? --Sreejith K (talk) 16:14, 4 February 2013 (UTC)
- The gadget requires an {{Information}} template or some other of the same family ({{Artwork}} etc.) − technically, one template that defines the HTML classes
'fileinfotpl_desc'
or'fileinfotpl_src'
. - Jean-Fred (talk) 16:22, 4 February 2013 (UTC)
- That explains. Thanks. However, I would still prefer to have this gadget displayed even if the templates are missing. --Sreejith K (talk) 17:12, 4 February 2013 (UTC)
- At least for "users/editors", it then should show a hint about the absence of {{information}}, yes. -- Rillke(q?) 12:02, 5 February 2013 (UTC)
- That explains. Thanks. However, I would still prefer to have this gadget displayed even if the templates are missing. --Sreejith K (talk) 17:12, 4 February 2013 (UTC)
Serbian translation[edit]
{{editprotected}}
I request an admin to create the sub-page MediaWiki:Gadget-Stockphoto.js/sr for the Serbian language. The text of the page should be
//
stockPhoto.i18n = { reuse: 'Поновно коришћење датотеке', download: 'Преузми', download_this_file: "Преузми ову датотеку", use_this_file_web: "Користи датотеку на вебу", use_this_file_web_short: "Користи датотеку", use_this_file_wiki: "Користи датотеку на викију", use_this_file_wiki_short: "Користи датотеку", email_link_short: "Пошаљи линк на е-пошту", information: "Информације", remove_icons: "Уклони ове иконице", all_sizes: "Све величине", on_a_website: "на вебу", on_a_wiki: "у викију", to_this_file: "ове датотеке", about_reusing: "Услови коришћења", look_what_i_found: "Види шта сам пронашао на Викимедијиној остави: ", from_wikimedia_commons: "од Викимедијине оставе", via_wikimedia_commons: "преко Викимедијине оставе", by: "од", by_u: "Од", see_page_for_author: "За аутора види", see_page_for_license: "За лиценцу погледај", page_url: "Линк на страницу", file_url: "Директан линк", attribution: "Ауторство", no_attr: "Није потребно навођење аутора", or: "или", gfdl_warning: "За употребу ове датотеке можда је потребно навођење интегралне верзије <a href='http://en.wikipedia.org/wiki/GNU_Free_Documentation_License'>GFDL</a> лиценце.", download_image_file: "Преузми ову слику", full_resolution: "Пуна резолуција", not_available: "није доступно", share_this_file: "Дели ову датотеку", html: "HTML", bbcode: "BBCode", px_wide_icon: "ширина у px (Икона)", px_wide: "ширина у px", wikipedia_instant_commons: "Викимедија/InstantCommons", thumbnail: "Мала слика", image: "Слика", share_on_facebook: "Дели на Facebook-у", share_on_digg: "Дели на Digg.com", share_on_delicious: "Дели на delicious-у", share_on_reddit: "Дели на reddit.com", share_on_stumbleupon: "Дели на stumbleupon.com", share_on_yahoo_buzz: "Дели на Yahoo! Buzz-у", share_on_identi_ca: "Дели на identi.ca", share_on_google_buzz: "Дели на Google Buzz-у", share_on_twitter: "Дели на twitter.com", reusing_content_url: "Commons:Reusing content outside Wikimedia" }; //
--Milićević (talk) 20:42, 11 August 2013 (UTC)
Bug with src element[edit]
Since a few days, the HTML snippet produced by the tool has an invalid src element. See for example on File:Mandarin Oranges (Citrus Reticulata).jpg
<a title="Joe Ravi [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons" href="https://commons.wikimedia.org/wiki/File%3AMandarin_Oranges_(Citrus_Reticulata).jpg"><img width="512" alt="Mandarin Oranges (Citrus Reticulata)" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/49/Mandarin_Oranges_%28Citrus_Reticulata%29.jpg/512px-Mandarin_Oranges_%28Citrus_Reticulata%29.jpg"/></a>
Where the src to the thumb uses protocol relative URLs instead of full URLs.
Jean-Fred (talk) 20:11, 31 August 2013 (UTC)
- Huh, already described and discussed above at #HTML_generated_by_.22use_this_code.22_does_not_work_as_img_src_URL_is_missing_scheme. Jean-Fred (talk) 20:26, 31 August 2013 (UTC)
Download not working for ogg files in Firefox?[edit]
Hello,
I tried downloading File:Flying Tigers Bite Back.ogg via the Download button of this gadget. Strangely, the "File URL" given in the box popping up is https:/wiki/Special:Categories
and the actual "Full resolution" download link below that leads to https://commons.wikimedia.org/wiki/Special:Categories. Doesn't really make sense, does it? So I've tried some other videos:
- File:Krila Oluje Karlovac 2010.OGG: same as above
- File:2010-10-03-Budapest-U-Bahn.ogg: dito
- File:2010-02-17-10-27-00016.ogv: has some links for lower resolution versions which lead to https://commons.wikimedia.org/wiki/undefined – apart from that same as above.
- File:Agelastica_alni_(female).ogv: dito
I'm using Firefox 26.0 on Linux Mint 15. JavaScript is enabled, no Adblocker active, nothing else I can think of. --El Grafo (talk) 19:48, 28 August 2014 (UTC)
Works fine with w:Midori (web browser), though. --El Grafo (talk) 19:53, 28 August 2014 (UTC)- Correction: full resolution downloads seems to work with Midori, lower resolution download links still lead to https://commons.wikimedia.org/wiki/undefined --El Grafo (talk) 19:57, 28 August 2014 (UTC)
In kazak language[edit]
{{editprotected}}
I request an admin to create the sub-page MediaWiki:Gadget-Stockphoto.js/kk-cyrl for the Kazakh language. The text of the page should be
//
stockPhoto.i18n = {
download : 'Жүктеу' ,
download_this_file : "Бұл файлды жүктеу" ,
use_this_file_web : "Бұл файлды вебте қолдану" ,
use_this_file_web_short : "Файлды қолдану" ,
use_this_file_wiki : "Файлды уикиде қолдану" ,
use_this_file_wiki_short : "Файлды қолдану" ,
email_link_short : "e-mail-ге жіберу" ,
information : "Ақпарат" ,
all_sizes : "барлық өлшемдері" ,
on_a_website : "вебте" ,
on_a_wiki : "уикиде" ,
to_this_file : "осы файлға сілтеме" ,
about_reusing : "қолдану туралы" ,
look_what_i_found : "Ортаққордан не тапқанымды қараңыздар: " ,
from_wikimedia_commons : "Ортаққордан" ,
by : "by" ,
by_u : "Автор" ,
see_page_for_author : "Автор бетін қарау" ,
see_page_for_license : "Лицензия бетін қарау" ,
page_url : "бет URL-і" ,
file_url : "файл URL-і" ,
attribution : "Авторлықты көрсету" ,
gfdl_warning : "Бұл файлды қолдану толық көшірмесімен бірге болуды қажет етуі мүмкін <a href='http://en.wikipedia.org/wiki/GNU_Free_Documentation_License'>GFDL</a>" ,
download_image_file : "Суреттің файлын жүктеу" ,
full_resolution : "Толық рұқсат" ,
not_available : "қол жетімді емес" ,
share_this_file : "Бұл файлмен бөлісу" ,
html : "HTML" ,
bbcode : "BBCode" ,
px_wide_icon : "px (ені; белгіше)" ,
px_wide : "px (ені)" ,
wikipedia_instant_commons : "Уикимедия жобаларында немесе InstantCommons қолдауымен" ,
thumbnail : "Алдын ала қарау",
image : "Сурет",
share_on_facebook : "Facebook-те бөлісу" ,
share_on_digg : "Digg.com-да бөлісу" ,
share_on_delicious : "delicious-те бөлісу" ,
share_on_reddit : "reddit.com-да бөлісу" ,
share_on_stumbleupon : "stumbleupon.com-да бөлісу" ,
share_on_yahoo_buzz : "Yahoo! Buzz-де бөлусі" ,
share_on_identi_ca : "identi.ca-да бөлісу" ,
share_on_google_buzz : "Google Buzz-де бөлісу" ,
share_on_twitter : "twitter.com-да бөлісу" ,
reusing_content_url : "Commons:Reusing content outside Wikimedia"
};
//
--Мұхамеджан Амангелді (talk) 16:47, 7 September 2014 (UTC)
- @Мұхамеджан Амангелді:: Done in MediaWiki:Gadget-Stockphoto.js/kk-cyrl. Thanks for helping! Jean-Fred (talk) 20:49, 7 September 2014 (UTC)
Attribution text for printed newspapers[edit]
I recently stumbled upon a problem that could be fixed quite easily on our end and could help a lot of media editors out there to reuse our content. Recently a journalist from Gazeta Wyborcza (the biggest daily newspaper in Poland) contacted me (I'm a spokesperson for Wikimedia Polska) with a problem. He chose some 100 pics out of 400 Wiki Loves Monuments 2014 Finallists and wanted to prepare a gallery for their main page, that would sit there for the duration of the Christmas break. Great media coverage, if you asked me.
The problem is, their CMS does not allow links in caption space, so they use the same system as in their paper edition (I'm using this file as a reference):
- Konstantin Brizhnichenko / CC BY-SA 4.0 / Wikimedia Commons
It's pretty much a standard in many media out there. Yet the closest caption we offer is this:
- Konstantin Brizhnichenko [CC BY-SA 4.0 (http://creativecommons.org/licenses/by-sa/4.0)], via Wikimedia Commons
So in practice he had to prepare 100 captions by hand. Is there a way to customize the output of this tool? Halibutt (talk) 11:28, 28 December 2014 (UTC)