Skip to content

Groups and Sections

Events can be grouped. To indicate a group, write group or section at the beginning of a line. End a group or section with the keyword endSection or endGroup. All events up to the ending keyword or the end of the page (whichever comes first) are in the group.

For example,

group The 90s // The title for this group is "The 90s"

1991: Desert Storm
1994: Friends premiered
05/14/1998: Series finale of Seinfeld

// Nested groups are allowed
group The 2000s

03/2005: Premiere of The Office (US)

// Explicitly end the inner group
endGroup

2020: Pandemic

endGroup

// This event is not part of a group
2022: Other things happen
...

If you want an event group to start out collapsed, indent the group line definition.

2001: John is born

// The space here before `group`
// means the group will appear collapsed at first
  group Less important events #StillCoolThough

2003: Someone else is born
...

endGroup

Sections behave similarly though extend to the width of the entire timeline and are activated by the section and endSection keywords:

The only difference between sections and groups are how they are styled by the visualization.

Read more about how groups are handled by the parser.