Template:Colored cell

From Kerbal Space Program Wiki
Revision as of 10:31, 11 October 2014 by XZise (talk | contribs) (Created page with "<includeonly>{{#switch: {{lc:{{{1|n}}}}} |yes|y|t|true = data-sort-value="1" style="background-color:lightgreen;" {{!}} <span style="color:darkgreen;">{{Yes}}</span> |no|n|f|f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Adds a colored cell with a sorting value.

If the content is "yes"/"y"/"true"/"t" the cell is colored green and a style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes is added. For "no"/"n"/"false"/"f" it's colored red and a style="background: #f99; vertical-align: middle; text-align: center;" class="table-no" | No is added. For any other value it just shows the content. The comparison is case insensitive and it adds a sort value (1 for Yes, 2 for No and 3 for any other).

# Optional Description Default
1 No Content of the cell