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
mNo edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{ #switch:{{{1}}}
<includeonly>{{ #switch:{{{1}}}
| u======[[{{{2}}}]] <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| u
| user
| p
| player
| s
| scummer======{{U|{{{2|}}}}} <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| 10=008b
| 10=008b
| 01=ac00
| 01=ac00
| 0000}}00;'>({{{3}}})</span>=====
| 0000}}00;'>({{{3}}})</span>=====
| user======[[{{{2}}}]] <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| i
| 10=008b
| in
| 01=ac00
| into=*<span style='color:#008b00;'>Replaced into '''{{ #ifeq: {{{rel}}} | w |[[{{{2}}}|{{{3|{{{2}}}}}}]]|{{plink|{{ #ifeq: {{{rel}}} | p |p|t}}|{{{2}}}|{{{3|{{{2}}}}}}}}}}'''{{#if:{{{4|}}}|&nbsp;}}{{{4|}}}.</span>
| 0000}}00;'>({{{3}}})</span>=====
| o
| p======[[{{{2}}}]] <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| out=*<span style='color:#ac0000;'>Replaced out of '''{{ #ifeq: {{{rel}}} | w |[[{{{2}}}|{{{3|{{{2}}}}}}]]|{{plink|{{ #ifeq: {{{rel}}} | p |p|t}}|{{{2}}}|{{{3|{{{2}}}}}}}}}}'''{{#if:{{{4|}}}|&nbsp;}}{{{4|}}}.</span>
| 10=008b
| x
| 01=ac00
| io=*<span style='color:#777;'>Replaced into and out of '''{{ #ifeq: {{{rel}}} | w |[[{{{2}}}|{{{3|{{{2}}}}}}]]|{{plink|{{ #ifeq: {{{rel}}} | p |p|t}}|{{{2}}}|{{{3|{{{2}}}}}}}}}}'''{{#if:{{{4|}}}|&nbsp;}}{{{4|}}}.</span>
| 0000}}00;'>({{{3}}})</span>=====
| g
| player======[[{{{2}}}]] <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| 10=008b
| 01=ac00
| 0000}}00;'>({{{3}}})</span>=====
| s======[[{{{2}}}]] <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| 10=008b
| 01=ac00
| 0000}}00;'>({{{3}}})</span>=====
| scummer======[[{{{2}}}]] <span style='color:#{{ #switch:{{ #expr:{{{3}}}>0}}{{ #expr:{{{3}}}<0}}
| 10=008b
| 01=ac00
| 0000}}00;'>({{{3}}})</span>=====
| i=*<span style='color:#008b00;'>Replaced into '''{{plink|t|{{{2}}}|{{{3|{{{2}}}}}}}}'''{{{4|}}}.</span>
| in=*<span style='color:#008b00;'>Replaced into '''{{plink|t|{{{2}}}|{{{3|{{{2}}}}}}}}'''{{{4|}}}.</span>
| into=*<span style='color:#008b00;'>Replaced into '''{{plink|t|{{{2}}}|{{{3|{{{2}}}}}}}}'''{{{4|}}}.</span>
| o=*<span style='color:#ac0000;'>Replaced out of '''{{plink|t|{{{2}}}|{{{3|{{{2}}}}}}}}'''{{{4|}}}.</span>
| out=*<span style='color:#ac0000;'>Replaced out of '''{{plink|t|{{{2}}}|{{{3|{{{2}}}}}}}}'''{{{4|}}}.</span>
| g=*<span style='color:#{{ #switch:{{{2}}}
| i=008b
| in=008b
| o=ac00
| out=ac00
| 0000}}00;'>Replaced {{ #switch:{{{2}}}
| i=into
| in=into
| o=out of
| out=out of
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4|{{{3}}}}}}}}'''{{{5|}}}.</span>
| game=*<span style='color:#{{ #switch:{{{2}}}
| game=*<span style='color:#{{ #switch:{{{2}}}
| i=008b
| i
| in=008b
| in
| o=ac00
| into=080
| out=ac00
| o
| 0000}}00;'>Replaced {{ #switch:{{{2}}}
| out=a00
| i=into
| io=777
| in=into
| 000}};'>Replaced {{ #switch:{{{2}}}
| o=out of
| i
| in
| into=into
| o
| out=out of
| out=out of
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4|{{{3}}}}}}}}'''{{{5|}}}.</span>
| io=into and out of
| =====[[{{{1}}}]] <span style='color:#{{ #switch:{{ #expr:{{{2}}}>0}}{{ #expr:{{{2}}}<0}}
| {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4|{{{3}}}}}}}}'''{{#if:{{{5|}}}|&nbsp;}}{{{5|}}}.</span>
| ====={{U|{{{1|}}}}} <span style='color:#{{ #switch:{{ #expr:{{{2}}}>0}}{{ #expr:{{{2}}}<0}}
| 10=008b
| 10=008b
| 01=ac00
| 01=ac00
Line 60: Line 41:
*'''i''' (or '''in''', or '''into'''): single game, replaced in
*'''i''' (or '''in''', or '''into'''): single game, replaced in
*'''o''' (or '''out'''): single game, replaced out
*'''o''' (or '''out'''): single game, replaced out
*'''x''' (or '''io'''): single game, replaced in and then out


===User header===
===User header===
Line 68: Line 50:
</pre>
</pre>


*Argument 2 is the username. '''Do not use with players like [[Me=Weird]], who creates an error in the template because of the equality sign in the user name.
*Argument 2 is the username. '''Remember: to use with players like [[Me=Weird]], replace the equality sign with the {{tl|{{=}}}} template.'''
*Argument 3 is the total Karma for this player. '''This does not auto-update.'''
*Argument 3 is the total Karma for this player. '''This does not auto-update.'''


