Template:Cells

From Wikishire
Revision as of 23:03, 11 April 2014 by Root (Talk | contribs) (Created page with '{{#if:{{{1|}}} |{{#ifexpr: {{{1}}}>0| {{#invoke:String|rep|{{cell|{{{2}}}|style={{{style|}}}}}|{{{1}}} }} }} |<code><nowiki>{{cells|</nowiki>''n''<nowiki>|</nowiki>''COLOUR''<now…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{cells|n|COLOUR}}

[edit] [{{#invoke:Purge|main}}] Template documentation

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

The command {{cells|4|COLOUR}} is equivalent to

 
 
 
 

Usage

 

The template takes two unnamed parameters as input

  • n is the number of consecutive table cells
  • COLOUR is the background colour

Examples

Code
{{scarf|width=30em|{{cell|red}}{{cells|4|blue}}{{cell|green}}}}
Result
style="background-color:
 
 
 
"| 

Note

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

See also