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

Template:Usercard: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(Created page with "<includeonly>{| cellpadding="0" cellspacing="0" width="250px" style="{{#if: {{{float|}}} | float:{{{float}}};}} {{#if: {{{margin|}}} | margin:{{{margin}}};}} text-align:center...")
 
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| cellpadding="0" cellspacing="0" width="250px" style="{{#if: {{{float|}}} | float:{{{float}}};}} {{#if: {{{margin|}}} | margin:{{{margin}}};}} text-align:center; border-style: solid; border-width: 2px; border-color:#{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|self=333|dark=000|777}}; {{Linear-gradient|top|#{{#switch:{{{type|light}}}|town=0f0|mafia=f00|cult=f0f|werewolf=fa0|self=888|dark=333|eee}}, #{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|self=444|dark=000|aaa}}}}"
<includeonly>{| cellpadding="0" cellspacing="0" width="250px" style="{{#if: {{{float|}}} | clear:{{{float}}}; float:{{{float}}};}} {{#if: {{{margin|}}} | margin:{{{margin}}};}} text-align:center; border-style: solid; border-width: 2px; border-color:#{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|self=333|dark=000|777}}; {{Linear-gradient|top|#{{#switch:{{{type|light}}}|town=0f0|mafia=f00|cult=f0f|werewolf=fa0|self=aaa|dark=333|eee}}, #{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|self=666|dark=000|aaa}}}}"
|-
|-
| <span style="color:#{{#ifeq:{{{type|light}}}|light|000|fff}}">'''mafia'''</span><span style="color:#{{#switch:{{{type|light}}}|mafia=000|cult|dark=f00|a00}}">'''scum'''</span>
| <span style="color:#{{#ifeq:{{{type|light}}}|light|000|fff}}">'''mafia'''</span><span style="color:#{{#switch:{{{type|light}}}|mafia=000|dark=f00|a00}}">'''scum'''</span>
|-
|-
|
|
{| cellspacing="0" style="margin:auto; border-style: solid; border-width: 1px 1px 0px 1px; border-color:#{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|self=333|dark=000|777}}; {{Linear-gradient|top|#{{#switch:{{{type|light}}}|town=7f7|mafia=f77|cult=f7f|werewolf=fc7|self=eee|dark=777|ccc}}, #{{#switch:{{{type|light}}}|town=474|mafia=744|cult=747|werewolf=764|self=bbb|dark=333|999}}}}"
{| cellspacing="0" style="margin:auto; border-style: solid; border-width: 1px 1px 0px 1px; border-color:#{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|self=333|dark=000|777}}; {{Linear-gradient|top|#{{#switch:{{{type|light}}}|town=7f7|mafia=f77|cult=f7f|werewolf=fc7|self=eee|dark=777|ccc}}, #{{#switch:{{{type|light}}}|town=595|mafia=955|cult=959|werewolf=975|self=bbb|dark=333|999}}}}"
| style="padding: 5px 5px 0px 5px;" | [[File:{{{avatar| {{#switch:{{{type|light}}}|town=Faction Town.png|mafia=Faction Mafia.png|cult=Faction Cult.png|werewolf=Faction Werewolf.png|self=Faction Self-Aligned.png|MafiaWiki Logo.jpg}} }}}|188x188px]]
| style="padding: 5px 5px 0px 5px;" | [[File:{{{avatar| {{#switch:{{{type|light}}}|town=Faction Town.png|mafia=Faction Mafia.png|cult=Faction Cult.png|werewolf=Faction Werewolf.png|self=Faction Self-Aligned.png|MafiaWiki Logo.jpg}} }}}|188x188px]]
|}
|}
Line 13: Line 13:
|}
|}
|-
|-
| {{WDL-Bar|caption='''Wins, Draws and Losses:'''|wins={{{wins|0}}}|draws={{{draws|0}}}|losses={{{losses|0}}}|wincolor=#0d0|size=90%|style=border-style: solid; border-width: 0px 1px 1px 1px; margin:auto; padding:2px; background:#ccc; border-color:#{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|dark=000|777}};}}
| {{WDL-Bar|caption='''Wins, Draws and Losses:'''|wins={{{wins|0}}}|draws={{{draws|0}}}|losses={{{losses|0}}}|wincolor=#0b0|size=90%|style=border-style: solid; border-width: 0px 1px 1px 1px; margin:auto; padding:2px; background:#ccc; border-color:#{{#switch:{{{type|light}}}|town=070|mafia=700|cult=707|werewolf=760|dark=000|777}};}}
|-
|-
| width="95%" height="12px" style="color:#{{#switch:{{{type|light}}}|town=0f0|mafia=f00|cult=f0f|werewolf=fa0|self=888|dark=333|eee}};" | <small>{{{quote|}}}</small>
| width="95%" height="12px" style="color:#{{#switch:{{{type|light}}}|town=7f7|mafia=f77|cult=f7f|werewolf=fd7|self=ccc|dark=aaa|555}};" | <small>{{{quote|}}}</small>
|}</includeonly><noinclude>{{Template
|}</includeonly><noinclude>{{Template
|Name=Usercard
|Name=Usercard
Line 52: Line 52:
=== {{{wins}}}, {{{draws}}} and {{{losses}}} ===
=== {{{wins}}}, {{{draws}}} and {{{losses}}} ===


Changes the values that will be computed by [[Template:WDL-Bar | WDL-Bar]]. All default to <code>0</code>.
Changes the values that will be computed by the [[Template:WDL-Bar | WDL-Bar]]. All default to <code>0</code>.


=== {{{quote}}} ===
=== {{{quote}}} ===
Line 60: Line 60:
=== {{{type}}} ===
=== {{{type}}} ===


Can be <code>town</code>, <code>mafia</code>, <code>cult</code>, <code>werewolf</code>, <code>self</code>, <code>light</code> or <code>dark</code>. Changes the color scheme of the card. Factional types change the default '''{{{avatar}}}''' to the respective factional icon by [[Diginova]], and the other two change the default '''{{{avatar}}}''' to the MafiaWiki logo. Defaults to <code>light</code>.
Can be <code>town</code>, <code>mafia</code>, <code>cult</code>, <code>werewolf</code>, <code>self</code>, <code>light</code> or <code>dark</code>. Changes the color scheme of the card and the default image for '''{{{avatar}}}''', as seen bellow. Defaults to <code>light</code>.
 
{|
|- style="vertical-align:top;"
|
{| class="wikitable"
! {{{type}}}
! Color
! Default {{{avatar}}}
|-
| <code>town</code>
| style="{{Linear-gradient|top|#0f0, #070}}" |
| style="text-align:center;" | [[File:Faction Town.png|100x100px]]
|-
| <code>mafia</code>
| style="{{Linear-gradient|top|#f00, #700}}" |
| style="text-align:center;" | [[File:Faction Mafia.png|100x100px]]
|-
| <code>cult</code>
| style="{{Linear-gradient|top|#f0f, #707}}" |
| style="text-align:center;" | [[File:Faction Cult.png|100x100px]]
|-
| <code>werewolf</code>
| style="{{Linear-gradient|top|#fa0, #760}}" |
| style="text-align:center;" | [[File:Faction Werewolf.png|100x100px]]
|}
|
{| class="wikitable"
! {{{type}}}
! Color
! Default {{{avatar}}}
|-
| <code>self</code>
| style="{{Linear-gradient|top|#aaa, #666}}" |
| style="text-align:center;" | [[File:Faction Self-Aligned.png|100x100px]]
|-
| <code>light</code>
| style="{{Linear-gradient|top|#eee, #aaa}}" |
| style="text-align:center;" | [[File:MafiaWiki Logo.jpg|100x100px]]
|-
| <code>dark</code>
| style="{{Linear-gradient|top|#333, #000}}" |
| style="text-align:center;" | [[File:MafiaWiki Logo.jpg|100x100px]]
|}
|}


=== {{{float}}} ===
=== {{{float}}} ===
Line 115: Line 159:
| name= ProgoWoshua
| name= ProgoWoshua
| avatar= ProgoWoshua avatar 1 full.png
| avatar= ProgoWoshua avatar 1 full.png
| type= dark
}}</pre>
}}</pre>


{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png|type=dark}}
{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png}}


<pre>{{Usercard
<pre>{{Usercard
| name= ProgoWoshua
| avatar= ProgoWoshua avatar 1 full.png
| wins= 10
| wins= 10
| draws= 3
| draws= 3
| losses= 7
| losses= 7
| type= dark
}}</pre>
}}</pre>


{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png|wins=10|draws=3|losses=7|type=dark}}
{{Usercard|wins=10|draws=3|losses=7}}


<pre>{{Usercard
<pre>{{Usercard
| name= ProgoWoshua
| quote= Let's get rid of the scum!
| avatar= ProgoWoshua avatar 1 full.png
| wins= 10
| draws= 3
| losses= 7
| quote= Woshua is looking for some good clean fun.
| type= dark
}}</pre>
}}</pre>


{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png|wins=10|draws=3|losses=7|quote=Woshua is looking for some good clean fun.|type=dark}}
{{Usercard|quote=Let's get rid of the scum!}}


<pre>{{Usercard
{| cellpaddind="0" cellspacing="0" width="100%" style="margin: 0px 5px 0px auto"
| name= ProgoWoshua
|
| avatar= ProgoWoshua avatar 1 full.png
{{Usercard|float=right}} <pre>{{Usercard
| wins= 10
| draws= 3
| losses= 7
| quote= Woshua is looking for some good clean fun.
| type= dark
| float= right
| float= right
| margin= 0px 0px 10px 10px
}}</pre>
}}</pre>
|}


{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png|wins=10|draws=3|losses=7|quote=Woshua is looking for some good clean fun.|type=dark|float=right|margin=0px 0px 10px 10px}}
<pre>{{Usercard
<big>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sed finibus ligula. Etiam luctus fermentum viverra. Curabitur congue egestas tellus, nec sagittis erat. Suspendisse quis justo dolor. Duis interdum rhoncus sodales. Morbi eget porta dolor. Fusce bibendum, arcu et tristique volutpat, arcu mi venenatis massa, et varius massa nisi nec arcu. Maecenas vulputate dui urna, eu tempor ex facilisis vitae. Vivamus sit amet posuere nibh, at tincidunt ipsum. Nunc efficitur, magna in pretium pretium, velit ligula pulvinar ligula, eu gravida lectus neque at ante. Suspendisse potenti. Praesent eu diam ex. Nullam lectus massa, eleifend tempor suscipit at, semper non metus.
| margin= auto
}}</pre>


Aenean ultricies interdum accumsan. Quisque dignissim mauris semper ligula eleifend, id bibendum enim luctus. Maecenas luctus eu nibh id cursus. Fusce non ultrices velit. Nunc ullamcorper commodo turpis. Curabitur sagittis lectus lorem, sed malesuada mi convallis id. Pellentesque ut orci quis purus iaculis scelerisque. Sed non commodo magna. Pellentesque lobortis quam nibh, nec dictum erat aliquet non. Donec dui lorem, consequat in lorem at, rutrum vulputate mauris. Ut cursus sem eget orci accumsan, sit amet tincidunt risus auctor. Curabitur ultricies nibh ac fermentum faucibus.
{{Usercard|margin=auto}}


Donec vitae magna vulputate, vulputate est vel, ultrices nisl. Aliquam ultrices tincidunt lectus sed egestas. Vestibulum enim tortor, venenatis ut sagittis ac, vulputate vitae dui. Morbi non libero id felis ullamcorper hendrerit eu eu erat. Donec rutrum semper lorem, sed dignissim orci efficitur at. In bibendum sapien ut massa varius sollicitudin. Etiam quis eros leo. Aenean consequat lacinia mattis. Donec eleifend blandit tellus at tempor. Aliquam sagittis placerat ex, eget bibendum mi condimentum ultricies. Pellentesque nec vestibulum magna. Pellentesque a pulvinar felis. Nullam viverra urna sit amet dui rhoncus, sit amet lacinia augue pharetra.</big>
{| cellpaddind="0" cellspacing="0" width="100%" style="margin: 0px 5px 0px auto"
 
|
<pre>{{Usercard
{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png|wins=9|draws=1|losses=3|quote=Woshua is looking for some good clean fun.|type=dark|float=right|margin=50px 100px 10px 10px}} <pre>{{Usercard
| name= ProgoWoshua
| name= ProgoWoshua
| avatar= ProgoWoshua avatar 1 full.png
| avatar= ProgoWoshua avatar 1 full.png
| wins= 10
| wins= 9
| draws= 3
| draws= 1
| losses= 7
| losses= 3
| quote= Woshua is looking for some good clean fun.
| quote= Woshua is looking for some good clean fun.
| type= dark
| type= dark
| margin= auto
| float= right
| margin= 50px 100px 10px 10px
}}</pre>
}}</pre>
 
|}</noinclude>
{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png|wins=10|draws=3|losses=7|quote=Woshua is looking for some good clean fun.|type=dark|margin=auto}}</noinclude>

Latest revision as of 18:30, 15 January 2022

Name:
  • Usercard
Type:
Sub-Template:
  • No
Designer:

Creates a card displaying your name and avatar, along with a WDL-Bar. Like this:

mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:7 D:1 L:2

Syntax

{{Usercard
| name=
| avatar=
| wins=
| draws=
| losses=
| quote=
| type=
| float=
| margin=
}}

Parameters

{{{name}}}

The name displayed on the card. Defaults to {{BASEPAGENAME}}, meaning it will have the name of the page it is in.

{{{avatar}}}

The image displayed on the card. Default image depends on the value of {{{type}}}.

{{{wins}}}, {{{draws}}} and {{{losses}}}

Changes the values that will be computed by the WDL-Bar. All default to 0.

{{{quote}}}

A small quote displayed on the bottom of the card. Optional.

{{{type}}}

Can be town, mafia, cult, werewolf, self, light or dark. Changes the color scheme of the card and the default image for {{{avatar}}}, as seen bellow. Defaults to light.

{{{type}}} Color Default {{{avatar}}}
town Faction Town.png
mafia Faction Mafia.png
cult Faction Cult.png
werewolf Faction Werewolf.png
{{{type}}} Color Default {{{avatar}}}
self Faction Self-Aligned.png
light MafiaWiki Logo.jpg
dark MafiaWiki Logo.jpg

{{{float}}}

Can be left or right. Allow the card to float around text. Optional.

{{{margin}}}

Sets the attribute style="margin:{{{margin}}};". Optional.

Examples

{{Usercard}}
mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| type= town
}}
mafiascum
Faction Town.png
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| type= mafia
}}
mafiascum
Faction Mafia.png
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| type= cult
}}
mafiascum
Faction Cult.png
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| type= werewolf
}}
mafiascum
Faction Werewolf.png
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| type= self
}}
mafiascum
Faction Self-Aligned.png
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| type= dark
}}
mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| name= ProgoWoshua
| avatar= ProgoWoshua avatar 1 full.png
}}
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| wins= 10
| draws= 3
| losses= 7
}}
mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:10 D:3 L:7
{{Usercard
| quote= Let's get rid of the scum!
}}
mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
Let's get rid of the scum!
mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| float= right
}}
{{Usercard
| margin= auto
}}
mafiascum
MafiaWiki Logo.jpg
Usercard
Wins, Draws and Losses:
W:0 D:0 L:0
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:9 D:1 L:3
Woshua is looking for some good clean fun.
{{Usercard
| name= ProgoWoshua
| avatar= ProgoWoshua avatar 1 full.png
| wins= 9
| draws= 1
| losses= 3
| quote= Woshua is looking for some good clean fun.
| type= dark
| float= right
| margin= 50px 100px 10px 10px
}}