Difference between revisions of "Template:Contact/doc"
Jump to navigation
Jump to search
m |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
=== Usage === | === Usage === | ||
| − | This template is designed to help prevent spam from being sent to | + | This template is designed to help prevent spam from being sent to a twitter or e-mail address.<br/> |
| − | + | Because nearly all spam is automated, altering the format to one which does not match the e-mail address search engine's {{wpl|regular expression}} helps prevent spam. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | * <tt><nowiki>{{email| | + | <pre> |
| − | + | {{Contact | |
| − | * <tt><nowiki>{{email | + | |twitter-ns - no-spam version |
| − | * <tt><nowiki>{{email | + | |twitter-pl - returns a normal twitter url |
| − | * <tt><nowiki>{{email | + | |email-ns - no-spam version |
| − | <includeonly>[[Category: | + | |email-pl - returns a normal email address (not recommended) |
| + | }} | ||
| + | </pre> | ||
| + | ==== Examples ==== | ||
| + | * <tt><nowiki>{{Contact|twitter-ns|GrayanOne}}</nowiki></tt> → {{Contact|twitter-ns|GrayanOne}} | ||
| + | * <tt><nowiki>{{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}}</nowiki></tt> → {{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}} | ||
| + | * <tt><nowiki>{{Contact|email-ns|jane|example.com}}</nowiki></tt> → {{Contact|email-ns|jane|example.com}} | ||
| + | * <tt><nowiki>{{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}}</nowiki></tt> → {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}} | ||
| + | * <tt><nowiki>{{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}}</nowiki></tt> → {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}} | ||
| + | * <tt><nowiki>{{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}}</nowiki></tt> → {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}} | ||
| + | <includeonly>[[Category:WikiCorporates templates]]</includeonly> | ||
Latest revision as of 13:30, 30 May 2020
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}} →
GrayanOne
- {{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}} → @GrayanOne
- {{Contact|email-ns|jane|example.com}} → jane
example.com
- {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}} → defra.helpline@defra.gsi.gov.uk
- {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}} → defra.helpline@defra.gsi.gov.uk
- {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}} → defra.helpline@defra.gsi.gov.uk