A reusable function for history timelines.