Template:InfoCard: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by 2 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 81: Line 79:
<data source="reqtier">
<data source="reqtier">
<label>[[File:Star5.png|class=CardStar|link=]]</label>
<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}}</format>
<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 98: 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 113: 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)
}}