Template:InfoCard: Difference between revisions
From IdleOn MMO Wiki
Kiokurashi (talk | contribs) No edit summary |
mNo edit summary |
||
Line 25: | Line 25: | ||
}}<!-- 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. | ||
-->< | --><infobox> | ||
< | <title source="title"> | ||
< | <default>{{PAGENAME}}</default> | ||
</title> | |||
< | <image source="image"> | ||
< | <default>[[File:{{PAGENAME}}.png]]</default> | ||
< | </image> | ||
</ | <header>Card Bonus</header> | ||
< | <data source="effect"> | ||
< | <label>Effect</label> | ||
< | </data> | ||
<group name="CardBonus" layout="horizontal"> | |||
< | <data source="bonus"> | ||
<label>Base</label> | |||
< | </data> | ||
< | <data source="bonus"> | ||
< | <label>[[File:Star1.png|class=CardStar|link=]]</label> | ||
< | <format>{{#expr:{{{bonus}}}*2}}</format> | ||
< | </data> | ||
< | <data source="bonus"> | ||
< | <label>[[File:Star2.png|class=CardStar|link=]]</label> | ||
< | <format>{{#expr:{{{bonus}}}*3}}</format> | ||
</ | </data> | ||
< | <data source="bonus"> | ||
< | <label>[[File:Star3.png|class=CardStar|link=]]</label> | ||
< | <format>{{#expr:{{{bonus}}}*4}}</format> | ||
< | </data> | ||
< | <data source="bonus"> | ||
< | <label>[[File:Star4.png|class=CardStar|link=]]</label> | ||
< | <format>{{#expr:{{{bonus}}}*5}}</format> | ||
< | </data> | ||
< | </group> | ||
< | <header>Tier Requirements</header> | ||
</ | <group name="CardTier" layout="horizontal"> | ||
< | <data source="reqtier"> | ||
< | <label>[[File:Star1.png|class=CardStar|link=]]</label> | ||
< | <format>{{#expr: ceil({{{reqtier}}}) }}</format> | ||
< | </data> | ||
< | <data source="reqtier"> | ||
< | <label>[[File:Star2.png|class=CardStar|link=]]</label> | ||
< | <format>{{#expr: ceil({{{reqtier}}}*3) }}</format> | ||
< | </data> | ||
</ | <data source="reqtier"> | ||
</ | <label>[[File:Star3.png|class=CardStar|link=]]</label> | ||
<format>{{#expr: ceil({{{reqtier}}}*5) }}</format> | |||
</data> | |||
<data source="reqtier"> | |||
<label>[[File:Star4.png|class=CardStar|link=]]</label> | |||
<format>{{#expr: ceil({{{reqtier}}}*16) }}</format> | |||
</data> | |||
</group> | |||
<header>Other Details</header> | |||
<data source="dropchance"> | |||
<label>Dropchance</label> | |||
<format>{{Chancedisplay|{{{dropchance|{{#invoke:LuaVar|var|name=Chance}}}}}}}</format> | |||
</data> | |||
<data source="category"> | |||
<label>Category</label> | |||
<format>[[Cards#{{{category}}}|{{{category}}}]]</format> | |||
</data> | |||
<data source="order"> | |||
<label>Order</label> | |||
</data> | |||
<data source="source"> | |||
<label>Source</label> | |||
<default>{{#invoke:LuaVar|var|name=Sources}}</default> | |||
</data> | |||
</infobox>{{#seo: | |||
|image={{PAGENAME}}.png | |image={{PAGENAME}}.png | ||
|description=Category: {{{category}}} | |description=Category: {{{category}}} |
Revision as of 05:03, 3 February 2023
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 }}