===Single game===
===Single game===
Example:
Example:
{{Karma|i|14700|Newbie 988 - Apocalypse| on day 3}}
{{Karma|i|14700|Newbie 988 Apocalypse|on day 3}}
<pre>
<pre>
{{Karma|i|14700|Newbie 988 - Apocalypse| on day 3}}
{{Karma|i|14700|Newbie 988 Apocalypse|on day 3}}
</pre>
</pre>


Line 81: Line 63:
**'''i''' (or '''in''', or '''into'''): replaced in
**'''i''' (or '''in''', or '''into'''): replaced in
**'''o''' (or '''out'''): replaced out
**'''o''' (or '''out'''): replaced out
**'''x''' (or '''io'''): replaced in and then out
*Argument 2 is the number of the specific URL you wish to link to.
*Argument 2 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.
**Example: If you want to link to ''<nowiki>http://www.mafiascum.net/forum/viewtopic.php?t=</nowiki>'''14700''''', insert '''14700''' here.
*Argument 3 is the game name.
*Argument 3 is the game name.
*Argument 4 are comments, such as " on day 1" or " due to workload". ''ALWAYS use a leading space, or it will stick to the link!''
*Argument 4 are comments, such as "on Day 1", "on 2011-4-8", or "due to workload". ''Leading spaces are no longer needed.''
*The {{{rel}}} argument changes the way the link behaves:
**If the game has a wiki page or section, put the page/section name in {{{2}}} and additionally specify that {{{rel=p}}}.
**If you have the ID of the post where the mod announces the replacement, you can put the ID in {{{2}}} and additionally specify that {{{rel=p}}}.
**COMING SOON: If you are linking to a thread in the archives, specify that {{{rel=a}}}. Note that this does not work with post links.


''Note: if you want, you can use '''<nowiki>{{Karma|g|out}}</nowiki>''' instead of '''<nowiki>{{Karma|out}}</nowiki>''', too. This also applies to other Single Game karmas. (Actually, this syntax was needed in an earlier version of this template.)''
''Note: if you want, you can use '''<nowiki>{{Karma|g|o}}</nowiki>''' instead of '''<nowiki>{{Karma|o}}</nowiki>''', too. This also applies to other Single Game karmas. (Actually, this syntax was needed in an earlier version of this template.) However, the {{{rel}}} argument and <nowiki>{{Karma|x}}</nowiki> do not work with this syntax.''




[[Category:Templates]]</noinclude>
[[Category:Templates|{{PAGENAME}}]][[Category:Pimped by Fenhl]]</noinclude>

Latest revision as of 13:16, 29 August 2012

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. Each player in the list has one user header and for each game a game entry.

  • u (or user, or p, or player, or s, or scummer): user header
  • i (or in, or into): single game, replaced in
  • o (or out): single game, replaced out
  • x (or io): single game, replaced in and then out

User header

Example:

Fenhl (+2)
{{Karma|u|Fenhl|+2}}
  • Argument 2 is the username. Remember: to use with players like Me=Weird, replace the equality sign with the {{=}} template.
  • Argument 3 is the total Karma for this player. This does not auto-update.

Single game

Example:

{{Karma|i|14700|Newbie 988 — Apocalypse|on day 3}}
  • Argument 1 is one of the following, depending on whether the player replaced into or out of the game.
    • i (or in, or into): replaced in
    • o (or out): replaced out
    • x (or io): replaced in and then out
  • Argument 2 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 3 is the game name.
  • Argument 4 are comments, such as "on Day 1", "on 2011-4-8", or "due to workload". Leading spaces are no longer needed.
  • The {{{rel}}} argument changes the way the link behaves:
    • If the game has a wiki page or section, put the page/section name in {{{2}}} and additionally specify that {{{rel=p}}}.
    • If you have the ID of the post where the mod announces the replacement, you can put the ID in {{{2}}} and additionally specify that {{{rel=p}}}.
    • COMING SOON: If you are linking to a thread in the archives, specify that {{{rel=a}}}. Note that this does not work with post links.

Note: if you want, you can use {{Karma|g|o}} instead of {{Karma|o}}, too. This also applies to other Single Game karmas. (Actually, this syntax was needed in an earlier version of this template.) However, the {{{rel}}} argument and {{Karma|x}} do not work with this syntax.