Cookies help us deliver our services. By using our services, you agree to our use of cookies.OK
(test)
(revamp infobox)
Line 1: Line 1:
<div class="noprint memberdetails">
+
{| class="wikitable" style="float:right; width:250px; margin-left:10px; margin-bottom:10px;"
{| border="0" style="background-color:#f2f2f2"
 
 
|-
 
|-
| align="center"|
+
! colspan="2" style="background-color:#195905; color:#ffffff; text-align: center;" | {{SUBPAGENAME}}
<!-- image parameter present -->{{#if:{{{image|<!--else -->text2}}}|<!-- else -->[[File:blank-avatar.png|100px]] }}
 
 
 
<!--
 
}}}|[[{{{image}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]]
 
{{#if: {{{caption|}}}|''{{{caption}}}''}}}}|}} -->
 
|-
 
| align="center"| [[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) -->
 
|-
 
| align="center"| {{{realname|Real Name}}}
 
 
|-
 
|-
|}
+
| align="center" style="background-color:#ffffff"  colspan="2"|
</div><includeonly>[[Category:Members]]</includeonly><noinclude>
+
<!-- if 'imagefile' parameter present -->{{#if:{{{imagefile|}}}<!--
 +
then -->|[[File:{{{imagefile}}}|{{#if:{{{imagewidth|}}}<!--then-->|{{{imagewidth}}}<!--then-->|<!--else-->220px}}]]<!--
 +
else -->|[[File:blank-avatar.png|100px]]<!--
 +
-->}}
 +
{{#if:{{{realname|}}}{{{nickname|}}}|<!-- conditional table row if A or B -->
 +
  {{!}}-
 +
  ! Name
 +
  {{!}} {{#if:{{{realname|}}}| {{{realname|}}} {{#if:{{{nickname|}}}| AKA {{{nickname}}} }}| {{{nickname}}} }}<!--
 +
-->}}
 +
{{#if:{{{datejoined|}}}|<!-- conditional table row -->
 +
  {{!}}-
 +
  ! Date joined
 +
  {{!}} {{{datejoined}}}<!--
 +
-->}}
 +
|}<includeonly>
 +
[[Category:Members]]</includeonly><noinclude>
 
{{clear}}
 
{{clear}}
 
==Documentation==
 
==Documentation==
This template creates a member infobox.  It takes the following parameters (each of which is optional):
+
This template creates a member infobox.  All parameters are optional. The title of the infobox is set from the name of the userpage it is placed on.
; nickname
+
 
; wikiusername
+
===Usage===
; imagefile
+
 
; realname
+
Inserting the following text at the top of your project page will produce an information box on your page that gives an overview of the project to the reader. All of the arguments are optional and can be written in any order.
 +
 
 +
Images look great with this template, include one if you can!
  
 +
<pre>{{Member
 +
|imagefile=
 +
|imagewidth=
 +
|nickname=
 +
|realname=
 +
|datejoined=
 +
}}
 +
</pre>
  
To use this template write something like this at the place where you want this userbox to appear:
+
=== Arguments ===
<nowiki>{{MemberDetails|nickname=Joey|wikiusername=JoeBloggs|realname=Joe Bloggs}}</nowiki>
+
;imagefile
 +
:An image, in the format <image name>.<ext>. DO NOT include the <nowiki>[[]]</nowiki> brackets otherwise the image will display full size.
 +
;imagewidth
 +
:Sets the width of the imagefile, specify the unit (for example 200px).
 +
;nickname
 +
:Specify nickname.
 +
;realname
 +
:Specify real name
 +
;datejoined
 +
:The date of becoming a Hackspace member.
  
 +
===Notes===
 +
Parameter wikiname is depreciated - as it can be obtained from page infobox is placed on.
 
{{note|Automatically includes page in [[:Category:Members]]}}
 
{{note|Automatically includes page in [[:Category:Members]]}}
  
 
[[Category:Templates infoboxes]]
 
[[Category:Templates infoboxes]]
 
</noinclude>
 
</noinclude>

Revision as of 14:21, 5 February 2019

Member

Blank-avatar.png


Documentation

This template creates a member infobox. All parameters are optional. The title of the infobox is set from the name of the userpage it is placed on.

Usage

Inserting the following text at the top of your project page will produce an information box on your page that gives an overview of the project to the reader. All of the arguments are optional and can be written in any order.

Images look great with this template, include one if you can!

{{Member
|imagefile=
|imagewidth=
|nickname=
|realname=
|datejoined=
}}

Arguments

imagefile
An image, in the format <image name>.<ext>. DO NOT include the [[]] brackets otherwise the image will display full size.
imagewidth
Sets the width of the imagefile, specify the unit (for example 200px).
nickname
Specify nickname.
realname
Specify real name
datejoined
The date of becoming a Hackspace member.

Notes

Parameter wikiname is depreciated - as it can be obtained from page infobox is placed on.

Note Note: Automatically includes page in Category:Members