Template:Contact
Jump to navigation
Jump to search
<a href="mailto:{{{1}}}?subject={{{subj}}}">{{{1}}}</a>
[edit] Documentation
Usage
This template is designed to help prevent spam from being sent to a twitter or e-mail address.
Because nearly all spam is automated, altering the format to one which does not match the e-mail address search engine's regular expression
helps prevent spam.
{{Contact
|twitter-ns - no-spam version
|twitter-pl - returns a normal twitter url
|email-ns - no-spam version
|email-pl - returns a normal email address (not recommended)
}}
Examples
- {{Contact|twitter-ns|GrayanOne}} → <a href="mailto:twitter-ns?subject={{{subj}}}">twitter-ns</a>
- {{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}} → <a href="mailto:twitter-pl?subject={{{subj}}}">twitter-pl</a>
- {{Contact|email-ns|jane|example.com}} → <a href="mailto:email-ns?subject={{{subj}}}">email-ns</a>
- {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}} → <a href="mailto:email-pl?subject={{{subj}}}">email-pl</a>
- {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}} → <a href="mailto:email-pl?subject=Forest%20Holidays%20and%20the%20Forestry%20Commission">email-pl</a>
- {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}} → <a href="mailto:email-pl?subject=Attn:%20Colin%20Day;Forest%20Holidays%20and%20the%20Forestry%20Commission">email-pl</a>