Template:InfoCard: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) No edit summary |
Kiokurashi (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
### Cargo Store ### | ### Cargo Store ### | ||
--><includeonly>{{#if:{{{dropchance|}}}{{{cdc|}}}||{{#invoke:LuaVar|varDefine|name=chance|value= | --><includeonly>{{#if:{{{dropchance|}}}{{{cdc|}}}||{{#invoke:LuaVar|varDefine|name=chance|value={{#cargo_query:tables=DropTables|fields=DropRate|where=DropItem="Amarok Card"|order by=DropRate}}}}}}{{#cargo_store:_table=Cards | ||
|Title={{{title|{{PAGENAME}}}}} | |Title={{{title|{{PAGENAME}}}}} | ||
|CardOrder={{{order|-1}}} | |CardOrder={{{order|-1}}} | ||
Line 62: | Line 62: | ||
<dl> | <dl> | ||
<dt>Dropchance</dt> | <dt>Dropchance</dt> | ||
<dd>{{#if:{{{dropchance|}}}|{{chancedisplay|{{{dropchance}}}}}|{{#invoke:LuaVar|var|name=chance}}}}</dd> | <dd>{{#if:{{{dropchance|}}}|{{chancedisplay|{{{dropchance}}}}}|{{#invoke:Loops|formatCDC|value={{#invoke:LuaVar|var|name=chance}}}}}}</dd> | ||
<dt>Category</dt> | <dt>Category</dt> | ||
<dd>[[Cards#{{{category}}}|{{{category}}}]]</dd> | <dd>[[Cards#{{{category}}}|{{{category}}}]]</dd> |
Revision as of 07:44, 7 May 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 }}