[TASK] Clean up and unify template variable assignments in Preview etc.