Template:Member: Difference between revisions
Jump to navigation
Jump to search
→Usage: fixos |
m give up because we dont have that extension :D Tag: Manual revert |
||
(25 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right; width:250px; margin-left:10px; margin-bottom:10px;" | {| class="wikitable" style="float:right; width:250px; margin-left:10px; margin-bottom:10px;" | ||
! 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" style="background-color:#ffffff" colspan="2"|<!-- | |||
-->{{#if:{{{imagefile|}}}<!-- | |||
| align="center" style="background-color:#ffffff" colspan="2"| | then -->|[[File:{{{imagefile}}}|{{#if:{{{imagewidth|}}}|<!--then-->{{{imagewidth}}}|<!--else-->220px}}]]<!-- | ||
<!-- | |||
then -->|[[File:{{{imagefile}}}|{{#if:{{{imagewidth|}}}<!--then--> | |||
else -->|[[File:blank-avatar.png|100px]]<!-- | else -->|[[File:blank-avatar.png|100px]]<!-- | ||
-->}} | -->}} | ||
{{#if:{{{realname|}}}{{{nickname|}}}|<!-- | |- {{#if:{{{realname|}}}{{{nickname|}}}| | style="display: none;" <!-- Hide row (if A or B) if parameter doesn't exist --> }} | ||
! Name | ! Name | ||
| {{#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 --> }} | ||
{{#if:{{{datejoined|}}}|<!-- | |||
! Date joined | ! Date joined | ||
{{!}} {{{ | | {{{datejoined}}} | ||
-->}} | |- {{#if:{{{manufacturer|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | ||
|}<includeonly> | ! Manufacturer | ||
[[Category:Members]]</includeonly><noinclude> | | {{{manufacturer}}} | ||
|- {{#if:{{{model|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | |||
! Model | |||
| {{{model}}} | |||
|- {{#if:{{{website|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | |||
! Website | |||
| [https://{{{website}}} {{{website}}}] | |||
|- {{#if:{{{mastosite|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | |||
! Mastodon | |||
| [https://{{{mastosite}}}/@{{{mastouser}}} @{{{mastouser}}}@{{{mastosite}}}] | |||
|- {{#if:{{{discord|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | |||
! Discord | |||
| {{{discord}}} | |||
|- {{#if:{{{callsign|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }} | |||
! Callsign | |||
| {{{callsign}}} | |||
|}<includeonly>[[Category:Members]]</includeonly><noinclude> | |||
{{clear}} | {{clear}} | ||
==Documentation== | ==Documentation== | ||
Line 28: | Line 40: | ||
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. | 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 | If no imagefile is specified the default 'robinhood' image is used. | ||
<pre>{{Member | <pre>{{Member | ||
Line 36: | Line 48: | ||
|realname= | |realname= | ||
|datejoined= | |datejoined= | ||
|website= | |||
|mastosite= | |||
|mastouser= | |||
|discord= | |||
|callsign= | |||
}} | }} | ||
</pre> | </pre> | ||
Line 41: | Line 58: | ||
=== Arguments === | === Arguments === | ||
;imagefile | ;imagefile | ||
:An image, in the format <image name>.<ext>. DO NOT include the <nowiki>[[]]</nowiki> brackets otherwise the image will display full size. | :An image, in the format <image name>.<ext>. DO NOT include the <nowiki>[[]]</nowiki> square brackets otherwise the image will display full size. | ||
;imagewidth | ;imagewidth | ||
:Sets the width of the imagefile, specify the unit (for example 200px). | :Sets the width of the imagefile, specify the unit (for example 200px). | ||
Line 49: | Line 66: | ||
:Specify real name | :Specify real name | ||
;datejoined | ;datejoined | ||
:The date of becoming a Hackspace member. | :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. | |||
;website | |||
:Link to your website (just the domain) | |||
;mastouser | |||
:Your mastodon username (without the instance name), e.g. "nottinghack" | |||
;mastosite | |||
:Your mastodon site (without the at symbol), e.g. "hachyderm.io" | |||
;discord | |||
:Your discord username, if you don't mind people chatting to you | |||
;callsign | |||
:Your amateur radio callsign, if you have one | |||
===Notes=== | ===Notes=== | ||
Parameter wikiname is | 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 17:40, 29 August 2024
Member | |
---|---|
![]() |
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= |website= |mastosite= |mastouser= |discord= |callsign= }}
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.
- website
- Link to your website (just the domain)
- mastouser
- Your mastodon username (without the instance name), e.g. "nottinghack"
- mastosite
- Your mastodon site (without the at symbol), e.g. "hachyderm.io"
- discord
- Your discord username, if you don't mind people chatting to you
- callsign
- Your amateur radio callsign, if you have one
Notes
Parameter wikiname is deprecated - as it can be obtained from page infobox is placed on.
![Note](/images/thumb/6/60/Bulbgraph.png/18px-Bulbgraph.png)