Template:InfoCard: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 10: Line 10:
   |TierAquirements=Float
   |TierAquirements=Float
   |DropChance=Float
   |DropChance=Float
  |Source=Wikitext
}}</noinclude><!--
}}</noinclude><!--


Line 22: Line 21:
   |TierAquirements={{{reqtier|0}}}
   |TierAquirements={{{reqtier|0}}}
   |DropChance={{{dropchance|{{#invoke:SourcesQuery|DropChance|item={{PAGENAME}}}}}}}
   |DropChance={{{dropchance|{{#invoke:SourcesQuery|DropChance|item={{PAGENAME}}}}}}}
  |Source={{#invoke:SourcesQuery|Main|item={{PAGENAME}}}}
}}<!-- First takes dropchance parameter. If that is empty then queries the Drop table for the value.  
}}<!-- First takes dropchance parameter. If that is empty then queries the Drop table for the value.  


Line 38: Line 36:
     <group name="CardBonus" layout="horizontal">
     <group name="CardBonus" layout="horizontal">
<data source="bonus">
<data source="bonus">
<label>Base</label>
<label>[[File:Star0.png|class=CardStar|link=]]</label>
</data>
</data>
<data source="bonus">
<data source="bonus">
Line 55: Line 53:
<label>[[File:Star4.png|class=CardStar|link=]]</label>
<label>[[File:Star4.png|class=CardStar|link=]]</label>
<format>{{#expr:{{{bonus}}}*5}}</format>
<format>{{#expr:{{{bonus}}}*5}}</format>
</data>
<data source="bonus">
<label>[[File:Star5.png|class=CardStar|link=]]</label>
<format>{{#expr:{{{bonus}}}*6}}</format>
</data>
</data>
</group>
</group>
     <header>Tier Requirements</header>
     <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">
     <group name="CardTier" layout="horizontal">
<data source="reqtier">
<data source="reqtier">
<label>[[File:Star1.png|class=CardStar|link=]]</label>
<label>[[File:Star1.png|class=CardStar|link=]]</label>
<format>{{#expr: ceil({{{reqtier}}}) }}</format>
<format>{{InfoCard/TierReqForm|{{{reqtier}}}|0|{{PAGENAME}}}}</format>
</data>
</data>
<data source="reqtier">
<data source="reqtier">
<label>[[File:Star2.png|class=CardStar|link=]]</label>
<label>[[File:Star2.png|class=CardStar|link=]]</label>
<format>{{#expr: ceil({{{reqtier}}}*3) }}</format>
<format>{{InfoCard/TierReqForm|{{{reqtier}}}|1|{{PAGENAME}}}}</format>
</data>
</data>
<data source="reqtier">
<data source="reqtier">
<label>[[File:Star3.png|class=CardStar|link=]]</label>
<label>[[File:Star3.png|class=CardStar|link=]]</label>
<format>{{#expr: ceil({{{reqtier}}}*5) }}</format>
<format>{{InfoCard/TierReqForm|{{{reqtier}}}|2|{{PAGENAME}}}}</format>
</data>
</data>
<data source="reqtier">
<data source="reqtier">
<label>[[File:Star4.png|class=CardStar|link=]]</label>
<label>[[File:Star4.png|class=CardStar|link=]]</label>
<format>{{#expr: ceil({{{reqtier}}}*16) }}</format>
<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>
</data>
</group>
</group>
Line 83: Line 89:
     <data source="category">
     <data source="category">
<label>Category</label>
<label>Category</label>
         <format>[[Cards#{{{category}}}|{{{category}}}]]</format>
         <format>[[File:{{{category}}}_Cardset.png|24px]] [[Cards#{{{category}}}|{{{category}}}]]</format>
</data>
</data>
     <data source="order">
     <data source="order">
Line 90: Line 96:
     <data source="source">
     <data source="source">
<label>Source</label>
<label>Source</label>
         <default>{{#invoke:LuaVar|var|name=Sources}}</default>
         <default>{{#invoke:SourcesQuery|PullSourcesFromList|item={{PAGENAME}}}}</default>
</data>
</data>
</infobox>{{#seo:
</infobox>{{#seo:
Line 105: 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)
|source=example
}}</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)
}}