Difference between revisions of "Template:Cell2"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(fix)
imported>Plastikspork
(Add style)
 
Line 1: Line 1:
{{#if:{{{1|}}}|{{cell|{{{1}}}}}{{cell|{{{1}}}}}|
+
{{#if:{{{1|}}}|{{cell|{{{1}}}|style={{{style|}}}}}{{cell|{{{1}}}|style={{{style|}}}}}|
 
<code><nowiki>{{cell2|</nowiki>''COLOR''<nowiki>}}</nowiki></code>}}<noinclude>
 
<code><nowiki>{{cell2|</nowiki>''COLOR''<nowiki>}}</nowiki></code>}}<noinclude>
{{pp-semi|small=yes}}
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:06, 2 April 2010

{{cell2|COLOR}}

Template documentation[view] [edit] [history] [purge]

The {{cell2}} template can be used to create two consecutive table cells with a specified background color.

The command {{cell2|COLOR}} is equivalent to {{cell|COLOR}} {{cell|COLOR}}


Usage

{{cell2|COLOR}}

The template takes one unnamed parameter as input, which is the background color of the table cells.

Examples

Code
{| width="50%" cellspacing=0
{{cell|red}}{{cell2|blue}}{{cell3|green}}
|}
Result
          

Note

The {{cell3}} template can be used for a sequence of three cells of the same color. For more than three cells, use {{cells}}.

See also