Difference between revisions of "Template:Cell"

Jump to navigation Jump to search
144 bytes removed ,  23:17, 22 September 2009
m
Try to fix handling of missing colors
(Document the template and fix the center attribute)
m (Try to fix handling of missing colors)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>| align="center" {{Switch|switch={{{color}}}|
<includeonly>| align="center" bgcolor="{{Color|{{{color|}}}}}"| {{{text}}}</includeonly><noinclude>
blue=bgcolor="#7777ff"|
green=bgcolor="lightgreen"|
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'', ''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

Navigation menu