You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Karma: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
| i | | i | ||
| in | | in | ||
| into=*<span style='color:#008b00;'>Replaced into '''{{plink|{{ #ifeq: {{{rel | | into=*<span style='color:#008b00;'>Replaced into '''{{ ifeq: {{{rel}}} | w |[[{{{2}}}|{{{3|{{{2}}}}}}]]|{{plink|{{ #ifeq: {{{rel}}} | p |p|t}}|{{{2}}}|{{{3|{{{2}}}}}}}}}}'''{{#if:{{{4|}}}| }}{{{4|}}}.</span> | ||
| o | | o | ||
| out=*<span style='color:#ac0000;'>Replaced out of '''{{plink|{{ #ifeq: {{{rel | | 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|}}}| }}{{{4|}}}.</span> | ||
| g | | g | ||
| game=*<span style='color:#{{ #switch:{{{2}}} | | game=*<span style='color:#{{ #switch:{{{2}}} | ||
Line 27: | Line 27: | ||
| o | | o | ||
| out=out of | | out=out of | ||
| {{{2}}}}} '''{{plink | | {{{2}}}}} '''{{plink|t|{{{3}}}|{{{4|{{{3}}}}}}}}'''{{#if:{{{5|}}}| }}{{{5|}}}.</span> | ||
| ====={{U|{{{1|}}}}} <span style='color:#{{ #switch:{{ #expr:{{{2}}}>0}}{{ #expr:{{{2}}}<0}} | | ====={{U|{{{1|}}}}} <span style='color:#{{ #switch:{{ #expr:{{{2}}}>0}}{{ #expr:{{{2}}}<0}} | ||
| 10=008b | | 10=008b | ||
Line 50: | Line 50: | ||
===Single game=== | ===Single game=== | ||
Example: | Example: | ||
{{Karma|i|14700|Newbie 988 | {{Karma|i|14700|Newbie 988 — Apocalypse|on day 3}} | ||
<pre> | <pre> | ||
{{Karma|i|14700|Newbie 988 | {{Karma|i|14700|Newbie 988 — Apocalypse|on day 3}} | ||
</pre> | </pre> | ||
Line 62: | Line 62: | ||
*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". ''Leading spaces are no longer needed.'' | *Argument 4 are comments, such as "on Day 1" or "due to workload". ''Leading spaces are no longer needed.'' | ||
*The {{{rel}}} argument changes the way | *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}}}. | **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}}}. | ||
''Note: if you want, you can use '''<nowiki>{{Karma|g| | ''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 does not work with this syntax.'' | ||
[[Category:Templates]][[Category:Fenhl's Templates]]</noinclude> | [[Category:Templates]][[Category:Fenhl's Templates]]</noinclude> |
Revision as of 00:07, 21 November 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. 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
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:
- Replaced into {{ ifeq: {{{rel}}} | w |Newbie 988 — Apocalypse|Newbie 988 — Apocalypse}} on day 3.
{{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
- 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" 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}}}.
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 does not work with this syntax.