Template:Adv: Difference between revisions
From A KoL Wiki
imported>Eleron Roll was fixed |
imported>Quietust mNo edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table align="center"><tr><td>[[ | <includeonly><table align="center"><tr><td>[[File:hourglass.gif|Adventures]]</td><td>You {{{type|gain}}} {{#if:{{{min|}}}|<span title="Adventure 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}}}}}}} [[Adventures|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|Adventure|Adventures}}]]. {{#if:{{{min|}}}|{{#if:{{{max|}}}|(avg. {{#expr: ({{{min}}}+{{{max}}}) * 0.5}})|}}|}}</td></tr></table></includeonly><noinclude> | ||
{{Code2}} | {{prot_high-use}}{{Code2}} | ||
==Syntax== | ==Syntax== | ||
This template supports a number of ways of displaying adventure gains and losses. | |||
*<nowiki>{{adv|min=1|max=20}}</nowiki> | |||
{{adv|min=1|max=20}} | |||
{{adv|min= | *<nowiki>{{adv|min=2|max=2}}</nowiki> | ||
{{adv|min=2|max=2}} | |||
{{adv| | *<nowiki>{{adv|min=10}}</nowiki> | ||
{{adv|min=10}} | |||
{{adv| | *<nowiki>{{adv}}</nowiki> | ||
{{adv}} | {{adv}} | ||
*<nowiki>{{adv|amount=10-12}}</nowiki> | |||
{{adv | {{adv|amount=10-12}} | ||
*<nowiki>{{adv|amount=10-12|type=lose}}</nowiki> | |||
{{adv|type=lose | {{adv|amount=10-12|type=lose}} | ||
*<nowiki>{{adv|min=1|max=20|type=lose}}</nowiki> | |||
{{adv|type=lose | {{adv|min=1|max=20|type=lose}} | ||
*<nowiki>{{adv|min=2|max=2|type=lose}}</nowiki> | |||
{{adv|type=lose}} | {{adv|min=2|max=2|type=lose}} | ||
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude> | [[Category:Standardization Templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 15:23, 17 January 2012
[edit]
{{Adv}}
<table align="center"><tr><td>[[File:hourglass.gif|Adventures]]</td><td>You {{{type|gain}}} {{#if:{{{min|}}}|<span title="Adventure 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}}}}}}} [[Adventures|{{plural:{{#ifeq:{{{amount|some}}}|1|1|2}}|Adventure|Adventures}}]]. {{#if:{{{min|}}}|{{#if:{{{max|}}}|(avg. {{#expr: ({{{min}}}+{{{max}}}) * 0.5}})|}}|}}</td></tr></table>
Syntax
This template supports a number of ways of displaying adventure gains and losses.
- {{adv|min=1|max=20}}
![]() | You gain 1-20 Adventures. (avg. 10.5) |
- {{adv|min=2|max=2}}
![]() | You gain 2 Adventures. (avg. 2) |
- {{adv|min=10}}
![]() | You gain 10 Adventures. |
- {{adv}}
![]() | You gain some Adventures. |
- {{adv|amount=10-12}}
![]() | You gain 10-12 Adventures. |
- {{adv|amount=10-12|type=lose}}
![]() | You lose 10-12 Adventures. |
- {{adv|min=1|max=20|type=lose}}
![]() | You lose 1-20 Adventures. (avg. 10.5) |
- {{adv|min=2|max=2|type=lose}}
![]() | You lose 2 Adventures. (avg. 2) |