Difference between revisions of "Template:Cell"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Document the template and fix the center attribute)
m (Add the gray color)
Line 1: Line 1:
<includeonly>| align="center" {{Switch|switch={{{color}}}|
<includeonly>| align="center" {{Switch|switch={{{color}}}|
blue=bgcolor="#7777ff"|
blue=bgcolor="#7777ff"|
gray=bgcolor="#dddddd"|
green=bgcolor="lightgreen"|
green=bgcolor="lightgreen"|
red=bgcolor="#ff7777"|
red=bgcolor="#ff7777"|
Line 10: Line 11:
<nowiki>{{</nowiki>Cell|color=''your color''|text=''your text''<nowiki>}}</nowiki>
<nowiki>{{</nowiki>Cell|color=''your color''|text=''your text''<nowiki>}}</nowiki>


Special colors are: ''blue'', ''green'', ''red'' and ''yellow''. Any other value will be used as is.
Special colors are: ''blue'', ''gray'', ''green'', ''red'' and ''yellow''. Any other value will be used as is.
[[Category:Information templates]]</noinclude>
[[Category:Information templates]]</noinclude>

Revision as of 17:07, 16 September 2009

This template shows a formatted table cell with centered text.

Usage

{{Cell|color=your color|text=your text}}

Special colors are: blue, gray, green, red and yellow. Any other value will be used as is.