Difference between revisions of "Template:ThreeColumnList"
From LAH Wiki
Line 1: | Line 1: | ||
{| style="width:{{#if: {{{width|}}}|<includeonly>{{{width}}}</includeonly>|100%}}; background:{{#if: {{{background|}}}|{{{background}}}|transparent}}" valign="top" align="{{#if: {{{align|}}}|<includeonly>{{{align}}}</includeonly>|Center" | {| style="width:{{#if: {{{width|}}}|<includeonly>{{{width}}}</includeonly>|100%}}; background:{{#if: {{{background|}}}|{{{background}}}|transparent}}" valign="top" align="{{#if: {{{align|}}}|<includeonly>{{{align}}}</includeonly>|Center" | ||
+ | |colspan=3|{{#if: {{{header|}}}|<table style="width:100%; background:transparent; text-align:center; font-size:125%; border:0px"><tr><td>{{{header}}}</td></tr></table>}}<noinclude><table style="width:100%; background:transparent; text-align:center; font-size:125%; border:0px"><tr><td>Header</td></tr></table></noinclude> | ||
+ | |- | ||
| style="width:33%<!--; border:1px dotted dimgray-->" valign="top"| | | style="width:33%<!--; border:1px dotted dimgray-->" valign="top"| | ||
<includeonly>{{{Col1}}}</includeonly><noinclude>Data for Column 1</noinclude> | <includeonly>{{{Col1}}}</includeonly><noinclude>Data for Column 1</noinclude> | ||
Line 6: | Line 8: | ||
| style="width:34%<!--; border:1px dotted dimgray-->" valign="top"| | | style="width:34%<!--; border:1px dotted dimgray-->" valign="top"| | ||
<includeonly>{{{Col3}}}</includeonly><noinclude>Data for Column 3</noinclude> | <includeonly>{{{Col3}}}</includeonly><noinclude>Data for Column 3</noinclude> | ||
+ | |- | ||
+ | |colspan=3|{{#if: {{{footer|}}}|<table style="width:100%; background:transparent; text-align:center; font-size:125%; border:0px"><tr><td>{{{footer}}}</td></tr></table>}}<noinclude><table style="width:100%; background:transparent; text-align:center; font-size:125%; border:0px"><tr><td>Footer</td></tr></table></noinclude> | ||
|} | |} | ||
<noinclude><!--Between these tags will not appear on the template iteself--> | <noinclude><!--Between these tags will not appear on the template iteself--> | ||
Line 13: | Line 17: | ||
*'''background''' - the background color. if left blank, it will default to transparent. | *'''background''' - the background color. if left blank, it will default to transparent. | ||
*'''align''' - how the table will align in the page, left, right or center. If left blank, the template will default to center | *'''align''' - how the table will align in the page, left, right or center. If left blank, the template will default to center | ||
+ | *'''header''' - the template's header. if left blank, it won't have one. | ||
*'''Coll''' - the data for column 1. | *'''Coll''' - the data for column 1. | ||
*'''Col2''' - the data for column 2. | *'''Col2''' - the data for column 2. | ||
*'''Col3''' - the data for column 3. | *'''Col3''' - the data for column 3. | ||
+ | *'''footer''' - the template's footer. if left blank, it won't have one. | ||
− | <!-- These are options yet to be implemented. Some, such as the color options, may not be | + | <!-- These are options yet to be implemented. Some, such as the color options, may not be. |
− | + | ||
− | + | ||
*'''cellBorder''' - the width of the borders of the individual cells. if left blank, it will default to 0 (no border) | *'''cellBorder''' - the width of the borders of the individual cells. if left blank, it will default to 0 (no border) | ||
*'''cellBorderStyle''' - how the borders of the individual cells are drawn, for example solid, dashed or dotted. if left blank, will default to solid. | *'''cellBorderStyle''' - how the borders of the individual cells are drawn, for example solid, dashed or dotted. if left blank, will default to solid. | ||
Line 28: | Line 32: | ||
--> | --> | ||
The code to put into the article is | The code to put into the article is | ||
− | <pre>{{ThreeColumnList | + | <pre> |
− | |width= | + | {{ThreeColumnList |
− | |align= | + | |width= |
− | |Col1= | + | |align= |
− | |Col2= | + | |header= |
− | |Col3= | + | |Col1= |
+ | |Col2= | ||
+ | |Col3= | ||
+ | |footer= | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
Just about anything can be put into Col1, Col2 and Col3, using normal wiki markups, ect. Note that unless you are using list codes such as * or #, that you will need to use the <nowiki><BR></nowiki> code for each line break within columns. | Just about anything can be put into Col1, Col2 and Col3, using normal wiki markups, ect. Note that unless you are using list codes such as * or #, that you will need to use the <nowiki><BR></nowiki> code for each line break within columns. | ||