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
Hi Tim,
2009/5/18 Tim Ware tim@hyperarts.com:
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't help you with the actual problem, but the {{{!}}} template is used to pass a | charcter as a parameter in a template call. Just take a look at the Template:! page to see this.
Firstly i recommend: 1. Enable HTML Tidy on your wiki install http://www.mediawiki.org/wiki/Manual:%24wgUseTidy 2. Export the template from en.wiki using Special:Export http://en.wikipedia.org/wiki/Special:Export 3. Make sure you have all the required CSS stylings copied over from en.wiki to yours, The main places to check would be the (A) Common.Css http://en.wikipedia.org/wiki/MediaWiki:Common.css (B) Monobook.Css http://en.wikipedia.org/wiki/MediaWiki:Monobook.css as well as any other css files for skins your using.
-Peachey
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.
mediawiki-l@lists.wikimedia.org