Difference between revisions of "Template:Cell2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(envar)
imported>Plastikspork
(scarf)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
The {{tl|cell2}} template can be used to create two consecutive table cells with a specified background colour.
+
The {{tl|cell2}} template can be used to create two consecutive table cells with a specified background color.
  
 
The command {{cell2}} is equivalent to {{cell}}{{cell}}
 
The command {{cell2}} is equivalent to {{cell}}{{cell}}
Line 8: Line 8:
 
{{cell2}}
 
{{cell2}}
  
The template takes one unnamed parameter as input, which is the background colour of the table cells.
+
The template takes one unnamed parameter as input, which is the background color of the table cells.
  
 
=== Examples ===
 
=== Examples ===
Line 26: Line 26:
 
=== Note ===
 
=== Note ===
  
The {{tl|cell3}} template can be used for a sequence of three cells of the same colour. For more than three cells, use {{tl|cells}}.
+
The {{tl|cell3}} template can be used for a sequence of three cells of the same color. For more than three cells, use {{tl|cells}}.
  
 
=== See also ===
 
=== See also ===
Line 32: Line 32:
 
*{{tl|cell3}}
 
*{{tl|cell3}}
 
*{{tl|cells}}
 
*{{tl|cells}}
*{{tl|color box}}
+
*{{tl|colorbox}}
 
*{{tl|color strip}}
 
*{{tl|color strip}}
 +
*{{tl|scarf}}
  
 
<includeonly>
 
<includeonly>

Revision as of 03:23, 19 August 2009

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