[Mediawiki-l] Help w/infobox single (so close to getting it...)

Tim Ware tim at hyperarts.com
Mon Apr 21 13:57:25 UTC 2008


Using MW 1.12.0
Media Temple - Dedicated Virtual

I'm trying to use a Wikipedia Template called "Infobox Single" - used  
for 45 rpm singles info boxes such as this one:

http://en.wikipedia.org/wiki/Strawberry_Fields_Forever

I've almost got it working, but the one piece that's killing me is  
that when it renders, it's not creating the thumbnail in the box, but  
rendering the full image. (Normal thumbnails work fine.)

I did recreate a number of dependent templates and my one worry is  
that I've omitted one. Some templates on Wikipedia are protected and I  
haven't been able to locate the source code for them. But I've set up  
most of them.

I'm *barely* able to work with wiki coding, but here's the snippet  
where the image in the box is created:

|-
| colspan="3" style="text-align:center;" | {{#if:{{{Cover|}}}|
{{#ifeq:{{{Cover}}}|none| |[[Image:{{{Cover}}}|{{min|200|{{{Cover  
size|}}}}}px|{{#ifeq:{{{Border|}}}|yes|border{{!}}}}“{{{Name}}}”  
cover]]}}| }}
{{#if:{{{Caption|}}} | <div style="font-size: 0.8em; line-height:  
1.4em;">{{{Caption}}}</div>
}}
|-

The cover shows up, but not in thumbnail. If I do a browser "view  
source" I see, for the image tag:

<a href="/wiki/index.php/Image:Pennystrawps.jpg" class="image"  
title="“Strawberry Fields Forever” cover"><img alt="“Strawberry Fields  
Forever” cover" src="/wiki/images/6/69/Pennystrawps.jpg" width="360"  
height="361" border="0" /></a>

Driving me crazy because I'm *so* close!

Thanks. Tim



......................................................... ! .............................................................
Tim Ware .. HyperArts .. 201 4th Street, Ste 404 .. Oakland CA 94607
t: (510) 339-6084 .. f: (510) 339-6086 .. e: tim at hyperarts.com
http://www.hyperarts.com
Map






More information about the MediaWiki-l mailing list