Difference between revisions of "Template:Nextcolumn"

From THCCwiki
Jump to navigation Jump to search
m (hmm)
(Add some documentation)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
</td><td width=15>{{#if: {{{nobar|}}}||<td width=2 bgcolor="#AAAAAA"><td width=15>}}<td valign=top>
+
<includeonly></td>{{#switch: {{{bar|}}}
 +
|no
 +
|none={{TD15}}
 +
|grey
 +
|
 +
|gray={{TD15}}<td width=2 bgcolor="#AAAAAA">{{TD15}}
 +
|#default={{TD15}}<td width=2 bgcolor="{{{bar}}}">{{TD15}}
 +
}}<td valign=top></includeonly><noinclude>
 +
Used, with [[:Template:Multicolumn]] and [[:Template:EndMulticolumn]] to create several columns of output.
 +
 
 +
Nextcolumn takes a parameter to define the bar that separates the columns:
 +
; not specifying the bar parameter
 +
: Outputs a gray bar
 +
; bar=gray or bar=grey
 +
: Outputs a gray bar
 +
; bar=no or bar=none
 +
: Does not output a visible bar (Columns are separated by a 15 pixel empty column)
 +
; bar=blue
 +
: Ouputs a blue bar
 +
</noinclude>

Latest revision as of 17:26, 3 January 2012

Used, with Template:Multicolumn and Template:EndMulticolumn to create several columns of output.

Nextcolumn takes a parameter to define the bar that separates the columns:

not specifying the bar parameter
Outputs a gray bar
bar=gray or bar=grey
Outputs a gray bar
bar=no or bar=none
Does not output a visible bar (Columns are separated by a 15 pixel empty column)
bar=blue
Ouputs a blue bar