Last modified: 2014-09-09 12:03:11 UTC
On commonswiki there exists https://commons.wikimedia.org/wiki/Commons:Deletion_requests/File:US_Navy_070210-N-7643B-079_The_statue_%5Eldquo,Unconditional_Surrender,%5Erdquo,_which_represents_a_famous_photo_taken_by_Alfred_Eisenstaedt_of_a_Sailor_kissing_a_nurse_in_Time_Square,_New_York_City_1945,_was_dedicated_to_the_city.jpg But the page is unusable because of length it is not possible to create internal links like [[:commons:Commons:Deletion requests/File:US Navy 070210-N-7643B-079 The statue ^ldquo,Unconditional Surrender,^rdquo, which represents a famous photo taken by Alfred Eisenstaedt of a Sailor kissing a nurse in Time Square, New York City 1945, was dedicated to the city.jpg]] and json object contains wrong information, too: "wgPageName":"Commons:Deletion_requests/File:US_Navy_070210-N-7643B-079_The_statue_^ldquo,Unconditional_Surrender,^rdquo,_which_represents_a_famous_photo_taken_by_Alfred_Eisenstaedt_of_a_Sailor_kissing_a_nurse_in_Time_Square,_New_York_City_1945,_was_dedicated_to_the_ci","wgTitle":"Deletion requests/File:US Navy 070210-N-7643B-079 The statue ^ldquo,Unconditional Surrender,^rdquo, which represents a famous photo taken by Alfred Eisenstaedt of a Sailor kissing a nurse in Time Square, New York City 1945, was dedicated to the ci","wgCurRevisionId":0,"wgRevisionId":0,"wgArticleId":0 So all scripts fail on this page. How could this page ever be created?
(In reply to merl from comment #0) > So all scripts fail on this page What are "all scripts", for example?
I detected this problem because my labs database bot created links which were not linked on rendered view (example [[de:Special:Permalink/132869819]]). But this also affects all javascript gadgets on commons reading wgArticleId or wgPageName. The last one is used by all gadgets linking to toollabs for example.
(In reply to merl from comment #0) > and json object contains wrong information, too: I can't reproduce this, the variables are all sane for me. This page title without namespace is 253 bytes, which is just within the limit. I wonder why the links break.
Note that the limit for file names (and thus titles in the File namespace) is 240 characters, not 255 as for other pages. No idea if that is the problem here, but it's something to keep in mind.