This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org

Difference between revisions of "Template:Contact"

From OWASP
Jump to: navigation, search
m (Protected "Template:Contact": High traffic page: This page is a template used in over 2000 places on the OWASP wiki. Locked to prevent accidental edits by inexperienced users. (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<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.
+
<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.
  
 
=== Usage ===
 
=== Usage ===
 
<pre>
 
<pre>
 
{{Template:Contact
 
{{Template:Contact
| name =
+
| name = John Doe
| email =
+
| username =
+
| username = owasp
 
}}
 
}}
 
</pre>
 
</pre>
Line 12: Line 12:
 
=== Example ===
 
=== Example ===
 
<pre>
 
<pre>
* {{Template:Contact | name = Jason | username = Jason Li }}
 
 
* {{Template:Contact | name = John Doe | email = [email protected] }}
 
* {{Template:Contact | name = John Doe | email = [email protected] }}
 
</pre>
 
</pre>
* {{Template:Contact | name = Jason | username = Jason Li }} and {{Template:Contact | name = John Doe | email = [email protected] }}
+
* {{Template:Contact | name = John Doe | email = [email protected] }}
 
[[Category: GPC Templates]]</noinclude>
 
[[Category: GPC Templates]]</noinclude>

Latest revision as of 16:56, 11 September 2013

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 [email protected]
| username = owasp
}}

Example

* {{Template:Contact | name = John Doe | email = [email protected] }}
  • John Doe @