Template:InfoCard: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
No edit summary
Line 23: Line 23:
   |TierAquirements={{{reqtier|0}}}
   |TierAquirements={{{reqtier|0}}}
   |DropChance={{{dropchance|{{{cdc|{{#invoke:LuaVar|var|name=chance}}}}}}}}
   |DropChance={{{dropchance|{{{cdc|{{#invoke:LuaVar|var|name=chance}}}}}}}}
   |Source={{{source|Limited Event}}}
   |Source={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}}
}}<!-- First takes dropchance parameter. If that's empty checks for cdc parameter. If that is empty then queries the Drop table for the value. Finally if all others fail, defaults to 999.0 so that there will be an obvious value to correct.
}}<!-- First takes dropchance parameter. If that's empty checks for cdc parameter. If that is empty then queries the Drop table for the value. Finally if all others fail, defaults to 999.0 so that there will be an obvious value to correct.


Line 67: Line 67:
<dd>[[Cards#{{{category}}}|{{{category}}}]]</dd>
<dd>[[Cards#{{{category}}}|{{{category}}}]]</dd>
<dt>Source</dt>
<dt>Source</dt>
<dd style="display:inline;">{{{source|Unobtainable}}}</dd>
<dd style="display:inline;">{{#invoke:LuaVar|var|name=Sources}}</dd>
</dl>
</dl>
</div>{{#seo:
</div>{{#seo:

Revision as of 14:28, 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
}}