Difference between revisions of "Template:Contact/doc"

From WikiCorporates
Jump to navigation Jump to search
m (→‎Usage)
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.
+
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.
  
−
* Email:  {{Contact|email-ns|grayan|wikipolitiks.org}} &rarr;
+
<pre>
−
* Email:  {{Contact|email-pl|grayan@wikipolitiks.org}} &rarr;  
+
{{Contact
−
* Twitter: {{Contact|twitter-ns|GrayanOne|https://twitter.com/TheFabledAesop}} &rarr;
+
|twitter-ns  - no-spam version
−
* Twitter: {{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}} &rarr;  
+
|twitter-pl  - returns a normal twitter url
−
 
+
|email-ns   - no-spam version
−
{{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|attn=Thérèse Coffey|subj=Forest Holidays and the Forestry Commission}},
+
|email-pl    - returns a normal email address (not recommended)
−
 
+
}}
−
 
+
</pre>
−
The template takes 2 arguments, plus an optional "plain" argument which gives a normal email link (not recommended).
+
==== Examples ====
−
 
+
* <tt><nowiki>{{Contact|twitter-ns|GrayanOne}}</nowiki></tt> &rarr; {{Contact|twitter-ns|GrayanOne}}
−
* <tt><nowiki>{{Contact|email-ns|account|example.com}}</nowiki></tt> &rarr; {{Contact|email-ns|me|example.com}}
+
* <tt><nowiki>{{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}}</nowiki></tt> &rarr; {{Contact|twitter-pl|GrayanOne|https://twitter.com/TheFabledAesop}}
−
-- or --
+
* <tt><nowiki>{{Contact|email-ns|jane|example.com}}</nowiki></tt> &rarr; {{Contact|email-ns|jane|example.com}}
 
* <tt><nowiki>{{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}}</nowiki></tt> &rarr; {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}}
 
* <tt><nowiki>{{Contact|email-pl|defra.helpline@defra.gsi.gov.uk}}</nowiki></tt> &rarr; {{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> &rarr; {{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|subj=Forest Holidays and the Forestry Commission}}</nowiki></tt> &rarr; {{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> &rarr; {{Contact|email-pl|defra.helpline@defra.gsi.gov.uk|attn=Colin Day|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> &rarr; {{Contact|email-pl|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 21:50, 21 April 2019

<< Template:Contact

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 expressionWikipedia-W.svg 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}} → janeexample.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