Template:InfoCard: Difference between revisions
From IdleOn MMO Wiki
imported>Kiokurashi No edit summary |
Kiokurashi (talk | contribs) mNo edit summary |
||
(48 intermediate revisions by 5 users not shown) | |||
Line 10: | Line 10: | ||
|TierAquirements=Float | |TierAquirements=Float | ||
|DropChance=Float | |DropChance=Float | ||
}}</noinclude><!-- | }}</noinclude><!-- | ||
Line 21: | Line 20: | ||
|Bonus={{{bonus|0}}} | |Bonus={{{bonus|0}}} | ||
|TierAquirements={{{reqtier|0}}} | |TierAquirements={{{reqtier|0}}} | ||
|DropChance={{{dropchance | |DropChance={{{dropchance|{{#invoke:SourcesQuery|DropChance|item={{PAGENAME}}}}}}} | ||
}}<!-- First takes dropchance parameter. If that is empty then queries the Drop table for the value. | |||
}}<!-- First takes dropchance | |||
-->< | --><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>[[File:Star0.png|class=CardStar|link=]]</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> | ||
< | <data source="bonus"> | ||
< | <label>[[File:Star5.png|class=CardStar|link=]]</label> | ||
</ | <format>{{#expr:{{{bonus}}}*6}}</format> | ||
< | </data> | ||
< | </group> | ||
< | <header>{{Tooltip|Number of cards since unlocking previous tier required to unlock indicated tier.|Tier Requirements<sup>*</sup>|nocolor=true}}</header> | ||
< | <group name="CardTier" layout="horizontal"> | ||
< | <data source="reqtier"> | ||
< | <label>[[File:Star1.png|class=CardStar|link=]]</label> | ||
< | <format>{{InfoCard/TierReqForm|{{{reqtier}}}|0|{{PAGENAME}}}}</format> | ||
< | </data> | ||
</ | <data source="reqtier"> | ||
</ | <label>[[File:Star2.png|class=CardStar|link=]]</label> | ||
<format>{{InfoCard/TierReqForm|{{{reqtier}}}|1|{{PAGENAME}}}}</format> | |||
</data> | |||
<data source="reqtier"> | |||
<label>[[File:Star3.png|class=CardStar|link=]]</label> | |||
<format>{{InfoCard/TierReqForm|{{{reqtier}}}|2|{{PAGENAME}}}}</format> | |||
</data> | |||
<data source="reqtier"> | |||
<label>[[File:Star4.png|class=CardStar|link=]]</label> | |||
<format>{{InfoCard/TierReqForm|{{{reqtier}}}|3|{{PAGENAME}}}}</format> | |||
</data> | |||
<data source="reqtier"> | |||
<label>[[File:Star5.png|class=CardStar|link=]]</label> | |||
<format>{{Tooltip|Ruby Cards bonus from The Rift must be acquired in order to be able to get 6 Lv. Card. Or use 5 Star Cardifier from Gem Shop.|{{InfoCard/TierReqForm|{{{reqtier}}}|4|{{PAGENAME}}}}|nocolor=true|nospace=blahblahblah}}</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>[[File:{{{category}}}_Cardset.png|24px]] [[Cards#{{{category}}}|{{{category}}}]]</format> | |||
</data> | |||
<data source="order"> | |||
<label>Order</label> | |||
</data> | |||
<data source="source"> | |||
<label>Source</label> | |||
<default>{{#invoke:SourcesQuery|PullSourcesFromList|item={{PAGENAME}}}}</default> | |||
</data> | |||
</infobox>{{#seo: | |||
|image={{PAGENAME}}.png | |image={{PAGENAME}}.png | ||
|description=Category: {{{category}}} | |description=Category: {{{category}}} | ||
{{#if: {{{effect|}}}|Effect: {{{effect}}} }}{{#if: {{{bonus|}}}|Base Bonus: {{{bonus}}} }} | {{#if: {{{effect|}}}|Effect: {{{effect}}} }}{{#if: {{{bonus|}}}|Base Bonus: {{{bonus}}} }} | ||
}}[[Category:Cards]]</includeonly><noinclude> | }}{{{notes|}}}[[Category:Cards]]</includeonly><noinclude> | ||
Usage | Usage | ||
<pre>{{InfoCard | <pre>{{InfoCard | ||
Line 81: | Line 111: | ||
|bonus=example | |bonus=example | ||
|reqtier=Base requirement for increasing tiers (as listed in the code, which in some cases is 1.5) | |reqtier=Base requirement for increasing tiers (as listed in the code, which in some cases is 1.5) | ||
}}</pre> | }}</pre> | ||
[[category:infobox templates]] | [[category:infobox templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 02:49, 22 March 2024
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) }}