Difference between revisions of "Template:SafeMailTo"

From CityLab Testbed
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span name="SafeMailToAnchor">{{{1}}} AT {{{2}}}</span>
+
<noinclude>
 +
Add an e-mail address to a Wiki page in such a way that it can't (easily) be crawled by bots.
 +
== Usage ==
 +
 
 +
<nowiki>{{SafeMailTo|<user>|<domain>}}</nowiki>
 +
Example:
 +
<nowiki>{{SafeMailTo|user|example.com}}</nowiki>
 +
is shown as
 +
[mailto:user@example.com user.example.com]
 +
== Template ==
 +
Ignore (and do not edit) anything under this line. It is the actual template
 +
 
 +
</noinclude><htmltag tagname="a" cru="{{{1}}}" crd="{{{2}}}"></htmltag>

Latest revision as of 11:14, 1 February 2018

Add an e-mail address to a Wiki page in such a way that it can't (easily) be crawled by bots.

Usage

{{SafeMailTo|<user>|<domain>}}

Example:

{{SafeMailTo|user|example.com}}

is shown as user.example.com

Template

Ignore (and do not edit) anything under this line. It is the actual template