Template:DropTable: Difference between revisions

From IdleOn MMO Wiki
imported>Blackwolfe
No edit summary
imported>Blackwolfe
No edit summary
Line 1: Line 1:
<includeonly>
{|class="wikitable sortable mw-collapsible"
{|class="wikitable sortable mw-collapsible"
|+Droptable for {{PAGENAME}}
|+Droptable for {{PAGENAME}}
Line 69: Line 70:
}}{{#if:{{{subtable1|}}}|{{{subtable1}}}}}{{#if:{{{subtable2|}}}|{{{subtable2}}}}}{{#if:{{{subtable3|}}}|{{{subtable3}}}}}{{#if:{{{subtable4|}}}|{{{subtable4}}}}}{{#if:{{{subtable5|}}}|{{{subtable5}}}}}{{#if:{{{subtable6|}}}|{{{subtable6}}}}}{{#if:{{{subtable7|}}}|{{{subtable7}}}}}{{#if:{{{subtable8|}}}|{{{subtable8}}}}}
}}{{#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>
<pre>
Used for putting a droptable on a page.
Usage:
{{DropTable
|coinQuantity=example
|coinChance=example
|item<1-8>Name=example
|item<1-8>Quantity=example
|item<1-8>Icon=example
|item<1-8>Chance=example
|subtable<1-5>={{DropTable<1-5>|chance=example}}
}}
Example:
{{DropTable
|coinQuantity=1
|coinChance=0.5
|item1Name=Bogusitem
|item1Quantity=42
|item1Icon=Bogusitem.png
|item1Chance=0.7
|subtable1={{DropTable1|chance=0.05}}
}}
</pre>
</noinclude>

Revision as of 18:02, 24 November 2020


Used for putting a droptable on a page. 
Usage:
{{DropTable
|coinQuantity=example
|coinChance=example
|item<1-8>Name=example
|item<1-8>Quantity=example
|item<1-8>Icon=example
|item<1-8>Chance=example
|subtable<1-5>={{DropTable<1-5>|chance=example}}
}}

Example: 

{{DropTable
|coinQuantity=1
|coinChance=0.5
|item1Name=Bogusitem
|item1Quantity=42
|item1Icon=Bogusitem.png
|item1Chance=0.7
|subtable1={{DropTable1|chance=0.05}}
}}