Template:PvP

From TheKolWiki
Jump to: navigation, search
{{PvP}}
<table align="center"><tr><td>[[File:swords.gif|PvP Fights]]</td><td>You {{{type|gain}}} {{#if:{{{min|}}}|<span title="PvP Fights range: {{{min}}}-{{{max}}}">{{#if:{{{max|}}}|{{#ifexpr:{{{min}}}<{{{max}}}|{{#expr: floor {{{min}}}}}-{{#expr: ceil {{{max}}}}}|{{#ifexpr:{{{min}}}={{{max}}}|{{{min}}}|{{#expr: floor {{{max}}}}}-{{#expr: ceil {{{min}}}}}}}}}|{{{min}}}}}</span>|{{#if:{{{max|}}}|{{{max}}}|{{{amount|some}}}}}}} [[Extra PvP Fights|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|PvP Fight|PvP Fights}}]]. {{#if:{{{min|}}}|{{#if:{{{max|}}}|(avg. {{#expr: ({{{min}}}+{{{max}}}) * 0.5}})|}}|}}</td></tr></table>

Syntax

This template supports a number of ways of displaying PvP Fight gains and losses.

  • {{PvP|min=1|max=20}}
PvP FightsYou gain 1-20 PvP Fights. (avg. 10.5)
  • {{PvP|min=2|max=2}}
PvP FightsYou gain 2 PvP Fights. (avg. 2)
  • {{PvP|min=10}}
PvP FightsYou gain 10 PvP Fights.
  • {{PvP}}
PvP FightsYou gain some PvP Fights.
  • {{PvP|amount=10-12}}
PvP FightsYou gain 10-12 PvP Fights.
  • {{PvP|amount=10-12|type=lose}}
PvP FightsYou lose 10-12 PvP Fights.
  • {{PvP|min=1|max=20|type=lose}}
PvP FightsYou lose 1-20 PvP Fights. (avg. 10.5)
  • {{PvP|min=2|max=2|type=lose}}
PvP FightsYou lose 2 PvP Fights. (avg. 2)