Template:InfoCard: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
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 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:

Revision as of 02:47, 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)
|source=example
}}