Template:DropTable: Difference between revisions

From IdleOn MMO Wiki
imported>BigCoight
mNo edit summary
mNo edit summary
 
(52 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{|class="wikitable sortable mw-collapsible"
<includeonly>{{MainDrops|{{{item|{{{1}}}}}}|{{{source|{{PAGENAME}}}}}|{{{dropchance|{{{2|}}}}}}|{{{quantity|{{{3|}}}}}}}}<!--
|+{{#if:{{{description|}}}|{{{description}}}|Droptable for {{PAGENAME}}}}
!Icon
!Item
!Quantity
!Chance
{{#if:{{{coinQuantity|}}}|
        {{!}}-
        {{!}}
        {{!}}{{coindisplay|input={{{coinQuantity}}}}}
        {{!}}
        {{!}}{{chancedisplay|{{{coinChance}}}}}
}}
{{#if:{{{item1Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item1Icon}}}|50px|link={{{item1Name}}}]]
        {{!}}{{{item1Name}}}
        {{!}}{{{item1Quantity}}}
        {{!}}{{chancedisplay|{{{item1Chance}}}}}
}}
{{#if:{{{item2Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item2Icon}}}|50px|link={{{item2Name}}}]]
        {{!}}{{{item2Name}}}
        {{!}}{{{item2Quantity}}}
        {{!}}{{chancedisplay|{{{item2Chance}}}}}
}}
{{#if:{{{item3Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item3Icon}}}|50px|link={{{item3Name}}}]]
        {{!}}{{{item3Name}}}
        {{!}}{{{item3Quantity}}}
        {{!}}{{chancedisplay|{{{item3Chance}}}}}
}}
{{#if:{{{item4Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item4Icon}}}|50px|link={{{item4Name}}}]]
        {{!}}{{{item4Name}}}
        {{!}}{{{item4Quantity}}}
        {{!}}{{chancedisplay|{{{item4Chance}}}}}
}}
{{#if:{{{item5Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item5Icon}}}|50px|link={{{item5Name}}}]]
        {{!}}{{{item5Name}}}
        {{!}}{{{item5Quantity}}}
        {{!}}{{chancedisplay|{{{item5Chance}}}}}
}}
{{#if:{{{item6Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item6Icon}}}|50px|link={{{item6Name}}}]]
        {{!}}{{{item6Name}}}
        {{!}}{{{item6Quantity}}}
        {{!}}{{chancedisplay|{{{item6Chance}}}}}
}}
{{#if:{{{item7Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item7Icon}}}|50px|link={{{item7Name}}}]]
        {{!}}{{{item7Name}}}
        {{!}}{{{item7Quantity}}}
        {{!}}{{chancedisplay|{{{item7Chance}}}}}
}}
{{#if:{{{item8Name|}}}|
        {{!}}-
        {{!}}[[File:{{{item8Icon}}}|50px|link={{{item8Name}}}]]
        {{!}}{{{item8Name}}}
        {{!}}{{{item8Quantity}}}
        {{!}}{{chancedisplay|{{{item8Chance}}}}}
}}{{#if:{{{subtable1|}}}|{{{subtable1}}}}}{{#if:{{{subtable2|}}}|{{{subtable2}}}}}{{#if:{{{subtable3|}}}|{{{subtable3}}}}}{{#if:{{{subtable4|}}}|{{{subtable4}}}}}{{#if:{{{subtable5|}}}|{{{subtable5}}}}}{{#if:{{{subtable6|}}}|{{{subtable6}}}}}{{#if:{{{subtable7|}}}|{{{subtable7}}}}}{{#if:{{{subtable8|}}}|{{{subtable8}}}}}
|}</includeonly>


<noinclude>
-->{{#if:{{{hide|}}}||{{DropTable/row
|image={{{image|[[File:{{{1|{{{item}}}}}}.png|link={{{1|{{{item}}}}}}]]}}}
|itemtype={{{itemtype|Item}}}
|item={{{item|{{{1}}}}}}
|special={{{special|}}}
|quantity={{{quantity|{{{3|}}}}}}
|droprate={{{dropchance|{{{2|}}}}}}
|tabletype={{{tabletype|Base}}}
}}}}</includeonly><noinclude>
<pre>
<pre>
Used for putting a droptable on a page.
{{DropTable
Usage:
  |tablename= Name of the table being stored on that page. Unnecesary for Monster base loot (Ex: Slime Card on slimes).
{{DropTable
  |tabletype= Base, Rare, or Mega. Used to tell what level of table. Defaults to Base ('Monster' level)
|coinQuantity=example
  |source= The actual source of the drops. Defaults to Pagename. (Use for things like Chaotic bosses or Skill tables).
|coinChance=example
  |image= The image associate with the item. Generally handled by the templates.
|item<1-8>Name=example
  |item= The name of the item dropped.
|item<1-8>Quantity=example
  |itemtype= Item, Recipe, Talent, Coin, or Card. Used for handling the formating of rows. Defaults to Item.
|item<1-8>Icon=example
  |quantity= The quantity.
|item<1-8>Chance=example
  |dropchance= The chance, as a Float, for the item to drop.  
|subtable<1-5>={{DropTable<1-5>|chance=example}}
              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.)
Example:
}}
 
</pre></noinclude>
{{DropTable
|coinQuantity=1
|coinChance=0.5
|item1Name=Bogusitem
|item1Quantity=42
|item1Icon=Bogusitem.png
|item1Chance=0.7
|subtable1={{DropTable1|chance=0.05}}
}}
</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.)
 }}