As you say, there is one parish called Traquair but various 'townships' or settlements. As long term Scottish researchers, we are all aware of this. However, as Don says, the parish register entry is for a Mortcloth and does not mentions which township Mary was from.
I attach a snip from the parish records.
Gadget