Template:Userbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Added template data) |
||
(22 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<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:# | |- style="text-align:center; background-color:#5f9fbc; color: white; font-size: 120%" | ||
! colspan=2| ''' | ! 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:{{{name|}}}| | |||
{{TableRow | Name | {{{name}}} }} | |||
|}} | |||
{{#if:{{{email|}}}| | {{#if:{{{email|}}}| | ||
{{TableRow | Email | [mailto:{{{email}}} {{{email}}}] }} | {{TableRow | Email | [mailto:{{{email}}} {{{email}}}] }} | ||
Line 15: | Line 18: | ||
|}} | |}} | ||
{{#if:{{{www|}}}| | {{#if:{{{www|}}}| | ||
{{TableRow | | {{TableRow | Web | [{{{www}}} {{{www}}}] }} | ||
|}} | |}} | ||
{{#if:{{{twitter|}}}| | {{#if:{{{twitter|}}}| | ||
Line 22: | Line 25: | ||
|} | |} | ||
[[Category:Member|{{ | {{#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 | |||
| | |||
}} | |||
</nowiki></pre> | |||
This will also add you to the [[:Category:Member|Member]] category. | |||
If you're including a photo, consider adding yourself to the [[Rogues gallery]] too. | |||
<templatedata> | |||
{ | |||
"params": { | |||
{{ | "title": { | ||
"label": "Title" | |||
}, | |||
"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 | ||
---|---|---|
Name | My Name | |
IRC | my_nick | |
Web | http://my.web.site | |
@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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | no description | Unknown | optional |
Name | name | Your name
| Unknown | required |
Mugshot | mugshot | An image of your face | File | suggested |
email | Your email address
| String | optional | |
IRC Handle | irc | Your IRC/Slack handle
| String | suggested |
Website | www | Your website
| URL | optional |
Twitter Username | twitter | Your twitter username
| String | optional |
notreallyamember | notreallyamember | no description | Unknown | optional |