Add warning messages to templates