User:FrozenPlum/Sandbox: Difference between revisions

From IdleOn MMO Wiki
imported>FrozenPlum
(Goof around with a DPL3 alternative to some tables that are Cargo (and might be failing))
 
imported>FrozenPlum
m (Rest of cols)
Line 1: Line 1:
==DPL3 Cards Table Test==
==DPL3 Cards Table Test==
Testing what a data table (with inline calcs) made via DPL3 might look like, though I haven't finished calculating and formatting the last columns. Also, count in this is limited to '''15'''. Separate tables could only be done if infobox was set to auto-categorize based on <code>|category=</code> param; then cateory could be easily set and DPL statements made for each separate category, where each table was needed. I also haven't messed with and enabled <code>|multisecseparators</code> etc., yet, because, just goofing around. The issue with <code>|effect=</code> prameter value of <code>+</code> making the table fail (because it created <code>|+</code> which then looked like a table caption, was fixed using <code><nowiki>{{#sub:}}</nowiki></code> to detect when the first char is <code>+</code> and put a space in front. It would also be relatively easy (and probably better) to just use listseparators/secseparators to ensure there's a non-breaking space <code>&nbsp;</code> inserted after a pip. :)
Testing what a data table (with inline calcs) made via DPL3 might look like, though I haven't finished calculating and formatting the last columns. Also, count in this is limited to '''15'''. Separate tables could only be done if infobox was set to auto-categorize based on <code>|category=</code> param; then cateory could be easily set and DPL statements made for each separate category, where each table was needed. I also haven't messed with and enabled <code>|multisecseparators</code> etc., yet, because, just goofing around.  
 
The issue with <code>|effect=</code> prameter value beginning with <code>+</code> was making the table fail (because it created <code>|+</code> which then looked like a table caption to DPL3. This was was fixed using <code><nowiki>{{#sub:}}</nowiki></code> to detect when the first char is <code>+</code> and put a space in front if it is. It would also be relatively easy (and probably better) to just use listseparators/secseparators to ensure there's a non-breaking space <code>&nbsp;</code> inserted after a pipe. :)


'''I haven't finished calculating and formatting the last 3 columns''' (the third wouldn't need to be shown at all, if set to auto-categorize in the template).
{{#dpl:
{{#dpl:
|uses=Template:InfoCard
|uses=Template:InfoCard
Line 10: Line 11:
|mode = userformat
|mode = userformat
|table = class="wikitable sortable" style="border:unset;", Name, Img, Effect, Base, {{Icons|Star1|16}}, {{Icons|Star2}}, {{Icons|Star3}}, {{Icons|Star4}}, Required Tier, Drop Chance, Category
|table = class="wikitable sortable" style="border:unset;", Name, Img, Effect, Base, {{Icons|Star1|16}}, {{Icons|Star2}}, {{Icons|Star3}}, {{Icons|Star4}}, Required Tier, Drop Chance, Category
|tablerow=[[File:%%.png|40px]], ²{#ifeq:²{#sub:%%¦0¦1}²¦+¦&nbsp;%%}², ²{#dplvar:set¦varbase¦%%}²%%, ²{#expr:²{#dplvar:varbase}² * 2}²,²{#expr:²{#dplvar:varbase}² * 3}²,²{#expr:²{#dplvar:varbase}² * 4}²,²{#expr:²{#dplvar:varbase}² * 5}²,%%
|tablerow=<!-- image -->[[File:%%.png|40px]], <!-- Effect -->²{#ifeq:²{#sub:%%¦0¦1}²¦+¦&nbsp;%%}², <!-- Base -->²{#dplvar:set¦varbase¦%%}²%%, <!-- Star1 -->²{#expr:²{#dplvar:varbase}² * 2}², <!-- Star2 -->²{#expr:²{#dplvar:varbase}² * 3}², <!-- Star3 -->²{#expr:²{#dplvar:varbase}² * 4}², <!-- Star4 -->²{#expr:²{#dplvar:varbase}² * 5}²,<!-- reqtier-->²{#if: %%¦²{#expr: ceil(%% + 1) }²/²{#expr: ceil(%%*2^2 + 1) }²/²{#expr: ceil(%%*3^2 + 1) }²}²,<!-- dropchance -->²{#if:{{{dropchance|%%}}}¦²{chancedisplay¦%%}²}²
}}
}}
{{chancedisplay|0.0001}}

Revision as of 04:53, 24 March 2022

DPL3 Cards Table Test

Testing what a data table (with inline calcs) made via DPL3 might look like, though I haven't finished calculating and formatting the last columns. Also, count in this is limited to 15. Separate tables could only be done if infobox was set to auto-categorize based on |category= param; then cateory could be easily set and DPL statements made for each separate category, where each table was needed. I also haven't messed with and enabled |multisecseparators etc., yet, because, just goofing around.

The issue with |effect= prameter value beginning with + was making the table fail (because it created |+ which then looked like a table caption to DPL3. This was was fixed using {{#sub:}} to detect when the first char is + and put a space in front if it is. It would also be relatively easy (and probably better) to just use listseparators/secseparators to ensure there's a non-breaking space   inserted after a pipe. :)

Name Img Effect Base Star1.png Star2.png Star3.png Star4.png Required Tier Drop Chance Category
Ghost (Event) Card Ghost (Event) Card.png  +% Monster EXP While Active 3 6 9 12 15 3/9/19 201 in 20.0

Event
Giftmas Blobulyte Card Giftmas Blobulyte Card.png  +% Total Drop Rate 3 6 9 12 15 3/7/15 11 in 1.00

Event
Green Mushroom Card Green Mushroom Card.png  + Base HP 12 24 36 48 60 6/21/46 100001 in 10,000

Blunder Hills
Red Mushroom Card Red Mushroom Card.png  + Base LUK 3 6 9 12 15 11/41/91 100001 in 10,000

Blunder Hills
Frog Card Frog Card.png  + Base MP 10 20 30 40 50 7/25/55 142.857142857141 in 143

Blunder Hills
Bored Bean Card Bored Bean Card.png  + Base Damage 7 14 21 28 35 8/29/64 10309.2783505151 in 10,300

Blunder Hills
Slime Card Slime Card.png  + Base WIS 2 4 6 8 10 9/33/73 10526.3157894741 in 10,500

Blunder Hills
Baby Boa Card Baby Boa Card.png  + Move Spd 1 2 3 4 5 10/37/82 10638.297872341 in 10,600

Blunder Hills
Carrotman Card Carrotman Card.png  + Base AGI 2 4 6 8 10 11/41/91 11111.1111111111 in 11,100

Blunder Hills
Glublin Card Glublin Card.png  +% Total HP 2 4 6 8 10 11/41/91 11627.9069767441 in 11,600

Blunder Hills
Wode Board Card Wode Board Card.png  + Base STR 2 4 6 8 10 11/41/91 125001 in 12,500

Blunder Hills
Gigafrog Card Gigafrog Card.png  +% Card Drop Chance 5 10 15 20 25 11/41/91 14285.7142857141 in 14,300

Blunder Hills
Poop Card Poop Card.png  +% Crystal Mob Spawn Chance 10 20 30 40 50 11/41/91 16666.6666666671 in 16,700

Blunder Hills
Rat Card Rat Card.png  +% Critical Chance 1 2 3 4 5 11/41/91 200001 in 20,000

Blunder Hills
Walking Stick Card Walking Stick Card.png  + Base WIS 5 10 15 20 25 11/41/91 16666.6666666671 in 16,700

Blunder Hills

100001 in 10,000