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
No edit summary
(Fixed some things up so that people can have their avatars displayed in the place of the MS logo for the Scummer template. Also changed the documentation so that people are aware of the change.)
Line 9: Line 9:
{| 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%"
{| 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| }}} | | 245 | 175 }}px;" | {{color|{{{color|black}}}| {{ #if: {{{title| }}} | {{{title}}} | {{ #switch:{{{style}}}
| align="center" style="width:{{ #ifeq: {{{avatar| }}} | | 245 | 175 }}px;" | {{color|{{{color|black}}}| {{ #if: {{{title| }}} | {{{title}}} | {{ #switch:{{{style}}}
| b='''{{PAGENAME}}'''
| b='''{{ROOTPAGENAME}}'''
| c={{PAGENAME}}
| c={{ROOTPAGENAME}}
| i=''{{PAGENAME}}''
| i=''{{ROOTPAGENAME}}''
| u=<u>{{PAGENAME}}</u>
| u=<u>{{ROOTPAGENAME}}</u>
| bi=
| bi=
| ib='''''{{PAGENAME}}'''''
| ib='''''{{ROOTPAGENAME}}'''''
| bu=
| bu=
| ub='''<u>{{PAGENAME}}</u>'''
| ub='''<u>{{ROOTPAGENAME}}</u>'''
| iu=
| iu=
| ui=''<u>{{PAGENAME}}</u>''
| ui=''<u>{{ROOTPAGENAME}}</u>''
| biu
| biu
| bui
| bui
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|{{PAGENAME}}]]</noinclude>
[[category: Templates|{{ROOTPAGENAME}}]]</noinclude>

Revision as of 01:41, 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