Difference between revisions of "Template:Contact"

From OWASP
Jump to: navigation, search
(Created page with '{{#if: {{{name|}}} | {{#if: {{{email|}}} | [mailto:{{{email}}} {{{name}}}] | {{#if: {{{username|}}} | [[User:{{{username}}} {{Template:!}} {{{name}}}]] | {{{name}}} }} }} }} <noi…')
 
m (Generalizing parameters)
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#if: {{{name|}}} | {{#if: {{{email|}}} | [mailto:{{{email}}} {{{name}}}] | {{#if: {{{username|}}} | [[User:{{{username}}} {{Template:!}} {{{name}}}]] | {{{name}}} }} }} }}
+
<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. All parameters are optional. If no name is given, no text is displayed. The wiki user name is used to link directly to the Wiki User's page (e.g. User: John Doe) and the email address appears as a linked '@' sign after the display name.
<noinclude>
+
 
{{Template:Contributor | name = Jason Li | username = Jason Li }}
+
=== Usage ===
{{Template:Contributor | name = Paulo Coimbra | email = paulo.coimbra@owasp.org }}
+
<pre>
</noinclude>
+
{{Template:Contact
 +
| name = John Doe
 +
| email =john.doe@example.com
 +
| username = owasp
 +
}}
 +
</pre>
 +
 
 +
=== Example ===
 +
<pre>
 +
* {{Template:Contact | name = John Doe | email = john.doe@example.com }}
 +
</pre>
 +
* {{Template:Contact | name = John Doe | email = john.doe@example.com }}
 +
[[Category: GPC Templates]]</noinclude>

Revision as of 21:49, 6 May 2012

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. The wiki user name is used to link directly to the Wiki User's page (e.g. User: John Doe) and the email address appears as a linked '@' sign after the display name.

Usage

{{Template:Contact
| name = John Doe
| email =john.doe@example.com
| username = owasp
}}

Example

* {{Template:Contact | name = John Doe | email = john.doe@example.com }}
  • John Doe @