Template:Email
From CruisersWiki
(Difference between revisions)
Line 2: | Line 2: | ||
|then=[mailto:{{{1}}} {{if |test={{{2|}}} | |then=[mailto:{{{1}}} {{if |test={{{2|}}} | ||
|then={{{2}}}|else={{{1}}}}}]}}<noinclude> | |then={{{2}}}|else={{{1}}}}}]}}<noinclude> | ||
- | |||
- | |||
- | |||
Copy & paste: | Copy & paste: | ||
<pre><nowiki>{{email||}}</nowiki></pre> | <pre><nowiki>{{email||}}</nowiki></pre> | ||
- | + | This template can be used make an email address visible at the email links. | |
+ | |||
+ | Compare a traditional: | ||
+ | <pre><nowiki>[mailto:[email protected]]</nowiki></pre> | ||
+ | |||
+ | Which renders to: <br /> | ||
+ | [mailto:[email protected]] | ||
+ | |||
+ | While: | ||
<pre><nowiki>{{email|[email protected]}}</nowiki></pre> | <pre><nowiki>{{email|[email protected]}}</nowiki></pre> | ||
Line 15: | Line 20: | ||
{{email|[email protected]}} | {{email|[email protected]}} | ||
- | + | As a convenience another form of this template mimics a traditional syntax: | |
<pre><nowiki>{{email|[email protected]|Marina email}}</nowiki></pre> | <pre><nowiki>{{email|[email protected]|Marina email}}</nowiki></pre> | ||
Line 21: | Line 26: | ||
{{email|[email protected]|Marina email}} | {{email|[email protected]|Marina email}} | ||
+ | |||
</noinclude> | </noinclude> |
Revision as of 19:20, 27 February 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:
As a convenience another form of this template mimics a traditional syntax:
{{email|[email protected]|Marina email}}
Expands to: