You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Userbox: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(Fixed up another mistake. I forgot that {{scummer}} needed {{{userpic}}} instead of {{{2}}})
(Fixed it up for people who don't have an avatar.)
 
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:
| style="width:{{ #ifeq: {{{avatar| }}} | | 0 | 75 }}px"; | {{ #ifeq: {{{avatar| }}} | | | [[File:{{{avatar}}}|75px]] }}
| style="width:{{ #ifeq: {{{avatar| }}} | | 0 | 75 }}px"; | {{ #ifeq: {{{avatar| }}} | | | [[File:{{{avatar}}}|75px]] }}
|}
|}
|-
|-[
| align="left" | {{scummer|{{{user#|0}}}|userpic=#ifeq: {{{avatar| }}}}}
| align="left" | {{scummer|{{{user#|0}}}|userpic={{#ifexist:File:{{{avatar}}}| {{{avatar}}}|logo_mafiascum_medium.jpg}}}}
|-
|-
| <small>{{TOCubx}}</small>
| <small>{{TOCubx}}</small>

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}}

Examples