Template:Adv: Difference between revisions

From A KoL Wiki
imported>GalenKemensen
Fixed an error due to plural's parsing of 'x-y' strings beginning with 1
imported>Eleron
Added support for adventure gain ranges
Line 1: Line 1:
<includeonly><table align="center"><tr><td>[[image:hourglass.gif|Adventures]]</td><td>You {{{type|gain}}} {{{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|}}}|{{floor|{{{min|}}}}}-{{ceiling|{{{max|}}}}}|{{{amount|some}}}}} [[Adventures|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|Adventure|Adventures}}]].</td></tr></table></includeonly><noinclude>
{{Code2}}
{{Code2}}


Line 5: Line 5:
  <nowiki>{{adv|amount=1}}</nowiki>
  <nowiki>{{adv|amount=1}}</nowiki>
{{adv|amount=1}}
{{adv|amount=1}}
<nowiki>{{adv|min=22.0|max=28.4}}</nowiki>
{{adv|min=22.0|max=28.4}}
  <nowiki>{{adv|type=gain|amount=2}}</nowiki>
  <nowiki>{{adv|type=gain|amount=2}}</nowiki>
{{adv|type=gain|amount=2}}
{{adv|type=gain|amount=2}}

Revision as of 20:02, 28 January 2009

{{Adv}}
<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>

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.