Template:Mailto: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> This template allows to write mail addresses comfortably in the LDRAW Wiki, in a more beautiful syntax that the standard MediaWiki one. == Parameters == * parame...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
* writing <code><nowiki>{{mailto|[email protected]}}</nowiki></code> yields {{mailto|[email protected]}} | * writing <code><nowiki>{{mailto|[email protected]}}</nowiki></code> yields {{mailto|[email protected]}} | ||
* writing <code><nowiki>{{mailto|[email protected]|my link text}}</nowiki></code> yields {{mailto|[email protected]|my link text}} | * writing <code><nowiki>{{mailto|[email protected]|my link text}}</nowiki></code> yields {{mailto|[email protected]|my link text}} | ||
== Why not Using the Standard MediaWiki Syntax? == | |||
The standard MediaWiki syntax for writing a mailto: link is | |||
<code><nowiki>[mailto:[email protected]]</nowiki></code>, which will not (!) display the mail address. | |||
Here is what that example looks like: | |||
[mailto:[email protected]] | |||
To avoid that effect and see the address, you have to repeat the mail address twice, i.e. | |||
<code><nowiki>[mailto:[email protected] [email protected]]</nowiki></code>. | |||
This will yield [mailto:[email protected] [email protected]]. Having to write the address 2 times | |||
of course is tedious and error-prone. To counteract that trouble, this template has been added. | |||
</noinclude><includeonly>[mailto:{{{1|}}} {{{2|{{{1|}}}}}}]</includeonly> | </noinclude><includeonly>[mailto:{{{1|}}} {{{2|{{{1|}}}}}}]</includeonly> |
Latest revision as of 10:33, 2 April 2018
This template allows to write mail addresses comfortably in the LDRAW Wiki, in a more beautiful syntax that the standard MediaWiki one.
Parameters
- parameter 1 (mandatory): e-mail address
- parameter 2 (optional): custom link text
Example
- writing
{{mailto|[email protected]}}
yields [email protected] - writing
{{mailto|[email protected]|my link text}}
yields my link text
Why not Using the Standard MediaWiki Syntax?
The standard MediaWiki syntax for writing a mailto: link is
[mailto:[email protected]]
, which will not (!) display the mail address.
Here is what that example looks like:
[1]
To avoid that effect and see the address, you have to repeat the mail address twice, i.e.
[mailto:[email protected] [email protected]]
.
This will yield [email protected]. Having to write the address 2 times
of course is tedious and error-prone. To counteract that trouble, this template has been added.