Template:InfoCard: Difference between revisions
From IdleOn MMO Wiki
imported>Blackwolfe (Created page with "<includeonly> <div class="infobox"> <table><th class="header">{{PAGENAME}}</th></table> <div class="infobox-image">[[File:{{PAGENAME}} card.png]]</div> <div style="font-size:...") |
Kiokurashi (talk | contribs) mNo edit summary |
||
(116 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
< | <noinclude><!-- | ||
< | |||
<noinclude> | ### Cargo Declare ### | ||
-->{{#cargo_declare:_table=Cards | |||
|Title=String | |||
|CardOrder=Integer | |||
|Category=String (mandatory) | |||
|Effect=String | |||
|Bonus=Float | |||
|TierAquirements=Float | |||
|DropChance=Float | |||
}}</noinclude><!-- | |||
### Cargo Store ### | |||
--><includeonly>{{#cargo_store:_table=Cards | |||
|Title={{{title|{{PAGENAME}}}}} | |||
|CardOrder={{{order|-1}}} | |||
|Category={{{category|}}} | |||
|Effect={{{effect|Gosh, a card without an Effect 2%}}} | |||
|Bonus={{{bonus|0}}} | |||
|TierAquirements={{{reqtier|0}}} | |||
|DropChance={{{dropchance|{{#invoke:SourcesQuery|DropChance|item={{PAGENAME}}}}}}} | |||
}}<!-- First takes dropchance parameter. If that is empty then queries the Drop table for the value. | |||
--><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 | |||
|description=Category: {{{category}}} | |||
{{#if: {{{effect|}}}|Effect: {{{effect}}} }}{{#if: {{{bonus|}}}|Base Bonus: {{{bonus}}} }} | |||
}}{{{notes|}}}[[Category:Cards]]</includeonly><noinclude> | |||
Usage | Usage | ||
<pre>{{ | <pre>{{InfoCard | ||
|title=example | |||
|order=example | |||
|category=example | |category=example | ||
|effect=example | |effect=example | ||
| | |bonus=example | ||
| | |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) }}