Template:InfoCard: Difference between revisions

From IdleOn MMO Wiki
No edit summary
No edit summary
Line 59: Line 59:
<dd>{{#if:{{{reqtier|}}}|{{#expr: ceil({{{reqtier}}}*16) }}}}</dd>
<dd>{{#if:{{{reqtier|}}}|{{#expr: ceil({{{reqtier}}}*16) }}}}</dd>
</dl>
</dl>
<div class="SubHeader">Bonuses</div>
<div class="SubHeader">Other Details</div>
<dl>
<dl>
<dt>Dropchance</dt>
<dt>Dropchance</dt>
<dd>{{#if:{{{dropchance|{{#invoke:LuaVar|var|name=Chance}}}}}|{{chancedisplay|{{{dropchance|{{#invoke:LuaVar|var|name=Chance}}}}}}}|}}</dd>
<dd>{{#if:{{{dropchance|{{#invoke:LuaVar|var|name=Chance}}}}}|}}</dd>
<dt>Category</dt>
<dt>Category</dt>
<dd>[[Cards#{{{category}}}|{{{category}}}]]</dd>
<dd>[[Cards#{{{category}}}|{{{category}}}]]</dd>
Line 72: Line 72:
|description=Category:&nbsp;{{{category}}}
|description=Category:&nbsp;{{{category}}}
{{#if: {{{effect|}}}|Effect: {{{effect}}}&#10;}}{{#if: {{{bonus|}}}|Base Bonus: {{{bonus}}}&#10;}}
{{#if: {{{effect|}}}|Effect: {{{effect}}}&#10;}}{{#if: {{{bonus|}}}|Base Bonus: {{{bonus}}}&#10;}}
}}{{{notes|}}}[[Category:Cards]]</includeonly><noinclude>
}}{{{notes|}}}{{chancedisplay|{{{dropchance|{{#invoke:LuaVar|var|name=Chance}}}}}}}[[Category:Cards]]</includeonly><noinclude>
Usage
Usage
<pre>{{InfoCard
<pre>{{InfoCard

Revision as of 20:33, 30 December 2022

This template defines the table "Cards". View table. Usage

{{InfoCard
|title=example
|order=example
|category=example
|effect=example
|bonus=example
|reqtier=Base requirement for increasing tiers (as listed in the code, which in some cases is 1.5)
|source=example
}}