Template:DropTable: Difference between revisions
From IdleOn MMO Wiki
imported>Blackwolfe No edit summary |
imported>BigCoight mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{|class="wikitable sortable mw-collapsible" | ||
{|class="wikitable sortable mw-collapsible" | |||
|+{{#if:{{{description|}}}|{{{description}}}|Droptable for {{PAGENAME}}}} | |+{{#if:{{{description|}}}|{{{description}}}|Droptable for {{PAGENAME}}}} | ||
!Icon | !Icon | ||
Line 11: | Line 10: | ||
{{!}}{{coindisplay|input={{{coinQuantity}}}}} | {{!}}{{coindisplay|input={{{coinQuantity}}}}} | ||
{{!}} | {{!}} | ||
{{!}}1 in {{#expr:1/{{{coinChance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{coinChance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item1Name|}}}| | {{#if:{{{item1Name|}}}| | ||
Line 18: | Line 17: | ||
{{!}}{{{item1Name}}} | {{!}}{{{item1Name}}} | ||
{{!}}{{{item1Quantity}}} | {{!}}{{{item1Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item1Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item1Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item2Name|}}}| | {{#if:{{{item2Name|}}}| | ||
Line 25: | Line 24: | ||
{{!}}{{{item2Name}}} | {{!}}{{{item2Name}}} | ||
{{!}}{{{item2Quantity}}} | {{!}}{{{item2Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item2Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item2Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item3Name|}}}| | {{#if:{{{item3Name|}}}| | ||
Line 32: | Line 31: | ||
{{!}}{{{item3Name}}} | {{!}}{{{item3Name}}} | ||
{{!}}{{{item3Quantity}}} | {{!}}{{{item3Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item3Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item3Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item4Name|}}}| | {{#if:{{{item4Name|}}}| | ||
Line 39: | Line 38: | ||
{{!}}{{{item4Name}}} | {{!}}{{{item4Name}}} | ||
{{!}}{{{item4Quantity}}} | {{!}}{{{item4Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item4Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item4Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item5Name|}}}| | {{#if:{{{item5Name|}}}| | ||
Line 46: | Line 45: | ||
{{!}}{{{item5Name}}} | {{!}}{{{item5Name}}} | ||
{{!}}{{{item5Quantity}}} | {{!}}{{{item5Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item5Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item5Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item6Name|}}}| | {{#if:{{{item6Name|}}}| | ||
Line 53: | Line 52: | ||
{{!}}{{{item6Name}}} | {{!}}{{{item6Name}}} | ||
{{!}}{{{item6Quantity}}} | {{!}}{{{item6Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item6Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item6Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item7Name|}}}| | {{#if:{{{item7Name|}}}| | ||
Line 60: | Line 59: | ||
{{!}}{{{item7Name}}} | {{!}}{{{item7Name}}} | ||
{{!}}{{{item7Quantity}}} | {{!}}{{{item7Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item7Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item7Chance}}}}}|3}} | ||
}} | }} | ||
{{#if:{{{item8Name|}}}| | {{#if:{{{item8Name|}}}| | ||
Line 67: | Line 66: | ||
{{!}}{{{item8Name}}} | {{!}}{{{item8Name}}} | ||
{{!}}{{{item8Quantity}}} | {{!}}{{{item8Quantity}}} | ||
{{!}}1 in {{#expr:1/{{{item8Chance}}} | {{!}}1 in {{significant figures|{{#expr:1/{{{item8Chance}}}}}|3}} | ||
}}{{#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> | ||
</includeonly> | |||
<noinclude> | <noinclude> |
Revision as of 22:33, 25 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}} }}