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 it up for people who don't have an avatar.)
 
(68 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| cellpadding="0" cellspacing="0" style="clear:right; float:right; margin:0px 0px 5px 5px; padding:10px 10px 5px 0px; width:250px; border:#9BF solid 1px"
<noinclude>
<!--  -->
<!--  -->
<!-- note: when editing the role template, be sure to edit any major changes into the examples -->
<!--  -->
<!--  -->
</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:#E0E5E9; margin:0px 0px 5px 10px; border:solid #9BF 1px;" 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" |
| align="center" style="width:{{ #ifeq: {{{avatar| }}} | | 245 | 175 }}px;" | {{color|{{{color|black}}}| {{ #if: {{{title| }}} | {{{title}}} | {{ #switch:{{{style}}}
{{color|{{{2|black}}}|{{ #switch:{{{3|b}}}
| b='''{{BASEPAGENAME}}'''
| b='''{{PAGENAME}}'''
| c={{BASEPAGENAME}}
| i=''{{PAGENAME}}''
| i=''{{BASEPAGENAME}}''
| u=<u>{{PAGENAME}}</u>
| u=<u>{{BASEPAGENAME}}</u>
| bi='''''{{PAGENAME}}'''''
| bi=
| ib='''''{{PAGENAME}}'''''
| ib='''''{{BASEPAGENAME}}'''''
| bu='''<u>{{PAGENAME}}</u>'''
| bu=
| ub='''<u>{{PAGENAME}}</u>'''
| ub='''<u>{{BASEPAGENAME}}</u>'''
| iu=''<u>{{PAGENAME}}</u>''
| iu=
| ui=''<u>{{PAGENAME}}</u>''
| ui=''<u>{{BASEPAGENAME}}</u>''
| biu='''''<u>{{PAGENAME}}</u>'''''
| biu
| bui='''''<u>{{PAGENAME}}</u>'''''
| bui
| ibu='''''<u>{{PAGENAME}}</u>'''''
| ibu
| iub='''''<u>{{PAGENAME}}</u>'''''
| iub
| ubi='''''<u>{{PAGENAME}}</u>'''''
| ubi
| uib='''''<u>{{PAGENAME}}</u>'''''
| uib='''''<u>{{BASEPAGENAME}}</u>'''''
| {{PAGENAME}} }} }}
| {{BASEPAGENAME}} }} }} }}  
| style="width:{{ #ifeq: {{{avatar| }}} | | 0 | 75 }}px"; | {{ #ifeq: {{{avatar| }}} | | | [[File:{{{avatar}}}|75px]] }}
|}
|}
|-[
| align="left" | {{scummer|{{{user#|0}}}|userpic={{#ifexist:File:{{{avatar}}}| {{{avatar}}}|logo_mafiascum_medium.jpg}}}}
|-
|-
| {{scummer|{{{1|0}}}}}
| <small>{{TOCubx}}</small>
|-
|}</includeonly><noinclude>
| {{TOCubx}}
{{TOCright}}
|}
<noinclude>
== Usage ==
== Usage ==
This template is used to place a box on a page which includes a header bar with the name of the page, the {{tl|scummer}} template, and also automatically adds a [[Template:TOCubx|Table of Contents]] within the box.
== Syntax ==
== Syntax ==
== Paramaters ==
<pre>
{{userbox| | | | }}
</pre>
<pre>
{{userbox
| user#=  
| color=  
| style=  
| title=  
| avatar=
}}
</pre>
 
== Parameters ==
=== {{{user#}}} ===
:user number
''for more information on finding a 'user number' [[Template:Profile/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 {{tl|scummer}}''
 
== Examples ==
== Examples ==
[[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}}

Examples