Difference between revisions of "Template:Cell"
Jump to navigation
Jump to search
m (Fix typo) |
(Document the template and fix the center attribute) |
||
Line 1: | Line 1: | ||
<includeonly>| | <includeonly>| align="center" {{Switch|switch={{{color}}}| | ||
blue=bgcolor="#7777ff"| | |||
green=bgcolor="lightgreen"| | green=bgcolor="lightgreen"| | ||
red=bgcolor="#ff7777"| | red=bgcolor="#ff7777"| | ||
yellow=bgcolor="ffff77"| | |||
default=bgcolor="{{{color}}}"| | |||
}}|{{{text}}}</includeonly><noinclude> | }}|{{{text}}}</includeonly><noinclude> | ||
This template shows a formatted table cell with centered text. | |||
This template shows | |||
=Usage= | =Usage= | ||
<nowiki>{{Cell | <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. | |||
[[Category:Information templates]]</noinclude> | [[Category:Information templates]]</noinclude> |
Revision as of 11:30, 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, green, red and yellow. Any other value will be used as is.