Difference between revisions of "Template:Contact/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m (→‎Usage)
Line 6: Line 6:
 
The template takes 2 arguments, plus an optional "plain" argument. Specifying "plain" will give a normal email link (not recommended).
 
The template takes 2 arguments, plus an optional "plain" argument. Specifying "plain" will give a normal email link (not recommended).
  
−
* <tt><nowiki>{{email|account|example.com}}</nowiki></tt> &rarr; account@example.com
+
* <tt><nowiki>{{email|account|example.com}}</nowiki></tt> &rarr; {{email|account|example.com}}
 
-- or --  
 
-- or --  
 
* <tt><nowiki>{{email|plain|defra.helpline@defra.gsi.gov.uk}}</nowiki></tt> &rarr; {{email|plain|defra.helpline@defra.gsi.gov.uk}}
 
* <tt><nowiki>{{email|plain|defra.helpline@defra.gsi.gov.uk}}</nowiki></tt> &rarr; {{email|plain|defra.helpline@defra.gsi.gov.uk}}

Revision as of 13:36, 3 April 2019

<< Template:email

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 expressionWikipedia-W.svg helps prevent spam.

The template takes 2 arguments, plus an optional "plain" argument. Specifying "plain" will give a normal email link (not recommended).

-- 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