You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Usercard: Difference between revisions
ProgoWoshua (talk | contribs) No edit summary |
ProgoWoshua (talk | contribs) No edit summary |
||
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= | <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=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|cult|dark=f00|a00}}">'''scum'''</span> | ||
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 | 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 | ||
}}</pre> | }}</pre> | ||
{{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png | {{Usercard|name=ProgoWoshua|avatar=ProgoWoshua avatar 1 full.png}} | ||
<pre>{{Usercard | <pre>{{Usercard | ||
| wins= 10 | | wins= 10 | ||
| draws= 3 | | draws= 3 | ||
| losses= 7 | | losses= 7 | ||
}}</pre> | }}</pre> | ||
{{Usercard | {{Usercard|wins=10|draws=3|losses=7}} | ||
<pre>{{Usercard | <pre>{{Usercard | ||
| quote= Let's get rid of the scum! | |||
| quote= | |||
}}</pre> | }}</pre> | ||
{{Usercard | {{Usercard|quote=Let's get rid of the scum!}} | ||
{| cellpaddind="0" cellspacing="0" width="100%" style="margin: 0px 5px 0px auto" | {| cellpaddind="0" cellspacing="0" width="100%" style="margin: 0px 5px 0px auto" | ||
| | | | ||
{{Usercard | {{Usercard|float=right}} <pre>{{Usercard | ||
| float= right | | float= right | ||
}}</pre> | }}</pre> | ||
Line 158: | Line 185: | ||
<pre>{{Usercard | <pre>{{Usercard | ||
| margin= auto | |||
}}</pre> | |||
{{Usercard|margin=auto}} | |||
{| cellpaddind="0" cellspacing="0" width="100%" style="margin: 0px 5px 0px auto" | |||
| | |||
{{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= | | wins= 9 | ||
| draws= | | draws= 1 | ||
| losses= | | 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= | | float= right | ||
| margin= 50px 100px 10px 10px | |||
}}</pre> | }}</pre> | ||
|}</noinclude> | |||
Revision as of 16:01, 15 January 2022
|
Creates a card displaying your name and avatar, along with a WDL-Bar. Like this:
mafiascum | ||||||||||
| ||||||||||
| ||||||||||
| ||||||||||
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
.
|
|
{{{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 | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | type= town }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | type= mafia }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | type= cult }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | type= werewolf }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | type= self }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | type= dark }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | name= ProgoWoshua | avatar= ProgoWoshua avatar 1 full.png }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
{{Usercard | wins= 10 | draws= 3 | losses= 7 }}
mafiascum | ||||||||||
| ||||||||||
| ||||||||||
| ||||||||||
{{Usercard | quote= Let's get rid of the scum! }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||
Let's get rid of the scum! |
{{Usercard | float= right }} |
{{Usercard | margin= auto }}
mafiascum | ||||||||
| ||||||||
| ||||||||
| ||||||||