Difference between revisions of "Template:Contact"

From OWASP
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#if: {{{name|}}} | {{#if: {{{email|}}} | [mailto:{{{email}}} {{{name}}}] | {{#if: {{{username|}}} | [[User:{{{username}}} {{Template:!}} {{{name}}}]] | {{{name}}} }} }} }} @</includeonly>
+
<includeonly>{{#if: {{{name|}}} | {{#if: {{{username|}}} | [[User:{{{username}}} {{Template:!}} {{{name}}}]] | {{{name}}} }} }} }} {{#if: {{{email|}}} | [mailto:{{{email}}} @]</includeonly>
  
 
<noinclude>This template displays a contact optionally linking the contact's email address or wiki user name.
 
<noinclude>This template displays a contact optionally linking the contact's email address or wiki user name.
  
 
All parameters are optional. If no name is given, no text is displayed. If both an email and a wiki user name is displayed, only the email will be linked.
 
All parameters are optional. If no name is given, no text is displayed. If both an email and a wiki user name is displayed, only the email will be linked.
 +
 +
<!--
 +
{{#if: {{{name|}}} | {{#if: {{{email|}}} | [mailto:{{{email}}} {{{name}}}] | {{#if: {{{username|}}} | [[User:{{{username}}} {{Template:!}} {{{name}}}]] | {{{name}}} }} }} }}
 +
-->
  
 
=== Usage ===
 
=== Usage ===

Revision as of 09:38, 7 October 2009


This template displays a contact optionally linking the contact's email address or wiki user name.

All parameters are optional. If no name is given, no text is displayed. If both an email and a wiki user name is displayed, only the email will be linked.


Usage

{{Template:Contact
| name =
| email =
| username =
}}

Example

{{Template:Contact | name = Jason | username = Jason Li }}

Jason