Template:DropTable: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
No edit summary
mNo edit summary
 
(78 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<div class="droptable">
<includeonly>{{MainDrops|{{{item|{{{1}}}}}}|{{{source|{{PAGENAME}}}}}|{{{dropchance|{{{2|}}}}}}|{{{quantity|{{{3|}}}}}}}}<!--
<table style="width:100%;">
 
    <caption>{{{caption}}}
-->{{#if:{{{hide|}}}||{{DropTable/row
    </caption>
|image={{{image|[[File:{{{1|{{{item}}}}}}.png|link={{{1|{{{item}}}}}}]]}}}
    <tr>
|itemtype={{{itemtype|Item}}}
        <th class="subheader" style="width:60%;">Item</th>
|item={{{item|{{{1}}}}}}
        <th class="subheader" style="width:20%;">Quantity</th>
|special={{{special|}}}
        <th class="subheader" style="width:20%;">Chance</th>
|quantity={{{quantity|{{{3|}}}}}}
    </tr>
|droprate={{{dropchance|{{{2|}}}}}}
    {{#if:{{{coinQuantiy|}}}|<tr>
|tabletype={{{tabletype|Base}}}
        <td>[[File:idlCoin.png|50px]]Coins</td>
}}}}</includeonly><noinclude>
        <td style = "text-align: center;">{{{coinQuantiy}}}</td>
<pre>
        <td style = "text-align: right;">{{{coinChance}}}</td>
{{DropTable
    </tr>}}
  |tablename= Name of the table being stored on that page. Unnecesary for Monster base loot (Ex: Slime Card on slimes).
    {{#if:{{{item1Name|}}}|<tr>
  |tabletype= Base, Rare, or Mega. Used to tell what level of table. Defaults to Base ('Monster' level)
        <td>[[File:{{{item1Icon}}}|50px]]{{{item1Name}}}</td>
  |source= The actual source of the drops. Defaults to Pagename. (Use for things like Chaotic bosses or Skill tables).
        <td style = "text-align: center;">{{{item1Quantity}}}</td>
  |image= The image associate with the item. Generally handled by the templates.
        <td style = "text-align: right;">{{{item1Chance}}}</td>
  |item= The name of the item dropped.
    </tr>}}
  |itemtype= Item, Recipe, Talent, Coin, or Card. Used for handling the formating of rows. Defaults to Item.
    {{#if:{{{item2Name|}}}|<tr>
  |quantity= The quantity.
        <td>[[File:{{{item2Icon}}}|50px]]{{{item2Name}}}</td>
  |dropchance= The chance, as a Float, for the item to drop.
        <td style = "text-align: center;">{{{item2Quantity}}}</td>
              Note: This is for the table itself. Calculations of sub table rates are done by the template.
        <td style = "text-align: right;">{{{item2Chance}}}</td>
  |special= Used for optional indicators.
    </tr>}}
          (Example: ([[Mutton]]) for cloudsound because it is only during the NPC's quest htat the item is available.)
    {{#if:{{{item3Name|}}}|<tr>
}}
        <td>[[File:{{{item3Icon}}}|50px]]{{{item3Name}}}</td>
</pre></noinclude>
        <td style = "text-align: center;">{{{item3Quantity}}}</td>
        <td style = "text-align: right;">{{{item3Chance}}}</td>
    </tr>}}
    {{#if:{{{item4Name|}}}|<tr>
        <td>[[File:{{{item4Icon}}}|50px]]{{{item4Name}}}</td>
        <td style = "text-align: center;">{{{item4Quantity}}}</td>
        <td style = "text-align: right;">{{{item4Chance}}}</td>
    </tr>}}
    {{#if:{{{item5Name|}}}|<tr>
        <td>[[File:{{{item5Icon}}}|50px]]{{{item5Name}}}</td>
        <td style = "text-align: center;">{{{item5Quantity}}}</td>
        <td style = "text-align: right;">{{{item5Chance}}}</td>
    </tr>}}
    {{#if:{{{item6Name|}}}|<tr>
        <td>[[File:{{{item6Icon}}}|50px]]{{{item6Name}}}</td>
        <td style = "text-align: center;">{{{item6Quantity}}}</td>
        <td style = "text-align: right;">{{{item6Chance}}}</td>
    </tr>}}
    {{#if:{{{item7Name|}}}|<tr>
        <td>[[File:{{{item7Icon}}}|50px]]{{{item7Name}}}</td>
        <td style = "text-align: center;">{{{item7Quantity}}}</td>
        <td style = "text-align: right;">{{{item7Chance}}}</td>
    </tr>}}
    {{#if:{{{item8Name|}}}|<tr>
        <td>[[File:{{{item8Icon}}}|50px]]{{{item8Name}}}</td>
        <td style = "text-align: center;">{{{item8Quantity}}}</td>
        <td style = "text-align: right;">{{{item8Chance}}}</td>
    </tr>}}
</div>

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