Template:Rh
From QED
style="background: #ececec; color: black; text-align: left; padding-left: 0.5em; font-weight: bold;" class="table-rh"
This template specifies a CSS style. The default values are suitable for use when specifying row headers in a table. It can also be used for specifying individual rows in a table or individual cells.
Syntax
{{rh
|color=COLOR (default: black)
|bg=BACKGROUND (default: #ececec)
|font=FONT-WEIGHT (default: bold)
|align=left or center or right (default: left)
}}
All parameters are optional.
A sample of the default BACKGROUND color is
For a guide to color specifications, see Help:Colors.
For details about FONT-WEIGHT, see [1].
See below for notes on usage.
Example:
| One | Two | Three |
|---|---|---|
| First | Second | Third |
| First | Second | Third |
Table Cell Templates
"Table cell templates" are designed to be used in a table to make a cell with an appropriately colored background.
For example, Template:Yes may be used as follows:
{|
|-
| {{Yes|positive}}
|}
produces:
| positive |
The text in the "Yes" cell defaults to "Yes" but in this example was specified as "positive".
Templates in this series
In all cases except for rh and nonfree, the text to be displayed may be specified as illustrated above.
CSS class Usage Result 1 Result 2 Result 3 table-rh {{rh}} | Row header Row header table-yes {{yes}} Yes table-no {{no}} No table-partial {{partial}} Partial table-any {{any}} any table-na {{n/a}} N/A table-unknown {{dunno}}, {{dunno|Alternative text}}, {{unk}} ? Alternative text Unknown table-included {{included}} Included table-dropped {{dropped}} Dropped table-beta {{beta}} Beta table-free {{free}} Free table-nonfree {{nonfree}} US$3.14 US$3.14 unstyled {{incorrect}} Incorrect unstyled {{?}}, {{?|Alternative text}} ? Alternative text












