Difference between revisions of "Template:TwoColumnList"

From LAH Wiki
Jump to: navigation, search
Line 1: Line 1:
{| style="width:<includeonly>{{{width}}}</includeonly><noinclude>95%</noinclude>; background:black" align="<includeonly>{{{align}}}</includeonly><noinclude>Center</noinclude>"
+
{| style="width:{{#if: {{{width|}}}|<includeonly>{{{width}}}</includeonly>|100%}}; background:{{#if: {{{background|}}}|{{{background}}}|transparent}}" valign="top" align="{{#if: {{{align|}}}|<includeonly>{{{align}}}</includeonly>|Center"
 
| style="width:50%<!--; border:1px dotted dimgray-->" valign="top"|  
 
| style="width:50%<!--; 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 8: Line 8:
  
 
This is a simple template for creating three column list in instances where lists are extremely long, such as lists of doujins featuring a popular character.  It uses four fields (note that more may be added later), two of which are optional. Note that these are case sensative.
 
This is a simple template for creating three column list in instances where lists are extremely long, such as lists of doujins featuring a popular character.  It uses four fields (note that more may be added later), two of which are optional. Note that these are case sensative.
:'''width''': Optional.  The width of the table. Can be in pixels (written 100px), or more probably a percent (writen 80%). Wider tables are probably better with this template; otherwise, use the two column list template ([[Template:TwoColumnList]]).
+
*'''width''' - The width of the table. Can be in pixels (written 100px), or more probably a percent (writen 80%). Wider tables are probably better with this template; otherwise, use the [[Template:TwoColumnList|two column list template]]. If left blank, it will default to 100%.
:'''align''': Optional, however, it will look best if filled it. Left or right is best (usually right), but middle is also possible.
+
*'''background''' - the background color. if left blank, it will default to transparent.
:'''Coll''': the data for column 1.
+
*'''align''' - how the table will align in the page, left, right or center. If left blank, the template will default to center
:'''Col2''': the data for column 2.
+
*'''Coll''': the data for column 1.
 +
*'''Col2''': the data for column 2.
 +
<!-- These are options yet to be implemented. Some, such as the color options, may not be
 +
*'''header''' - The text used for the template's header.  if left blank, there won't be a header.
 +
*'''footer''' - The text used for the template's footer.  if left blank, there won't be a footer.
 +
*'''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.
 +
*'''cellBorderColor''' - the color of the borders of the individual cells.  if left blank, it will default to dimgray, the board default.
 +
*'''border''' - the width of the templates border. if left blank, it will default to 0 (no border)
 +
*'''borderStyle''' - how the border is drawn, for example solid, dashed or dotted. if left blank, will default to solid.
 +
*'''borderColor''' - the color of the border.  if left blank, it will default to dimgray, the board default.
 +
-->
 +
 
 
==Code==
 
==Code==
 
The code to put into the article is  
 
The code to put into the article is  
<pre>{{ThreeColumnList|width=USERVALUE|align=USERVALUE
+
<pre>{{ThreeColumnList
|Col1=USERVALUE
+
|width=
|Col2=USERVALUE}}</pre>
+
|align=
 +
|background=
 +
|Col1=
 +
|Col2=
 +
}}</pre>
 +
 
  
==Explanation==
+
==Usage==
 
Just about anything can be put into Col1 and Col2 and 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 and Col2 and 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.  
  
 
For example,  
 
For example,  
<pre>{{TwoColumnList|width=90%|align=center
+
<pre>{{TwoColumnList
 +
|width=90%
 +
|align=center
 
|Col1=*Bullet
 
|Col1=*Bullet
 
*Bullet
 
*Bullet
Line 31: Line 50:
 
will yield
 
will yield
  
{{TwoColumnList|width=90%|align=center
+
{{TwoColumnList
 +
|width=90%
 +
|align=center
 
|Col1=*Bullet
 
|Col1=*Bullet
 
*Bullet
 
*Bullet
Line 40: Line 61:
 
and  
 
and  
  
<pre>{{TwoColumnList|width=90%|align=center
+
<pre>{{TwoColumnList
 +
|width=90%
 +
|align=center
 +
|background=gray
 
|Col1=These will  
 
|Col1=These will  
 
be on the same line
 
be on the same line
Line 49: Line 73:
 
will yield
 
will yield
  
{{TwoColumnList|width=90%|align=center
+
{{TwoColumnList
 +
|width=90%
 +
|align=center
 +
|background=gray
 
|Col1=These will  
 
|Col1=These will  
 
be on the same line
 
be on the same line

Revision as of 00:21, 16 July 2007

Personal tools