Forum:Defining the image for "Read more" section

I am actually trying to change the image, that is chosen automatically for an article's "Read more" link. Do you know a working method?

I wrote a template some time ago like this to add an additional invisible image at the top of an article, for avoiding using (downscaled) message box icons, and I'm pretty sure it worked on articles with few images. But now I have here an article with several images, and the template doesn't seem to work. I have the impression, that "directly" included images are favored over images, that are included by a template. Is that possible?

The article I'm referring to can be found here. I want the "Read more" link to show the infobox image instead of the other book cover, that can be found in the section "Publishers in other countries".

Do you have experience with this problem? Thanks in advance. -- Weas-El  Talk|Contribs  18:34, March 26, 2011 (UTC)
 * I wish we knew the particulars of this. Sometimes it uses the first image, sometimes the last, sometimes it doesn't use any when there's images on the page... Until Wikia decides to reveal how the extension works, or someone decides to look in-depth into the code, you won't be able to get a straight answer on this and most of it will be speculative. Rappy 21:55, March 26, 2011 (UTC)


 * Tagging Staff needed. Wikia staff are the only ones that can begin to answer that question and they should have given some info when they released the feature, but they didn't. -- Fandyllic (talk &middot; contr) 28 Mar 2011 2:16 PM Pacific


 * I did some searching in the code and I found this snippet in the php. I don't fully understand PHP, but it looks as though it's to grab the first image it encounters on the page, but that doesn't always seem to be the case.

foreach( $pages as $pageId => $data ) { if( isset( $images[$pageId] ) ) { $image = $images[$pageId][0]; $data['imgUrl'] = $image['url'];

$this->pages[] = $data; }  else { // no images, get a text snippet $data['text'] = $this->getArticleSnippet( $pageId );

if ($data['text'] != '') { $this->pages[] = $data; }  }

if (count($this->pages) >= $limit) { break; } }
 * Rappy 22:41, March 28, 2011 (UTC)