Template:Email
From CruisersWiki
(Difference between revisions)
(Created page with "{{if |test={{{1|}}} |then=[mailto:{{{email}}} {{if |test={{{2|}}} |then={{{2}}}|else={{{email}}}}}]}}<noinclude> Email with default comment Copy & paste: <pre><nowiki>{{email||...") |
(strip) |
||
(7 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | {{ | + | <includeonly><span class="nourlexpansion">[mailto:{{strip|{{{1}}}}} {{if |test={{{2|}}} |
- | + | |then={{{2}}}|else={{{1}}}}}]</span></includeonly><noinclude> | |
- | |then={{{2}}}|else={{{ | + | {{doc}} |
- | + | [[Category:Templates|Email]] | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</noinclude> | </noinclude> |
Latest revision as of 15:41, 28 August 2017
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: