Template for patterns