User:FrozenPlum/Sandbox: Difference between revisions

From IdleOn MMO Wiki
imported>FrozenPlum
mNo edit summary
imported>FrozenPlum
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
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.  
Testing what a data table (with inline calcs) using DPL3 might look like (since currently there's issue with Cargo). 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 value; then category could be easily set, and DPL statements made for each where a table is 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. :)
The issue with <code>|effect=</code> parameter value beginning with <code>+</code> was making the table fail (because it created <code>|+</code> which is interpreted by MediaWiki to be a caption, when in-line, it put the values as the caption lol. 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 because <code>| +</code> is not interpreted as a caption. It would be easy (and probably better) to just use listseparators/secseparators to ensure there's a non-breaking space <code>&amp;nbsp;</code> inserted after each table pipe (which would also prevent the issue). :)


{{#dpl:
{{#dpl:
Line 10: Line 11:
|count=15
|count=15
|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=<!-- 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¦%%}²}²
|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¦%%}²}²
}}
}}

Latest revision as of 08:23, 25 March 2022

DPL3 Cards Table Test

Testing what a data table (with inline calcs) using DPL3 might look like (since currently there's issue with Cargo). Count in this is limited to 15. Separate tables could only be done if infobox was set to auto-categorize based on |category= param value; then category could be easily set, and DPL statements made for each where a table is needed. I also haven't messed with and enabled |multisecseparators etc., yet, because, just goofing around.

The issue with |effect= parameter value beginning with + was making the table fail (because it created |+ which is interpreted by MediaWiki to be a caption, when in-line, it put the values as the caption lol. This was was fixed using {{#sub:}} to detect when the first char is + and put a space in front because | + is not interpreted as a caption. It would be easy (and probably better) to just use listseparators/secseparators to ensure there's a non-breaking space &nbsp; inserted after each table pipe (which would also prevent the issue). :)


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