Template:Email

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
{{if |test={{{1|}}}
+
<includeonly>[mailto:{{{1}}} {{if |test={{{2|}}}
-
|then=[mailto:{{{1}}} {{if |test={{{2|}}}
+
|then={{{2}}}|else={{{1}}}}}]</includeonly><noinclude>
-
|then={{{2}}}|else={{{1}}}}}]}}<noinclude>
+
{{doc}}
-
{{Email/doc}}
+
</noinclude>
</noinclude>

Revision as of 09:01, 7 March 2015

Copy & paste:

{{email||}}

This template can be used make an email address visible at the email links.

Compare a traditional:

[mailto:[email protected]]

Which renders to:
[1]

While:

{{email|[email protected]}}

Expands to:

[email protected]

As a convenience another form of this template mimics a traditional syntax:

{{email|[email protected]|Marina email}}

Expands to:

Marina email

Personal tools
advertisement
Friends of Cruisers Wiki