See something you'd like to change or add, but you've never edited an open encyclopædia before? This overview was written to help absolute beginners get started.

Template:Timeline percent

From A Storehouse of Knowledge
Jump to: navigation, search

Template: Timeline percent
Use on/in Within {{timeline section}} and {{timeline marker}} templates
Use for Convert a date (year) to a percentage of history
Category template applies to page (none)
Template Parameters
(See Template style manual).
Name Purpose Required? SMW property Comment
1 year yes Use negative for B.C.
2 first year of timeline no Defaults to 4004 B.C.
3 last year of timeline no Defaults to this year (2019)

This template does not take into account that 1 A.D. followed 1 B.C. (with no year zero), but for the purposes of a visual timeline on this scale, it makes little difference.


This template does not check that the year is within the correct range. Parameter 1 must be greater than or equal to Parameter 2 (or -4004 if not supplied), and less than or equal to Parameter 3 (or 2019 if not supplied).

Use of parameter combinations
  • Parameter 1 only
—For years between creation and now
  • Parameters 1 and 3
—For shorter timelines starting at creation
  • Parameters 1, 2, and 3
—For timelines not starting at creation and finishing this year
  • Parameters 1 and 2
—For timelines not starting at creation but finishing this year

This template can also be referred to as {{tl%}}


{{timeline percent|-1000}} gives 49.88 (1000 B.C. is approximately half way between 4004 B.C. and 2019.)

{{tl%|1000|500|2000}} gives 33.33

Personal tools

visitor navigation
contributor navigation