You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Userbox: Difference between revisions
Jump to navigation
Jump to search
(templates category should be in the noinclude section) |
(Fixed it up for people who don't have an avatar.) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
</noinclude><includeonly>{| cellpadding="0" cellspacing="0" style="clear:right; float:right; margin:0px 5px 5px 5px; padding:5px 5px 0px 0px; width:250px; border:#AAA solid 1px;" | </noinclude><includeonly>{| cellpadding="0" cellspacing="0" style="clear:right; float:right; margin:0px 5px 5px 5px; padding:5px 5px 0px 0px; width:250px; border:#AAA solid 1px;" | ||
| | | | ||
{| style="background:#EEE; margin: | {| style="background:#EEE; margin:0px 5px 5px 5px; border:solid #AAA 1px;{{ #ifeq: {{{style| }}} | c | font-family: Monotype Corsiva, cursive; font-size: 14pt;" | " }} width="100%" | ||
| align="center" style="width:{{ #ifeq: {{{avatar| }}} | | | | align="center" style="width:{{ #ifeq: {{{avatar| }}} | | 245 | 175 }}px;" | {{color|{{{color|black}}}| {{ #if: {{{title| }}} | {{{title}}} | {{ #switch:{{{style}}} | ||
| b='''{{ | | b='''{{BASEPAGENAME}}''' | ||
| c={{ | | c={{BASEPAGENAME}} | ||
| i=''{{ | | i=''{{BASEPAGENAME}}'' | ||
| u=<u>{{ | | u=<u>{{BASEPAGENAME}}</u> | ||
| bi= | | bi= | ||
| ib='''''{{ | | ib='''''{{BASEPAGENAME}}''''' | ||
| bu= | | bu= | ||
| ub='''<u>{{ | | ub='''<u>{{BASEPAGENAME}}</u>''' | ||
| iu= | | iu= | ||
| ui=''<u>{{ | | ui=''<u>{{BASEPAGENAME}}</u>'' | ||
| biu | | biu | ||
| bui | | bui | ||
| ibu | | ibu | ||
| iub | | iub | ||
| ubi | | ubi | ||
| uib='''''<u>{{ | | uib='''''<u>{{BASEPAGENAME}}</u>''''' | ||
| {{ | | {{BASEPAGENAME}} }} }} }} | ||
| style="width:{{ #ifeq: {{{avatar| }}} | | 0 | 75 }}px"; | {{ #ifeq: {{{avatar| }}} | | | [[ | | style="width:{{ #ifeq: {{{avatar| }}} | | 0 | 75 }}px"; | {{ #ifeq: {{{avatar| }}} | | | [[File:{{{avatar}}}|75px]] }} | ||
|} | |} | ||
|- | |-[ | ||
| align="left" | {{scummer|{{{user#|0}}}}} | | align="left" | {{scummer|{{{user#|0}}}|userpic={{#ifexist:File:{{{avatar}}}| {{{avatar}}}|logo_mafiascum_medium.jpg}}}} | ||
|- | |- | ||
| <small>{{TOCubx}}</small> | | <small>{{TOCubx}}</small> | ||
Line 54: | Line 54: | ||
=== {{{user#}}} === | === {{{user#}}} === | ||
:user number | :user number | ||
''for more information on finding a 'user number' [[Template: | ''for more information on finding a 'user number' [[Template:Profile/user_number|click here]]'' | ||
=== {{{color}}} === | === {{{color}}} === | ||
Line 68: | Line 68: | ||
=== {{{avatar}}} === | === {{{avatar}}} === | ||
:the name of the image of the user's [[avatar]] | :the name of the image of the user's [[avatar]] | ||
''this parameter is optional, and if used will create a 75x75 px version of the image filename listed'' | ''this parameter is optional, and if used will create a 75x75 px version of the image filename listed as well as replacing the default MS logo of {{tl|scummer}}'' | ||
== Examples == | == Examples == | ||
[[category: Templates]]</noinclude> | [[category: Templates|{{BASEPAGENAME}}]]</noinclude> |
Latest revision as of 02:00, 20 October 2021
Usage
This template is used to place a box on a page which includes a header bar with the name of the page, the {{scummer}} template, and also automatically adds a Table of Contents within the box.
Syntax
{{userbox| | | | }}
{{userbox | user#= | color= | style= | title= | avatar= }}
Parameters
{{{user#}}}
- user number
for more information on finding a 'user number' click here
{{{color}}}
- the color of the text for the header bar
{{{style}}}
- the style of font of the text for the header bar
{{{title}}}
- the title of the userbox
this parameter is optional, and if left blank will automatically insert the name of the page the userbox is on
{{{avatar}}}
- the name of the image of the user's avatar
this parameter is optional, and if used will create a 75x75 px version of the image filename listed as well as replacing the default MS logo of {{scummer}}