Manual:$wgCleanSignatures

Details
If true, removes (substitutes) templates in " ~ " signatures.