Template:Active/doc
It contains usage information, categories and other content that is not part of the original template page.
|
The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background.
For example, {{Active}}
makes a cell with a green check mark and background. The text in the cell is taken from the first parameter; {{Active|Yes}}
would output "Yes" otherwise it defaults to "Active". Most templates allow editors to override the default text in this way.
Important: If you want to use other attributes for the table cells, e.g. colspan
, rowspan
, or style
, they need to be put before the template call, and there must be no vertical bar (aka pipe) |
in-between them:
Yes | No | Unsure |
---|---|---|
- |
... ! {{Active|Yes}} || {{Defunct|No}} || rowspan=2 {{Unknown|Unsure}} |- |colspan=2 style="border:solid 3px Maroon" {{Unknown|-}} ...
Templates
Default | Customized | ||
---|---|---|---|
Syntax | Preview | Syntax | Preview |
{{Active}} |
Active | {{Active|Yes}} |
Yes |
{{Defunct}} |
Defunct | {{Defunct|No}} |
No |
{{Unknown}} |
? | {{Unknown|Dunno}} |
Dunno |
TemplateData
One of several templates for styling individual table cells with standard contents and colors.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Alt Text | 1 | To display alternate text.
| String | optional |