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
[edit]
{{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}}
![]() | You gain 1 Adventure. |
{{adv|min=22.0|max=28.4}}
![]() | You gain 22-29 Adventures. |
{{adv|type=gain|amount=2}}
![]() | You gain 2 Adventures. |
{{adv|amount=5-10}}
![]() | You gain 5-10 Adventures. |
{{adv}}
![]() | You gain some Adventures. |
{{adv|type=lose|amount=1}}
![]() | You lose 1 Adventure. |
{{adv|type=lose|amount=3}}
![]() | You lose 3 Adventures. |
{{adv|type=lose|amount=10-15}}
![]() | You lose 10-15 Adventures. |
{{adv|type=lose}}
![]() | You lose some Adventures. |