Open main menu

Difference between revisions of "Template:Cell"

176 bytes removed ,  13:10, 21 September 2009
m
Use the new Color template
m (Specify the hex value for green)
m (Use the new Color template)
Line 1: Line 1:
<includeonly>| align="center" {{Switch|switch={{{color}}}|
<includeonly>| align="center" bgcolor="{{Color|{{{color}}}}}"
blue=bgcolor="#7777ff"|
| {{{text}}}</includeonly><noinclude>
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>
960

edits