Template:DropTable: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<noinclude><!--
<includeonly>{{MainDrops|{{{item|{{{1}}}}}}|{{{source|{{PAGENAME}}}}}|{{{dropchance|{{{2|}}}}}}|{{{quantity|{{{3|}}}}}}}}<!--
 
### Cargo Declare ###
-->{{#cargo_declare:_table=RareDropTables
  |TableName=List (,) of String
  |TableType=String (allowed values=Base,Rare,Mega;mandatory)
  |DropSourceEntity=String
  |DropImage=Wikitext
  |DropItem=Wikitext
  |ItemType=String (allowed values=Item,Recipe,Talent,Coin,Card,Divider)
  |DropQuantity=Integer
  |DropRate=Float (mandatory)
  |SpecialSource=Wikitext
}}</noinclude><!--
 
### Cargo Store ###
--><includeonly>{{#ifeq:{{#pos:{{PAGENAME}}|DropTable}}| |{{MainDrops|{{{item|{{{1}}}}}}|{{{source|{{PAGENAME}}}}}|{{{dropchance|{{{2|}}}}}}|{{{quantity|{{{3|}}}}}}}}|{{#cargo_store:_table=RareDropTables
  |TableName={{{tablename|}}}
  |TableType={{{tabletype|Base}}}
  |DropSourceEntity={{{source|{{PAGENAME}}}}}
  |DropImage={{{image|[[File:{{{1|{{{item}}}}}}.png|link={{{1|{{{item}}}}}}]]}}}
  |DropItem={{{item|{{{1}}}}}}
  |ItemType={{{itemtype|Item}}}
  |DropQuantity={{{quantity|{{{3|}}}}}}
  |DropRate={{{dropchance|{{{2|}}}}}}
  |SpecialSource={{{special|}}}
}}}}<!--
 


-->{{#if:{{{hide|}}}||{{DropTable/row
-->{{#if:{{{hide|}}}||{{DropTable/row

Latest revision as of 03:11, 24 March 2024

 {{DropTable
  |tablename= Name of the table being stored on that page. Unnecesary for Monster base loot (Ex: Slime Card on slimes).
  |tabletype= Base, Rare, or Mega. Used to tell what level of table. Defaults to Base ('Monster' level)
  |source= The actual source of the drops. Defaults to Pagename. (Use for things like Chaotic bosses or Skill tables).
  |image= The image associate with the item. Generally handled by the templates.
  |item= The name of the item dropped.
  |itemtype= Item, Recipe, Talent, Coin, or Card. Used for handling the formating of rows. Defaults to Item.
  |quantity= The quantity.
  |dropchance= The chance, as a Float, for the item to drop. 
               Note: This is for the table itself. Calculations of sub table rates are done by the template.
  |special= Used for optional indicators. 
           (Example: ([[Mutton]]) for cloudsound because it is only during the NPC's quest htat the item is available.)
 }}