Template:DropTable: Difference between revisions
From IdleOn MMO Wiki
imported>BigCoight mNo edit summary |
imported>BigCoight mNo edit summary |
||
Line 10: | Line 10: | ||
{{!}}{{coindisplay|input={{{coinQuantity}}}}} | {{!}}{{coindisplay|input={{{coinQuantity}}}}} | ||
{{!}} | {{!}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{coinChance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{coinChance}}}}}|3}}|{{{coinChance}}}}} | ||
}} | }} | ||
{{#if:{{{item1Name|}}}| | {{#if:{{{item1Name|}}}| | ||
Line 17: | Line 17: | ||
{{!}}{{{item1Name}}} | {{!}}{{{item1Name}}} | ||
{{!}}{{{item1Quantity}}} | {{!}}{{{item1Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item1Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item1Chance}}}}}|3}}|{{{item1Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item2Name|}}}| | {{#if:{{{item2Name|}}}| | ||
Line 24: | Line 24: | ||
{{!}}{{{item2Name}}} | {{!}}{{{item2Name}}} | ||
{{!}}{{{item2Quantity}}} | {{!}}{{{item2Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item2Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item2Chance}}}}}|3}}|{{{item2Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item3Name|}}}| | {{#if:{{{item3Name|}}}| | ||
Line 31: | Line 31: | ||
{{!}}{{{item3Name}}} | {{!}}{{{item3Name}}} | ||
{{!}}{{{item3Quantity}}} | {{!}}{{{item3Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item3Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item3Chance}}}}}|3}}|{{{item3Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item4Name|}}}| | {{#if:{{{item4Name|}}}| | ||
Line 38: | Line 38: | ||
{{!}}{{{item4Name}}} | {{!}}{{{item4Name}}} | ||
{{!}}{{{item4Quantity}}} | {{!}}{{{item4Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item4Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item4Chance}}}}}|3}}|{{{item4Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item5Name|}}}| | {{#if:{{{item5Name|}}}| | ||
Line 45: | Line 45: | ||
{{!}}{{{item5Name}}} | {{!}}{{{item5Name}}} | ||
{{!}}{{{item5Quantity}}} | {{!}}{{{item5Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item5Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item5Chance}}}}}|3}}|{{{item5Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item6Name|}}}| | {{#if:{{{item6Name|}}}| | ||
Line 52: | Line 52: | ||
{{!}}{{{item6Name}}} | {{!}}{{{item6Name}}} | ||
{{!}}{{{item6Quantity}}} | {{!}}{{{item6Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item6Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item6Chance}}}}}|3}}|{{{item6Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item7Name|}}}| | {{#if:{{{item7Name|}}}| | ||
Line 59: | Line 59: | ||
{{!}}{{{item7Name}}} | {{!}}{{{item7Name}}} | ||
{{!}}{{{item7Quantity}}} | {{!}}{{{item7Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item7Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item7Chance}}}}}|3}}|{{{item7Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item8Name|}}}| | {{#if:{{{item8Name|}}}| | ||
Line 66: | Line 66: | ||
{{!}}{{{item8Name}}} | {{!}}{{{item8Name}}} | ||
{{!}}{{{item8Quantity}}} | {{!}}{{{item8Quantity}}} | ||
{{!}}1 in {{significant figures|{{#expr:1/{{{item8Chance}}}}}|3}} | {{!}}1 in {{#tip-text:{{significant figures|{{#expr:1/{{{item8Chance}}}}}|3}}|{{{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}}}}} | }}{{#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> |
Revision as of 22:47, 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}} }}