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
mNo edit summary
(Fixed it up for people who don't have an avatar.)
 
(50 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<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>
<!--  -->
<!--  -->
<!-- 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:#EEE; margin:0px 0px 5px 5px; border:solid #AAA 1px;{{ #ifeq: {{{3| }}} | 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" | {{color|{{{2|black}}}|{{ #if: {{{4| }}} | {{ #switch:{{{3}}}
| align="center" style="width:{{ #ifeq: {{{avatar| }}} | | 245 | 175 }}px;" | {{color|{{{color|black}}}| {{ #if: {{{title| }}} | {{{title}}} | {{ #switch:{{{style}}}
| b='''{{{4}}}'''
| b='''{{BASEPAGENAME}}'''
| c={{{4}}}
| c={{BASEPAGENAME}}
| i=''{{{4}}}''
| i=''{{BASEPAGENAME}}''
| u=<u>{{{4}}}</u>
| u=<u>{{BASEPAGENAME}}</u>
| bi='''''{{{4}}}'''''
| bi=
| ib='''''{{{4}}}'''''
| ib='''''{{BASEPAGENAME}}'''''
| bu='''<u>{{{4}}}</u>'''
| bu=
| ub='''<u>{{{4}}}</u>'''
| ub='''<u>{{BASEPAGENAME}}</u>'''
| iu=''<u>{{{4}}}</u>''
| iu=
| ui=''<u>{{{4}}}</u>''
| ui=''<u>{{BASEPAGENAME}}</u>''
| biu='''''<u>{{{4}}}</u>'''''
| biu
| bui='''''<u>{{{4}}}</u>'''''
| bui
| ibu='''''<u>{{{4}}}</u>'''''
| ibu
| iub='''''<u>{{{4}}}</u>'''''
| iub
| ubi='''''<u>{{{4}}}</u>'''''
| ubi
| uib='''''<u>{{{4}}}</u>'''''
| uib='''''<u>{{BASEPAGENAME}}</u>'''''
| {{{4}}} }} | {{ #switch:{{{3}}}
| {{BASEPAGENAME}} }} }} }}  
| b='''{{PAGENAME}}'''
| style="width:{{ #ifeq: {{{avatar| }}} | | 0 | 75 }}px"; | {{ #ifeq: {{{avatar| }}} | | | [[File:{{{avatar}}}|75px]] }}
| c={{PAGENAME}}
| i=''{{PAGENAME}}''
| u=<u>{{PAGENAME}}</u>
| bi='''''{{PAGENAME}}'''''
| ib='''''{{PAGENAME}}'''''
| bu='''<u>{{PAGENAME}}</u>'''
| ub='''<u>{{PAGENAME}}</u>'''
| iu=''<u>{{PAGENAME}}</u>''
| ui=''<u>{{PAGENAME}}</u>''
| biu='''''<u>{{PAGENAME}}</u>'''''
| bui='''''<u>{{PAGENAME}}</u>'''''
| ibu='''''<u>{{PAGENAME}}</u>'''''
| iub='''''<u>{{PAGENAME}}</u>'''''
| ubi='''''<u>{{PAGENAME}}</u>'''''
| uib='''''<u>{{PAGENAME}}</u>'''''
| {{PAGENAME}} }} }} }}
|}
|}
|-[
| align="left" | {{scummer|{{{user#|0}}}|userpic={{#ifexist:File:{{{avatar}}}| {{{avatar}}}|logo_mafiascum_medium.jpg}}}}
|-
|-
| {{scummer|{{{1|0}}}}}
| <small>{{TOCubx}}</small>
|-
| {{TOCubx}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
{{TOCright}}
{{TOCright}}
Line 49: Line 39:
== Syntax ==
== Syntax ==
<pre>
<pre>
{{userbox| | | }}
{{userbox| | | | }}
</pre>
<pre>
{{userbox
| user#=
| color=
| style=
| title=
| avatar=
}}
</pre>
</pre>


== Paramaters ==
== Parameters ==
; {{{1}}} : the number of the user in the [[MafiaScum]] database, also called 'user number'.
=== {{{user#}}} ===
*''The user number can be found by looking at the URL of the user's forum profile.''
:user number  
''To find a user number, follow these steps:
''for more information on finding a 'user number' [[Template:Profile/user_number|click here]]''
*click on the user's [[Image:profile_subsilver.png]] button from any post on the forums
 
:''if you are having trouble finding a post by the specific user you are looking for, click on [[Image:search_subsilver.png]] at the top of any page, enter the username you are looking for in the 'Search for Author:' box, change the 'Desplay results as:' value to 'Posts', click 'Search', then click on the username on the Search Reults page
=== {{{color}}} ===
*in the address bar of your browser, you should see the URL of the page
:the color of the text for the header bar
:'''Example:''' in the forums, the URL for [[mith]]'s Profile is as follows:
 
<pre>http://www.mafiascum.net/forum/profile.php?mode=viewprofile&u=1</pre>
=== {{{style}}} ===
*The user number directly follows "<code>u=</code>"; in this case: <code>1</code>
:the style of font of the text for the header bar
:''Make sure to check the user number before placing the template on a page. Using the wrong user number could result in a link for [[mith]] linking to [[jeep]]'s forum profile.''
 
; {{{2}}} : the color of the text for the header bar
=== {{{title}}} ===
; {{{3}}} : the style of font of the text for the header bar
: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 ==
</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}}

Examples