Difference between revisions of "Template:Cell"

From ScummVM :: Wiki
Jump to navigation Jump to search
m (Specify the hex value for green)
m (Try to fix handling of missing colors)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>| align="center" {{Switch|switch={{{color}}}|
<includeonly>| align="center" bgcolor="{{Color|{{{color|}}}}}"| {{{text}}}</includeonly><noinclude>
blue=bgcolor="#7777ff"|
gray=bgcolor="#dddddd"|
green=bgcolor="#90ee90"|
red=bgcolor="#ff7777"|
yellow=bgcolor="#ffff77"|
default=bgcolor="{{{color}}}"|
}}|{{{text}}}</includeonly><noinclude>
This template shows a formatted table cell with centered text.
This template shows a formatted table cell with centered text.
=Usage=
=Usage=
<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'', ''gray'', ''green'', ''red'' and ''yellow''. Any other value will be used as is.
The ''color'' argument will be passed as is to the [[Template:Color|Color template]].
[[Category:Information templates]]</noinclude>
[[Category:Information templates]]</noinclude>

Latest revision as of 23:17, 22 September 2009

This template shows a formatted table cell with centered text.

Usage

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

The color argument will be passed as is to the Color template.