User:Gosgood/Sandbox
From Wikipedia, the free encyclopedia
[edit] Picture in Prospect Park Zoo Info box has disappeared.
It does exist in Wikimedia Commons, and is still being reproduced in pre-infobox versions of the article. Not sure what the info box connection is, but the result is that the generated HTML is referencing a cache image 300 pixels wide that does not exist. These cache images are generated automagically. Here is a test html page that manifests the symtoms. In this test page, the anchor links in each of the paragraphs are copies of the 'src' attribute of the <img> tag of the generated HTML that the Wikipedia sends in response to the page requests. The current generated code references a non-existent cache image, the HTML from the pre-info box page, September 14, references an existing cached image. Copy this code into a test page to observe symptoms or try the links below. Gosgood 11:56, 2 March 2007 (UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> </head> <body>
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Prospect_Park_Zoo-21-Jan-2006.jpg/300px-Prospect_Park_Zoo-21-Jan-2006.jpg">Image source link reproduced in 15 January 2007: http://en.wikipedia.org/w/index.php?title=Prospect_Park_Zoo&oldid=100858435
</a>
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Prospect_Park_Zoo-21-Jan-2006.jpg/250px-Prospect_Park_Zoo-21-Jan-2006.jpg">Image source link reproduced in 14 September 2006: http://en.wikipedia.org/w/index.php?title=Prospect_Park_Zoo&oldid=75689044
</a>
</body> </html>
[edit] Create a 300 pixel cache image, maybe....
If this reference creates a 300 pixel cache image, it will solve the immediate problem, but not the underlying issue of why such an image was not generated from a reference in the page info box.
Hmmm... the below, which makes reference to an explicit 300 pixel image, does not appear to generate a cache image... ([[Image:Prospect_Park_Zoo-21-Jan-2006.jpg|thumb|300px|right|Prospect Park Zoo, Prospect Park Brooklyn]]
Not making a reference to any preferred width does get an image: [[Image:Prospect_Park_Zoo-21-Jan-2006.jpg|thumb|right|Prospect Park Zoo, Prospect Park Brooklyn]]
None of this test code involves the Zoo template, so I don't think recent template changes have anything to do with root cause. The difficulty seems related to an explicit request to 300 pixel images. The hunt continues... Gosgood 13:13, 2 March 2007 (UTC)