Difference between revisions of "Template:Cells/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 34: Line 34:
 
*{{tl|scarf}}
 
*{{tl|scarf}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Color templates]]
 
[[Category:Color templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 01:30, 24 April 2020

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

The command {{cells|4|COLOR}} is equivalent to {{cell|COLOR}} {{cell|COLOR}} {{cell|COLOR}} {{cell|COLOR}}


Usage

{{cells|n|COLOR}}

The template takes two unnamed parameters as input

  • n is the number of consecutive table cells
  • COLOR is the background color

Examples

Code
{{scarf|width=30em|{{cell|red}}{{cells|4|blue}}{{cell|green}}}}
Result

Template:Scarf

Note

The {{cell2}} and {{cell3}} templates can be used for a sequence of two or three cells of the same color.

See also