User:Jon/Member-test: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
<!-- if 'image' parameter present -->{{#if:{{{image|}}}<!--  
<!-- if 'image' parameter present -->{{#if:{{{image|}}}<!--  
then -->|[[File:{{{image}}}|{{#if:{{{imagewidth|}}}<!--then-->|{{{imagewidth}}}<!--then-->|<!--else-->220px}}]]<!--  
then -->|[[File:{{{image}}}|{{#if:{{{imagewidth|}}}<!--then-->|{{{imagewidth}}}<!--then-->|<!--else-->220px}}]]<!--  
else -->|[[File:blank-avatar.png|100px]]
else -->|[[File:blank-avatar.png|100px]]<!--
}}
-->}}
 
{{#if:{{{realname|}}}|<!-- conditional table row if A or B -->
|-
  {{!}}-
| align="center"  colspan="2"| [[User:{{{wikiusername|UnknownUser}}}|{{{nickname|Nickname}}}]] <!-- this will make wikilink to userpage (but as it should only be used on that page the name will simply be shown in bold) -->
  ! Name
|-
  {{!}} {{#if:{{{realname|}}}| {{{realname|}}} {{#if:{{{nickname|}}}| AKA {{{nickanme}}}|{{{nickname|}}} }}| {{{nickanme}}} }}<!--  
| align="center"  colspan="2"| {{{realname|Real name}}}
-->}}
|-
{{#if:{{{datejoined|}}}|<!-- conditional table row -->
{{#if:{{{datejoined|}}}|<!-- conditional table row -->
  !align="center"! Date joined | {{{datejoined}}}
   {{!}}-
   {{!}}-
}}
  ! Date joined
|}
  {{!}} {{{datejoined}}}<!--
<includeonly>[[Category:Members]]</includeonly><noinclude>
-->}}
|}<includeonly>
[[Category:Members]]</includeonly><noinclude>
{{clear}}
{{clear}}
==Documentation==
==Documentation==

Revision as of 13:55, 5 February 2019

Member-test


Documentation

This template creates a member infobox. It takes the following parameters (each of which is optional):

nickname
wikiusername
imagefile
realname


To use this template write something like this at the place where you want this userbox to appear:

{{MemberDetails|nickname=Joey|wikiusername=JoeBloggs|realname=Joe Bloggs}}
Note Note: Automatically includes page in Category:Members