Difference between revisions of "Template:Contact/doc"
Jump to navigation
Jump to search
m |
m |
||
| Line 2: | Line 2: | ||
=== Usage === | === Usage === | ||
| − | + | This template is designed to help prevent spam from being sent to an 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 {{wpl|regular expression}} helps prevent spam. | |
| − | + | The template takes 2 arguments, plus an optional "plain" argument. Specifying "plain" will give a normal email link (not recommended). | |
| − | * <tt><nowiki>{{email|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}}</nowiki></tt> {{email|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}} | + | * <tt><nowiki>{{email|account|example.com}}</nowiki></tt> → account@example.com |
| + | -- or -- | ||
| + | * <tt><nowiki>{{email|plain|defra.helpline@defra.gsi.gov.uk}}</nowiki></tt> → {{email|plain|defra.helpline@defra.gsi.gov.uk}} | ||
| + | * <tt><nowiki>{{email|plain|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}}</nowiki></tt> → {{email|plain|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}} | ||
| + | * <tt><nowiki>{{email|plain|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}}</nowiki></tt> → {{email|plain|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}} | ||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 13:31, 3 April 2019
Usage
This template is designed to help prevent spam from being sent to an 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.
The template takes 2 arguments, plus an optional "plain" argument. Specifying "plain" will give a normal email link (not recommended).
- {{email|account|example.com}} → account@example.com
-- or --
- {{email|plain|defra.helpline@defra.gsi.gov.uk}} → Template:email
- {{email|plain|defra.helpline@defra.gsi.gov.uk|subj=Forest Holidays and the Forestry Commission}} → Template:email
- {{email|plain|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|subj=Forest Holidays and the Forestry Commission}} → Template:email