Difference between revisions of "Template:Contact"
Jump to navigation
Jump to search
m |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
|email-pl=[mailto:{{{2}}}{{#if:{{{subj|}}}|?subject={{#if:{{{attn|}}}|Attn.%20{{#replace:{{{attn}}}| |%20}}:%20}}{{#replace:{{{subj}}}| |%20}}}} {{{2}}}] | |email-pl=[mailto:{{{2}}}{{#if:{{{subj|}}}|?subject={{#if:{{{attn|}}}|Attn.%20{{#replace:{{{attn}}}| |%20}}:%20}}{{#replace:{{{subj}}}| |%20}}}} {{{2}}}] | ||
|twitter-ns=<span class="nowrap"><tt>{{img|At-symbol.svg|14|14|mr=2|float=none}}{{{2|}}}</tt></span> | |twitter-ns=<span class="nowrap"><tt>{{img|At-symbol.svg|14|14|mr=2|float=none}}{{{2|}}}</tt></span> | ||
| − | |twitter-pl=[{{{3}}} {{{2}}}] | + | |twitter-pl=[{{{3}}} @{{{2}}}] |
}}<noinclude>{{doc2}}</noinclude> | }}<noinclude>{{doc2}}</noinclude> | ||
Latest revision as of 21:44, 21 April 2019
[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}} →
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