I'd wager the issue is that query advantage is set up as {{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[@{d20}|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[@{d20}} between {{r1=[[(die roll)]]}} and (latter half of die roll)]]}}, and reliable talent sits as {1d20,0d20+10}k1 where 1d20 would, and the } contained in the advantage part of the query ends the query early, breaking the template.