Returns a number if namespace of variable is talkspace, or contains second parameter.
{{ts/|Undictionary talk:Uncyclopedia}}
13
{{ts/|Undictionary:Uncyclopedia|dic}}
2
{{ts/|Template talk:TP|z}}