Template:Scalemarkers

From HandWiki
Revision as of 09:27, 11 April 2021 by imported>Jworkorg (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]

Prints the scale markers for {{Graphical timeline}}.

Pseudo code:

if (from + (loops*increment) + offset) < to)
  then print a bar with attibutes:

  top = height × (offset= (loop number × increment) + position of first marker to print)

And for intermediate markers:
if (from + (increment*loop) + (increment/2) + offset <= to)
   then print a bar with attributes:

    top =  height * (offset=(loop  *  increment + (increment/2) + position of first marker to print)