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}}}}} | ||
{{!}} | {{!}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{coinChance}}}}} | ||
}} | }} | ||
{{#if:{{{item1Name|}}}| | {{#if:{{{item1Name|}}}| | ||
Line 17: | Line 17: | ||
{{!}}{{{item1Name}}} | {{!}}{{{item1Name}}} | ||
{{!}}{{{item1Quantity}}} | {{!}}{{{item1Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item1Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item2Name|}}}| | {{#if:{{{item2Name|}}}| | ||
Line 24: | Line 24: | ||
{{!}}{{{item2Name}}} | {{!}}{{{item2Name}}} | ||
{{!}}{{{item2Quantity}}} | {{!}}{{{item2Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item2Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item3Name|}}}| | {{#if:{{{item3Name|}}}| | ||
Line 31: | Line 31: | ||
{{!}}{{{item3Name}}} | {{!}}{{{item3Name}}} | ||
{{!}}{{{item3Quantity}}} | {{!}}{{{item3Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item3Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item4Name|}}}| | {{#if:{{{item4Name|}}}| | ||
Line 38: | Line 38: | ||
{{!}}{{{item4Name}}} | {{!}}{{{item4Name}}} | ||
{{!}}{{{item4Quantity}}} | {{!}}{{{item4Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item4Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item5Name|}}}| | {{#if:{{{item5Name|}}}| | ||
Line 45: | Line 45: | ||
{{!}}{{{item5Name}}} | {{!}}{{{item5Name}}} | ||
{{!}}{{{item5Quantity}}} | {{!}}{{{item5Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item5Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item6Name|}}}| | {{#if:{{{item6Name|}}}| | ||
Line 52: | Line 52: | ||
{{!}}{{{item6Name}}} | {{!}}{{{item6Name}}} | ||
{{!}}{{{item6Quantity}}} | {{!}}{{{item6Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item6Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item7Name|}}}| | {{#if:{{{item7Name|}}}| | ||
Line 59: | Line 59: | ||
{{!}}{{{item7Name}}} | {{!}}{{{item7Name}}} | ||
{{!}}{{{item7Quantity}}} | {{!}}{{{item7Quantity}}} | ||
{{!}}{{ | {{!}}{{chancedisplay|{{{item7Chance}}}}} | ||
}} | }} | ||
{{#if:{{{item8Name|}}}| | {{#if:{{{item8Name|}}}| | ||
Line 66: | Line 66: | ||
{{!}}{{{item8Name}}} | {{!}}{{{item8Name}}} | ||
{{!}}{{{item8Quantity}}} | {{!}}{{{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}}}}} | }}{{#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:54, 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}} }}