Ah, I see your problem, the parser ends the macro on encountering a line break if it's not within an element, so it sees all four lines as individual lines, not as part of the same template. What you need to do is to instead write it as &{template:default} {{name=Stealth & Investigation Rolls
}} {{Stealth=[[1d20 + @{selected|stealth_bonus}]]
}} {{Investigation=[[1d20 + @{selected|investigation_bonus}]]
}} Or as just single line. The line break just before the closing braces is "empty", so it doesn't change the appearance of the output template, but because it is contained within the double braces, the parser keeps reading past it.