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

Template:Karma: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{ #switch:{{{1}}}
<includeonly>{{ #switch:{{{1}}}
| u======[[{{{2}}}]] <span style='color:#{{ #ifexpr: {{{3}}}>0 |008b|{{ # ifexpr: {{{3}}}<0 |ac|00}}00}}00;'>{{{3}}}</span>=====
| u======[[{{{2}}}]] <span style='color:#{{ #ifexpr: {{{3}}}>0 |008b|{{ # ifexpr: {{{3}}}<0 |ac|00}}00}}00;'>{{{3}}}</span>=====
| user======[[{{{2}}}]] <span style='color:#{{ #ifexpr: {{{3}}}>0 |008b|{{ # ifexpr: {{{3}}}<0 |ac|00}}00}}00;'>{{{3}}}</span>=====
| user======[[{{{2}}}]] <span style='color:#{{ #ifexpr: {{{3}}}>0 |008b|{{ # ifexpr: {{{3}}}<0 |ac|00}}00}}00;'>{{{3}}}</span>=====
| e=*<span style='color:#{{ #switch:{{{2}}}
| g=*<span style='color:#{{ #switch:{{{2}}}
| i=008b
| i=008b
| in=008b
| in=008b
Line 13: Line 13:
| out=out of
| out=out of
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4}}}}}'''{{{5}}}.</span>
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4}}}}}'''{{{5}}}.</span>
| entry=*<span style='color:#{{ #switch:{{{2}}}
| game=*<span style='color:#{{ #switch:{{{2}}}
| i=008b
| i=008b
| in=008b
| in=008b
Line 24: Line 24:
| out=out of
| out=out of
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4}}}}}'''{{{5}}}.</span>
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4}}}}}'''{{{5}}}.</span>
| error in template [[Template:Karma]] }}
| error in template [[Template:Karma]] }}</includeonly><noinclude>Use this as a template for any entry on the [[Karma]] page.
 
The first argument determines whether this is a user header or a single game.
*'''u''': user header
*'''g''': game
 
===User header===
Example: <pre>
{{Karma|Fenhl|+1}}
</pre>
*Argument 2 is the username.
*Argument 3 is the total Karma for this player. '''This does not auto-update.'''
 
===Game entry===
Example: <pre>
{{Karma|in|14700| on day 3}}
</pre>
*Argument 2 is '''i''' or '''o''', depending on whether the player replaced into or out of the game.
*Argument 3 is the number of the specific URL you wish to link to.
**Example: If you want to link to ''<nowiki>http://www.mafiascum.net/forum/viewtopic.php?t=</nowiki>'''14700''''', insert '''14700''' here.
*Argument 4 is the game name.
*Argument 5 are comments, such as " on day 1" or " due to workload". ''ALWAYS use a leading space, or it will stick to the link!''
 
 
[[Category:Templates]]</noinclude>

Revision as of 21:38, 1 October 2010

Use this as a template for any entry on the Karma page.

The first argument determines whether this is a user header or a single game.

  • u: user header
  • g: game

User header

Example:

{{Karma|Fenhl|+1}}
  • Argument 2 is the username.
  • Argument 3 is the total Karma for this player. This does not auto-update.

Game entry

Example:

{{Karma|in|14700| on day 3}}
  • Argument 2 is i or o, depending on whether the player replaced into or out of the game.
  • Argument 3 is the number of the specific URL you wish to link to.
    • Example: If you want to link to http://www.mafiascum.net/forum/viewtopic.php?t=14700, insert 14700 here.
  • Argument 4 is the game name.
  • Argument 5 are comments, such as " on day 1" or " due to workload". ALWAYS use a leading space, or it will stick to the link!