UserGuide: Writing templates