Difference between revisions of "Template:Member"

From Nottinghack Wiki
Jump to navigation Jump to search
(test)
(font-size:110%;)
 
(18 intermediate revisions by 2 users not shown)
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"
+
! colspan="2" style="{{#if:{{{colorback|}}}|background-color:{{{colorback}}}|background-color:#195905}}; {{#if:{{{colortext|}}}|color:{{{colortext}}}|color:#ffffff}}; text-align: center; font-size:110%;" | '''{{SUBPAGENAME}} '''
 
|-
 
|-
| align="center"|  
+
| align="center" style="background-color:#ffffff"  colspan="2"|<!--
<!-- image parameter present -->{{#if:{{{image|<!--else -->text2}}}|<!-- else -->[[File:blank-avatar.png|100px]] }}
+
-->{{#if:{{{imagefile|}}}<!--  
 
+
then -->|[[File:{{{imagefile}}}|{{#if:{{{imagewidth|}}}|<!--then-->{{{imagewidth}}}|<!--else-->220px}}]]<!--
<!--
+
else -->|[[File:blank-avatar.png|100px]]<!--  
}}}|[[{{{image}}}|border|frameless|{{#ifexpr: {{{imagewidth|220}}}>220 |220|{{{imagewidth|220}}}}}px|center]]
+
-->}}
{{#if: {{{caption|}}}|''{{{caption}}}''}}}}|}} -->
+
  |- {{#if:{{{realname|}}}{{{nickname|}}}| | style="display: none;" <!-- Hide row (if A or B) if parameter doesn't exist -->  }}
|-
+
  ! Name
| 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) -->
+
  | {{#if:{{{realname|}}}| {{{realname|}}} {{#if:{{{nickname|}}}| AKA {{{nickname}}} }} | {{{nickname}}} }} <!-- display name or nick, if both then name AKA nick -->
|-
+
  |- {{#if:{{{datejoined|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
| align="center"| {{{realname|Real Name}}}
+
  ! Date joined
|-
+
  | {{{datejoined}}}
|}
+
  |- {{#if:{{{manufacturer|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
</div><includeonly>[[Category:Members]]</includeonly><noinclude>
+
  ! Manufacturer
 +
  | {{{manufacturer}}}
 +
  |- {{#if:{{{model|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
 +
  ! Model
 +
  | {{{model}}}
 +
|}<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 user page and it will produce an information box on your page that gives an overview. All of the arguments are optional and can be written in any order.
 +
 
 +
If no imagefile is specified the default 'robinhood' image is used.
  
 +
<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> square 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, format DD/MM/YYYY.
 +
;colorback
 +
:Customise background colour of title bar, format #RRGGBB or colour name.
 +
;colortext
 +
:Customise text colour of title bar, format #RRGGBB or colour name.
 +
;manufacturer
 +
:Some members have a specific manufacturer.
 +
;model
 +
:Some members are specific models.
  
 +
===Notes===
 +
Parameter wikiname is deprecated - 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>

Latest revision as of 19:47, 19 March 2019

Member
Blank-avatar.png
Name {{{nickname}}}
Date joined {{{datejoined}}}
Manufacturer {{{manufacturer}}}
Model {{{model}}}

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 user page and it will produce an information box on your page that gives an overview. All of the arguments are optional and can be written in any order.

If no imagefile is specified the default 'robinhood' image is used.

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

Arguments

imagefile
An image, in the format <image name>.<ext>. DO NOT include the [[]] square 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, format DD/MM/YYYY.
colorback
Customise background colour of title bar, format #RRGGBB or colour name.
colortext
Customise text colour of title bar, format #RRGGBB or colour name.
manufacturer
Some members have a specific manufacturer.
model
Some members are specific models.

Notes

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

Note Note: Automatically includes page in Category:Members