This site is supported by donations to The OEIS Foundation.

Template:Wiki mail

From OeisWiki
Jump to: navigation, search

The {{Wiki mail}} OEIS Wiki utility template creates a link to email to a registered OEIS Wiki User without showing his actual e-mail address.

Usage

On any User page, you may use (to email to this user)

  • {{Wiki mail}}
  • {{Wiki mail||label}}
  • {{Wiki mail|label = label}}

On any page, you may use (to email to any registered OEIS Wiki User)

  • {{Wiki mail|user}}
  • {{Wiki mail|user|label}}
  • {{Wiki mail|user = user|label = label}}

Examples

Examples (on a user page)

You have to try on your user page!

Code Result
{{Wiki mail}} Wiki mail error: The template is not used on a user page, you must then provide the user argument!
{{Wiki mail||Send email}} Wiki mail error: The template is not used on a user page, you must then provide the user argument!
{{Wiki mail|label = Send email}} Wiki mail error: The template is not used on a user page, you must then provide the user argument!

Examples (on any page)

Code Result
{{Wiki mail|N. J. A. Sloane}} mailto: N. J. A. Sloane 
{{Wiki mail|N. J. A. Sloane|Send email to Neil Sloane}} Send email to Neil Sloane
{{Wiki mail|user = N. J. A. Sloane|label = Send email to Neil Sloane}} Send email to Neil Sloane

Code

<noinclude>{{Documentation}}</noinclude><includeonly>{{#if: {{{user|{{{1|}}}}}}
| <span style="vertical-align: -0.1em;">✉</span> <!--
-->[[Special:EmailUser/{{#replace:{{urlencode:{{{user|{{{1}}}}}}}}|+|_}}|<!--
-->{{{label|{{{2|<tt>mailto:</tt> ''{{{user|{{{1}}}}}}''<small> </small>}}}}}}]]
| {{#ifeq: {{ns ID|{{NAMESPACE}}}} | 2
  | <span style="vertical-align: -0.1em;">✉</span> <!--
-->[[Special:EmailUser/{{#replace:{{urlencode:{{PAGENAME}}}}|+|_}}|{{{label|{{{2|<tt>mailto:</tt> ''{{PAGENAME}}''<small> </small>}}}}}}]]
  |{{error|Wiki mail error: The template is not used on a user page, you must then provide the ''user'' argument! }}
  }} 
}}</includeonly>

See also