On 5/17/09, Tim Ware tim@hyperarts.com wrote:
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@hyperarts.com .. twitter.com/hyperarts http://www.hyperarts.com
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Templates can, and often do, include other templates. Infoboxes seem to be some of the most complex templates. Some can include many other templates, which can include other templates. Look down at the bottom of the template you are copying and you should see a list of other templates that your template will be calling. Lather, rinse, repeat.