Front End Help

Stats Pattern

Stats are a list of paired properties and values that we use at the end of meta or blurbs and similar descriptive blocks. They are usually countable values (e.g. Hits: 100) or some kind of binary status (e.g. Status: Complete).

The stats style is declared in 10-types-groups.css.

Rules

Stats are always a dl.stats. You can never have any other kind of stats.

Stats always come at the end of meta and work blurbs. Stats may also appear in other contexts.

dl.stats may appear within a dd.stats, but it can’t be depended on.

The colon should be included in the translation string, not inserted with CSS.

Property and value pairs may be given matching class names. Never give a class to the property and not the value (or vice verse).

Quick reference

[...]
always included
{...}
sometimes included
[dl stats]
    [dt][/dt]
    [dd][/dd]
[/dl]

XHTML diagram

This diagram is taken from work meta.

  1. <dl class="stats">
    1. <dt class="published">
    2. <dd class="published">
    3. <dt class="words">
    4. <dd class="words">
    5. <dt class="chapters">
    6. <dd class="chapters">
    7. <dt class="comments">
    8. <dd class="comments">
    9. <dt class="kudos">
    10. <dd class="kudos">
    11. <dt class="hits">
    12. <dd class="hits">