Template:Userbox: Difference between revisions

From Leeds Hackspace Wiki
Jump to navigation Jump to search
No edit summary
(Added template data)
 
(38 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>If you want to edit, please edit your userpage.</noinclude><includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
<includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
|- style="text-align:center; background-color:#5E93CE; color: white; font-size: 120%"
|- style="text-align:center; background-color:#5f9fbc; color: white; font-size: 120%"
! colspan=2| '''Member: {{#if:{{{name|}}}|{{{name}}}|Anonymous}}'''
! colspan=2| '''{{#if:{{{title|}}}|{{{title}}}|{{{name}}} }}'''
{{#if:{{{mugshot|}}}|
{{#if:{{{mugshot|}}}|
{{!}}-
{{!}}-
! colspan=2{{!}} [[File:{{{mugshot}}}{{!}}200px]]
! colspan=2{{!}} [[File:{{{mugshot}}}{{!}}200px]]
|}}
|}}
|-
<!--|-
! colspan=2| [[User_talk:{{PAGENAME}}|Talk]] ~ [[User:{{PAGENAME}}/Sandbox|Sandbox]] ~ [[Special:Contributions/{{PAGENAME}}|Contributions]]{{#if:{{{email|}}}|
| colspan=2| [[User_talk:{{PAGENAME}}|Talk]] ~ [[User:{{PAGENAME}}/Sandbox|Sandbox]] ~ [[Special:Contributions/{{PAGENAME}}|Contributions]]-->
{{!}}-
{{#if:{{{name|}}}|
{{!}} Email
{{TableRow | Name | {{{name}}} }}
{{!}} [mailto:{{{email}}} {{{email}}}]
|}}
|}}{{#if:{{{irc|}}}|
{{#if:{{{email|}}}|
{{!}}-
{{TableRow | Email | [mailto:{{{email}}} {{{email}}}] }}
{{!}} IRC
|}}
{{!}} {{{irc}}}
{{#if:{{{irc|}}}|
|}}{{#if:{{{www|}}}|
{{TableRow | IRC | {{{irc}}} }}
{{!}}-
|}}
! colspan=2 {{!}} [[{{{www}}}]]
{{#if:{{{www|}}}|
|}}{{#if:{{{twitter|}}}|
{{TableRow | Web | [{{{www}}} {{{www}}}] }}
{{!}}-
|}}
{{!}} Twitter
{{#if:{{{twitter|}}}|
{{!}} [https://www.twitter.com/{{{Twitter}}} @{{{twitter}}}]|}}
{{TableRow | Twitter | [https://www.twitter.com/{{{twitter}}} @{{{twitter}}}] }}
|}}
|}
|}


[[Category:Member|{{SUBPAGENAME}}]]</includeonly><noinclude>
{{#if:{{{notreallyamember|}}} | | [[Category:Member]] }}</includeonly><noinclude>
{{Userbox
| title = Title Name
| mugshot = leeds_hackspace_logo.svg
| name = My Name
| irc = my_nick
| www = http://my.web.site
| twitter = my_twitter_handle
| notreallyamember = yup <!-- prevent this example being added to the Member category -->
|
}}
Userbox template, add to the top of your user page! Usage (all parameters optional):
<pre><nowiki>
{{Userbox
| title = Title Name
| mugshot = leeds_hackspace_logo.svg
| name = My Name
| irc = my_nick
| www = http://my.web.site
| twitter = my_twitter_handle
|
}}


<font color=red>Don't panic.</font> Lazy people just <nowiki>{{Attendee}}</nowiki> to their userpage.
</nowiki></pre>


Afterwards click 'Edit with form' on top of the page and click the default image for the page where to upload your picture. (will be implemented later)
This will also add you to the [[:Category:Member|Member]] category.


== Tech support ==
If you're including a photo, consider adding yourself to the [[Rogues gallery]] too.
This form is used in the following way:
 
<pre><nowiki>
 
{{Attendee
<templatedata>
| name = Matt Taylor
{
| village = High_Altitude_Ballooning
"params": {
| Bringing = 4-man tent, flying wing, quadcopter, KAP
"title": {
| Departure = 2014/08/31 20:00:00 GMT
"label": "Title"
}}
},
</nowiki></pre>
"name": {
"label": "Name",
"description": "Your name",
"example": "Dave Davidson",
"required": true,
"suggested": true
},
"mugshot": {
"label": "Mugshot",
"description": "An image of your face",
"type": "wiki-file-name",
"suggested": true
},
"email": {
"label": "Email",
"description": "Your email address",
"example": "dave@davidson.org",
"type": "string"
},
"irc": {
"label": "IRC Handle",
"description": "Your IRC/Slack handle",
"example": "bigdave92",
"type": "string",
"suggested": true
},
"www": {
"label": "Website",
"description": "Your website",
"example": "davidson.org",
"type": "url"
},
"twitter": {
"label": "Twitter Username",
"description": "Your twitter username",
"example": "bigdave92",
"type": "string"
},
"notreallyamember": {}
},
"description": "A template to describe a user"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 17:41, 25 September 2019

Title Name
Leeds hackspace logo.svg
Name My Name
IRC my_nick
Web http://my.web.site
Twitter @my_twitter_handle


Userbox template, add to the top of your user page! Usage (all parameters optional):

{{Userbox
| title = Title Name
| mugshot = leeds_hackspace_logo.svg
| name = My Name
| irc = my_nick
| www = http://my.web.site
| twitter = my_twitter_handle
| 
}}

This will also add you to the Member category.

If you're including a photo, consider adding yourself to the Rogues gallery too.


A template to describe a user

Template parameters

ParameterDescriptionTypeStatus
Titletitle

no description

Unknownoptional
Namename

Your name

Example
Dave Davidson
Unknownrequired
Mugshotmugshot

An image of your face

Filesuggested
Emailemail

Your email address

Example
dave@davidson.org
Stringoptional
IRC Handleirc

Your IRC/Slack handle

Example
bigdave92
Stringsuggested
Websitewww

Your website

Example
davidson.org
URLoptional
Twitter Usernametwitter

Your twitter username

Example
bigdave92
Stringoptional
notreallyamembernotreallyamember

no description

Unknownoptional