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
No edit summary
No edit summary
Line 15: Line 15:
| {{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}};}}
| {{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

Revision as of 14:17, 14 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 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. Factional types change the default {{{avatar}}} to the respective faction icon by Diginova, and the other two change the default {{{avatar}}} to the MafiaWiki logo. 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
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
| type= dark
}}
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:0 D:0 L:0
{{Usercard
| name= ProgoWoshua
| avatar= ProgoWoshua avatar 1 full.png
| wins= 10
| draws= 3
| losses= 7
| type= dark
}}
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:10 D:3 L:7
{{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
}}
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:10 D:3 L:7
Woshua is looking for some good clean fun.
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:10 D:3 L:7
Woshua is looking for some good clean fun.
{{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
}}
{{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
}}
mafiascum
ProgoWoshua avatar 1 full.png
ProgoWoshua
Wins, Draws and Losses:
W:10 D:3 L:7
Woshua is looking for some good clean fun.