Difference between revisions of "Template:Color by age/doc"
Jump to navigation
Jump to search
imported>Jason Quinn (→Example usage: don't need subsection heading) |
imported>Jason Quinn (reversed order of tiers) |
||
| Line 6: | Line 6: | ||
<dl> | <dl> | ||
| − | |||
| − | |||
| − | |||
| − | |||
<dt>default background</dt> <dd>younger than 1 year</dd> | <dt>default background</dt> <dd>younger than 1 year</dd> | ||
| + | <dt>{{font color||lightyellow|lightyellow background}}</dt> <dd>older than 365 days (1 year) but less than 2 years</dd> | ||
| + | <dt>{{font color||yellow|yellow background}}</dt> <dd>older than 730 days (2 year) but less than 3 years</dd> | ||
| + | <dt>{{font color||orange|orange background}}</dt> <dd>older than 1095 days (3 years) but less than 4 years</dd> | ||
| + | <dt>{{font color||red|red background}}</dt> <dd>older than 1460 days (4 years)</dd> | ||
</dl> | </dl> | ||
Revision as of 10:58, 22 November 2020
| This is a documentation subpage for Template:Color by age. It contains usage information, categories and other content that is not part of the original template page. |
This template is intended to visually indicate as age associated with some text via the background color, with older text being "hotter", and very recent ages green. This can be useful, for example, to show what entries in a list haven't had editor attention for a while.
The template currently has five tiers:
- default background
- younger than 1 year
- lightyellow background
- older than 365 days (1 year) but less than 2 years
- yellow background
- older than 730 days (2 year) but less than 3 years
- orange background
- older than 1095 days (3 years) but less than 4 years
- red background
- older than 1460 days (4 years)
Example usage
{{Color by age|July 4, 2012|This is some example text.|note=This is an optional note for the tooltip.}}
which will render as
This is some example text.
because the specified date is old enough to render red. It also uses the optional note that is appended to the tooltip.