Demo

edit

"{{ts1|pin=7}}" gives "8" [1]

{{subst:ts1|pin=7|subst=subst:}} gives 7

{{subst:ts1|pin=7}} gives the wikitext {{{p{{{{{subst|}}}tc}}|8}}} which gives 8