Template:DropTable: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
(Created page with "<div class="droptable"> <div class="droptable-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="droptable-image">[[File:{{{image}}}|300px]]</div>}} <table>{...")
 
mNo edit summary
 
(111 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<div class="droptable">
<includeonly>{{MainDrops|{{{item|{{{1}}}}}}|{{{source|{{PAGENAME}}}}}|{{{dropchance|{{{2|}}}}}}|{{{quantity|{{{3|}}}}}}}}<!--
<div class="droptable-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="droptable-image">[[File:{{{image}}}|300px]]</div>}}
-->{{#if:{{{hide|}}}||{{DropTable/row
<table>{{#if:{{{param1|}}}|<tr>
|image={{{image|[[File:{{{1|{{{item}}}}}}.png|link={{{1|{{{item}}}}}}]]}}}
    <th>Parameter 1</th>
|itemtype={{{itemtype|Item}}}
    <td>{{{param1}}}</td>
|item={{{item|{{{1}}}}}}
</tr>}}{{#if:{{{param2|}}}|<tr>
|special={{{special|}}}
    <th>Parameter 2</th>
|quantity={{{quantity|{{{3|}}}}}}
    <td>{{{param2}}}</td>
|droprate={{{dropchance|{{{2|}}}}}}
</tr>}}{{#if:{{{param3|}}}|<tr>
|tabletype={{{tabletype|Base}}}
    <th>Parameter 3</th>
}}}}</includeonly><noinclude>
    <td>{{{param3}}}</td>
<pre>
</tr>}}{{#if:{{{param4|}}}|<tr>
{{DropTable
    <th>Parameter 4</th>
  |tablename= Name of the table being stored on that page. Unnecesary for Monster base loot (Ex: Slime Card on slimes).
    <td>{{{param4}}}</td>
  |tabletype= Base, Rare, or Mega. Used to tell what level of table. Defaults to Base ('Monster' level)
</tr>}}{{#if:{{{param5|}}}|<tr>
  |source= The actual source of the drops. Defaults to Pagename. (Use for things like Chaotic bosses or Skill tables).
    <th>Parameter 5</th>
  |image= The image associate with the item. Generally handled by the templates.
    <td>{{{param5}}}</td>
  |item= The name of the item dropped.
</tr>}}</table>
  |itemtype= Item, Recipe, Talent, Coin, or Card. Used for handling the formating of rows. Defaults to Item.
</div>
  |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.)
}}
</pre></noinclude>

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.)
 }}