Merlive

Timelines

A period is a box with its events under it and a section a group round its periods, on the grid a timeline is. Held to the same measure.

Declared with timeline. Of 29 features Mermaid documents for a timeline, 29 drawn as written. See all 29 drawn both ways, or draw one yourself.

Mermaid
Timeline, as Mermaid draws it
Merlive
Timeline, as Merlive draws it

What is read

timeline is read into the same boxes and links as a flowchart, and placed on the grid its author wrote, as a block diagram's grid is: a timeline says an order and nothing else, so where each box is drawn is what it says. Left to right, the periods are side by side in the order written and each period's events are under it, the first events of every period in one row. Top to bottom (timeline TD), the periods are one under another and each period's events are beside it. An arrow runs from each period to the next, as time does; a dotted line runs from a period down its events, as Mermaid's own does.

WrittenRead as
Monday : RaisedA period, and an event in it: a box for each, the event under its period. A period has a heavier outline and its kind's mark; an event is a plain box
Tuesday : Approved : SentSeveral events of one period, one under another
: Sent on the line after a periodOne more event of the period above. A line may carry several
WednesdayA period in which nothing is said to have happened
Tuesday: ApprovedThe same as Tuesday : Approved: a colon needs no space before it
Raised at 09:30, Approved:by the managerA colon with no space after it is part of the words
Week 1 #colon; buyingMermaid's code for a colon that ends nothing: read as :
Raised <br>by the buyerThe lines its author broke the words into. Longer words are wrapped in their box
title The order's week, title: in front matterWhat the picture is called: drawn above a still picture and as the heading of a page. The timeline's own wins
section BuyingA group round every period after it, up to the next section, and their events. Left to right the sections are side by side; top to bottom, one under another. A name too long for its periods goes onto as many as three lines, and only then makes them wider
timeline LR, timeline TDWhich way it runs. Left to right when nothing is said
%% note period2: words, %% note event2_1: wordsA note for the second period, or for its first event: periods are numbered period1, period2… in the order written, and a period's events event2_1, event2_2…
%% kind step: Milestone, %% kind period: DayWhat an event, or a period, is called in the legend and when picked. Unsaid, they are "Event" and "Period"
%% words on a line of its own, accTitle:, accDescr:, accDescr { … }As in a flowchart
disableMulticolor, theme, themeVariables (cScale0…) in front matterRead past: Mermaid's colours for periods are not kept. The colours are the design's

Read as Mermaid 11 reads it, and named in a note, line:

  • words after timeline on its line that are not LR or TD (timeline BT) are a first period, as Mermaid draws them: a timeline runs one of two ways;
  • %% words after a period or an event are drawn as more words, as Mermaid draws them: a comment goes on a line of its own.

Not read, each named in a note, line when met, and the rest still read:

  • an event before any period (: Raised first): write the period first;
  • an event with no words (Monday : Raised :): take out the colon with nothing after it;
  • a section with no periods under it: there is nothing to draw it round.

Where Merlive draws more than Mermaid 11 does: a period written before the first section is drawn, outside any section (Mermaid leaves it out); two sections of one name are two sections, each with the periods written under it (Mermaid gives both every period of that name's sections).

A timeline written left to right that would be wider than a screen (1,100 px) runs on in bands, as a line of words runs on: the first periods with their events under them, then the next band under those, starting at the same edge, with time's arrow running round from the end of one band into the top of the next. Nine periods are five and four, not eight and one; with sections a band is cut only between two, so a frame stays round all its periods. The command says how many bands, and how wide one row would have been. %% wrap: no keeps it in one row. A timeline drawn top to bottom is not wrapped.

Feature by feature

Every feature Mermaid’s own pages set out for a timeline, each with a sample of it in the corpus. A sample is drawn when every box, link and word it has is read and every rule passes. Drawn, less something is the same with one thing known to be missing, named beside it.

FeatureResultWhat is missing
Periods, each with one event: a period is a box, its event a box under itDrawn
A title, drawn above the pictureDrawn
Several events of one period on its lineDrawn
Events on the lines after their period, each line a colon and what happenedDrawn
Periods in which nothing is said to have happenedDrawn
No space before a colonDrawn
A colon with no space after it is part of the words (09:30)Drawn
The code for a colon in a period (#colon;)Drawn
Periods that are words, not datesDrawn
A line break in a period and in an event (<br>)Drawn
Events too long for one line, wrapped in their boxDrawn
Sections: each a group round the periods after itDrawn
Sections of one period and of several, with events of different numbersDrawn
A section with a long nameDrawn
Left to right, said (timeline LR)Drawn
Top to bottom (timeline TD): periods one under another, events beside eachDrawn
Top to bottom with sections, one under anotherDrawn
A title in front matterDrawn
One colour for every period (disableMulticolor), read past: the colours are the design'sDrawn
A theme and its colours in front matter, read past: the colours are the design'sDrawn
Comments on lines of their ownDrawn
What the picture is called and shows, for one who cannot see itDrawn
A description over several lines (accDescr { })Drawn
Merlive's own lines: a note for a period and for an event, and what a kind meansDrawn
Two periods of one name: each is its ownDrawn
Nine periods: a timeline as long as it was writtenDrawn
Six events in one periodDrawn
A single periodDrawn
A whole timeline: a title, three sections, periods with none, one and two events, a line breakDrawn

Written from skills/merlive/reference.md in the repository, so the two cannot disagree.

Before: Kanban boardsNext: Packets