Difference between revisions of "Template:Cell"

From ScummVM :: Wiki
Jump to navigation Jump to search
m (Fix typo)
(Document the template and fix the center attribute)
Line 1: Line 1:
<includeonly>| textalign="center" {{Switch|switch={{{color}}}|
<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>
TODO:
This template shows a formatted table cell with centered text.
This template shows whether a given engine is supported in a port.
=Usage=
=Usage=
<nowiki>{{Cell Port Engine|FeaturesTemplate|engine name}}</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.
[[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.