Difference between revisions of "Template:Cells/doc"
Jump to navigation
Jump to search
imported>Plastikspork (→See also: add) |
imported>Frietjes |
||
Line 16: | Line 16: | ||
;Code | ;Code | ||
<pre> | <pre> | ||
− | {| width= | + | {{scarf|width=30em|{{cell|red}}{{cells|4|blue}}{{cell|green}}}} |
− | {{cell|red}}{{cells|4|blue}}{{cell|green}} | ||
− | |||
</pre> | </pre> | ||
;Result | ;Result | ||
− | {| width= | + | {{scarf|width=30em|{{cell|red}}{{cells|4|blue}}{{cell|green}}}} |
− | {{cell|red}}{{cells|4|blue}}{{cell|green}} | ||
− | |||
=== Note === | === Note === |
Revision as of 20:04, 2 October 2013
![]() | This is a documentation subpage for Template:Cells. It contains usage information, categories and other content that is not part of the original template page. |
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}}
Contents
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
Note
The {{cell2}} and {{cell3}} templates can be used for a sequence of two or three cells of the same color.
See also