Template:Adv: Difference between revisions

From A KoL Wiki
imported>Eleron
Added support for adventure gain ranges
imported>Flargen
mNo edit summary
Line 1: Line 1:
<includeonly><table align="center"><tr><td>[[image:hourglass.gif|Adventures]]</td><td>You {{{type|gain}}} {{#if:{{{min|}}}|{{floor|{{{min|}}}}}-{{ceiling|{{{max|}}}}}|{{{amount|some}}}}} [[Adventures|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|Adventure|Adventures}}]].</td></tr></table></includeonly><noinclude>
<includeonly><table align="center"><tr><td>[[image:hourglass.gif|Adventures]]</td><td>You {{{type|gain}}} {{#if:{{{min|}}}|<span title="Adventure range: {{{min}}}-{{{max}}}">{{floor|{{{min|}}}}}-{{ceiling|{{{max|}}}}}</span>|{{{amount|some}}}}} [[Adventures|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|Adventure|Adventures}}]].</td></tr></table></includeonly><noinclude>
{{Code2}}
{{Code2}}



Revision as of 20:12, 28 January 2009

{{Adv}}
<table align="center"><tr><td>[[image:hourglass.gif|Adventures]]</td><td>You {{{type|gain}}} {{#if:{{{min|}}}|<span title="Adventure range: {{{min}}}-{{{max}}}">{{floor|{{{min|}}}}}-{{ceiling|{{{max|}}}}}</span>|{{{amount|some}}}}} [[Adventures|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|Adventure|Adventures}}]].</td></tr></table>

Syntax

{{adv|amount=1}}
AdventuresYou gain 1 Adventure.
{{adv|min=22.0|max=28.4}}
AdventuresYou gain 22-29 Adventures.
{{adv|type=gain|amount=2}}
AdventuresYou gain 2 Adventures.
{{adv|amount=5-10}}
AdventuresYou gain 5-10 Adventures.
{{adv}}
AdventuresYou gain some Adventures.
{{adv|type=lose|amount=1}}
AdventuresYou lose 1 Adventure.
{{adv|type=lose|amount=3}}
AdventuresYou lose 3 Adventures.
{{adv|type=lose|amount=10-15}}
AdventuresYou lose 10-15 Adventures.
{{adv|type=lose}}
AdventuresYou lose some Adventures.