Difference between revisions of "Template:Wkb-user"

From Worms Knowledge Base

Jump to: navigation, search
m
(allow removing the email link)
Line 1: Line 1:
<includeonly>{| class="infobox plainlinks noprint" style="float: none;"
+
<onlyinclude><includeonly>{| class="infobox noprint" style="float: none;"
 
|'''This person is a Worms Knowledge Base user.'''<br/><!--
 
|'''This person is a Worms Knowledge Base user.'''<br/><!--
 
-->{{#if:{{{nouserpage|}}}||[[User:{{{1}}}|User page]]&nbsp;•}} <!--
 
-->{{#if:{{{nouserpage|}}}||[[User:{{{1}}}|User page]]&nbsp;•}} <!--
 
-->[[User talk:{{{1}}}|User talk]]&nbsp;• <!--
 
-->[[User talk:{{{1}}}|User talk]]&nbsp;• <!--
-->[[Special:Contributions/{{{1|{{PAGENAME}}}}}|User contributions]]&nbsp;• <!--
+
-->[[Special:Contributions/{{{1}}}|User contributions]]<!--
-->{{#if:{{{log|}}}|[{{fullurl:Special:Log|user={{{1}}}}} Logs]&nbsp;•}} <!--
+
-->{{#if:{{{log|}}}|&nbsp;• <span class="plainlinks">[{{fullurl:Special:Log|user={{{1}}}}} Logs]</span>}}<!--
-->{{#if:{{{email|}}}|[mailto:{{{email}}} E-mail this user]|[[Special:EmailUser/{{{1}}}|E-mail this user]]}}
+
-->{{#switch: {{{email|}}}
|}</includeonly><noinclude>This template is for persons who have both "People/" page and "User:" page.
+
|no=
 +
|=&nbsp;• [[Special:EmailUser/{{{1}}}|E-mail this user]]
 +
|#default=&nbsp;• [mailto:{{{email}}} E-mail this user]}}
 +
|}</includeonly></onlyinclude>This template is for persons who have both "People/" page and "User:" page.
  
 
The template looks like this:
 
The template looks like this:
Line 12: Line 15:
 
|'''This person is a Worms Knowledge Base user.'''<br/>[[Special:MyPage|User page]]&nbsp;• [[Special:MyTalk|User talk]]&nbsp;• [[Special:MyContributions|User contributions]]&nbsp;• [[Special:Log|Logs]]&nbsp;• E-mail this user
 
|'''This person is a Worms Knowledge Base user.'''<br/>[[Special:MyPage|User page]]&nbsp;• [[Special:MyTalk|User talk]]&nbsp;• [[Special:MyContributions|User contributions]]&nbsp;• [[Special:Log|Logs]]&nbsp;• E-mail this user
 
|}
 
|}
The [[Special:Log|Logs]] link is hidden by default.
+
The "[[Special:Log|Logs]]" link is hidden by default.
  
 
==Usage==
 
==Usage==
Line 19: Line 22:
 
===Parameters===
 
===Parameters===
 
*'''1''': The user name
 
*'''1''': The user name
*'''email''': (optional) If the user wants to reveal his/her e-mail address, it can be typed here (like [mailto:example@example.com example@example.com]).
+
*'''email''': (optional) If the user wants to reveal his/her e-mail address, it can be added here (such as [mailto:example@example.com example@example.com]). Use "no" to remove the link altogether.
*'''nouserpage''': Set "1" to remove the user page link. (Useful if the user page redirects back to the "People/" page)
+
*'''nouserpage''': (optional) Set "1" to remove the user page link. (Useful if the user page redirects back to the "People/" page)
*'''log''': Set "1" to show the "Logs" link.
+
*'''log''': (optional) Set "1" to show the "Logs" link.
  
 
==Examples==
 
==Examples==
 
<code><nowiki>{{Wkb-user|Example|email=example@example.com|log=1}}</nowiki></code>
 
<code><nowiki>{{Wkb-user|Example|email=example@example.com|log=1}}</nowiki></code>
 
{{Wkb-user|Example|email=example@example.com|log=1}}
 
{{Wkb-user|Example|email=example@example.com|log=1}}
</noinclude>
+
 
 +
<code><nowiki>{{Wkb-user|Example|email=no|nouserpage=1}}</nowiki></code>
 +
{{Wkb-user|Example|email=no|nouserpage=1}}

Revision as of 10:20, 17 April 2010

This template is for persons who have both "People/" page and "User:" page.

The template looks like this:

This person is a Worms Knowledge Base user.
User page • User talk • User contributions • Logs • E-mail this user

The "Logs" link is hidden by default.

Usage

{{Wkb-user|user name}}

Parameters

  • 1: The user name
  • email: (optional) If the user wants to reveal his/her e-mail address, it can be added here (such as example@example.com). Use "no" to remove the link altogether.
  • nouserpage: (optional) Set "1" to remove the user page link. (Useful if the user page redirects back to the "People/" page)
  • log: (optional) Set "1" to show the "Logs" link.

Examples

{{Wkb-user|Example|email=example@example.com|log=1}}

This person is a Worms Knowledge Base user.
User page • User talk • User contributions • Logs • E-mail this user

{{Wkb-user|Example|email=no|nouserpage=1}}

This person is a Worms Knowledge Base user.
User talk • User contributions
Personal tools