[Mediawiki-l] Infobox Song template - how do I implement on my wiki?

Tim Ware tim at hyperarts.com
Mon May 18 03:50:16 UTC 2009


Hello,

I'd like to use the Template: Infobox Song, as is used in Wikipedia  
here:

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

but I just can't seem to figure it out.  The template begins with:

<includeonly>{| class="infobox" style="width: 20em;"
|-
! colspan="3" scope="col" style="background: {{Infobox Song/color}};"  
| "{{{Name}}}"
|-
| colspan="3" style="text-align: center;" | {{#if: {{{Cover|}}}
| [[Image:{{{Cover}}}|{{min|220|{{{Cover size|}}}}}px|{{#ifeq: 
{{{Border|}}}|yes|border{{!}}}}{{#if: {{{Caption|}}} | {{{Caption}}} |  
"{{{Name}}}" cover}}]]}}
{{#if:{{{Caption|}}} | <div style="font-size: 0.8em; line-height:  
1.4em;">{{{Caption}}}</div>
}}

and those "!" have some meaning which I can't figure out. But the  
table that is supposed to be written isn't written correctly, with  
those "colspan="3" scope="col" etc. remaining outside the <th>.

Can anybody help me here? Thanks!


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







More information about the MediaWiki-l mailing list