User:Ferretwings/Sandbox/DPL2

I had problems with saving and loading User:Ferretwings/Sandbox/DPL so I copied it here, and remarked out everything I'm not currently working on. I cannot load the original, but I can edit it (and examine the code) here: [ $($canonicalurl:User:Ferretwings/Sandbox/DPL|action=edit}}]. I REALLY need to clean this page up.

Dropped by
"

Removing tables and images from an intro
"

Accessories I'm adding to categories
"

Weapons List
--scratchpad-- 

here:

this works:

retrieving rarity

<!- This too {{#dpl:category=Weapon items¦Tool items|includesubpages=no |uses=Template:Item infobox|nottitlematch=Gem staff|include={item infobox}:damage|includematch=/[0-9]/|ordermethod = titlewithoutnamespace
 * order = ascending|count=115|format= ,%TITLE% ²{#vardefine:r¦²{#dpl:¦title=%TITLE%¦include={item infobox}:rare}²}²²{#if:²{#var:r}²¦²{#var:r}²}²

<!-- {{#vardefine:d|{{#dpl:|title=%TITLE%|include={item infobox}:damage}}}}{{#if:{{#var:d}}|{{#var:d}} }}

returns the error value, so can't use #if: ¦²{#if:²{#dpl:title=%TITLE%¦category=Drills¦category=Chainsaws}²¦drill+chainsaw ¦²{#if:²{#dpl:title=%TITLE%¦category=Pickaxes¦category=Axes}²¦pickaxe+axe ¦²{#if:²{#dpl:title=%TITLE%¦category=Furniture items}²¦cannon ¦²{#if:¦²{#dpl:title=%TITLE%¦category=Axes}²¦axe ¦²{#if:²{#dpl:title=%TITLE%¦category=Boomerangs}²¦boomerang ¦²{#if:²{#dpl:title=%TITLE%¦category=Bows}²bow ¦²{#if:²{#dpl:title=%TITLE%¦category=Chainsaws}²chainsaw ¦other}²}²}²}²}²}²}²}²²{#var:wt1}²

¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Drills¦category=Chainsaws¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Pickaxes¦category=Axes¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Furniture items¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Axes¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Boomerangs¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Bows¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Chainsaws¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Drills¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Flails¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Guns¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Hamaxes¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Hammers¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Magic weapons¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Pickaxes¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Repeaters¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Swords¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Spears¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Summon weapons¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Yoyos¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Melee weapons¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Ranged weapons¦noresultsheader=n}²¦n ¦²{#ifeq:²{#dpl:title=%TITLE%¦category=Misc weapons¦noresultsheader=n}²¦n

²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Drills¦category=Chainsaws}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Pickaxes¦category=Axes}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Furniture items}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Axes}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Boomerangs}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Bows}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Chainsaws}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Drills}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Flails}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Guns}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Hamaxes}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Hammers}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Magic weapons}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Pickaxes}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Repeaters}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Swords}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Spears}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Summon weapons}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Yoyos}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Melee weapons}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Ranged weapons}²}²²{#var:wt}²¦ ¦²{#if:²{#vardefine:wt¦²{#dpl:title=%TITLE%¦category=Misc weapons}²}²²{#var:wt}²¦ ¦consumable¦explosive}²¦ranged}²¦melee}²¦yoyo}²¦summon}²¦spear}²¦sword}²¦repeater}²¦pickaxe}² ¦²{#ifeq:²{#sub:²{#dpl:title=%TITLE%¦include={item infobox}:tooltip¦noresultsheader=n}²¦0¦15}²¦Summons a cloud¦rain¦ magic}² }² ¦hammer}²¦hammaxe}²¦gun}²¦flail}²¦drill}²¦chainsaw}²¦bow}²¦boomerang}²¦axe}²¦cannon}²¦pickaxe + axe}²¦drill + chainsaw}²}²²{#var:wt}² «nowiki»,«/nowiki», }}

-->

{{#dpl:|title=Cannon|category=Repeaters|oneresultheader={{#ifeq:{{#pos:Cannon|Repeater}}|| {{#vardefine:intro|{{#explode:{{#dpl:|title=Cannon|include=%0}}|{{!}}}|-1}}}}{{#if:{{#pos:{{#var:intro}}|arrows}}|arrows|{{#if:{{#pos:{{#var:intro}}|Stakes}}|Stakes|unk}}}} }}
 * noresultsheader=not a repeater}}

}

{{#dpl:|title=Cannon|category=Repeaters|oneresultheader= {{#ifeq:{{#pos:Cannon|Repeater}}|| {{#vardefine:intro|{{#explode:{{#dpl:|title=Cannon|include=%0}}|{{!}}}|-1}}}} {{#if:{{#pos:{{#var:intro}}|arrows}}|arrows| {{#if:{{#pos:{{#var:intro}}|shoots}}|{{#vardefine:fires|shoots}}{{#vardefine:firespos|{{#pos:{{#var:intro}}|shoots}}}}shoots {{#iferror:{{#expr:{{#sub:{{#explode:{{#var:intro}}|{{#var:fires}}|1}}|0|1}}>0}} }}
 * {{#if:{{#pos:{{#var:intro}}|fires}}|{{#vardefine:fires|fires}}{{#vardefine:firespos|{{#pos:{{#var:intro}}|fires}}}}fires
 * {{#if:{{#pos:{{#var:intro}}|launches}}|{{#vardefine:fires|launches}}{{#vardefine:firespos|{{#pos:{{#var:intro}}|launches}}}}launches
 * {{#if:{{#pos:{{#var:intro}}|uses}}|{{#vardefine:fires|uses}}{{#vardefine:firespos|{{#pos:{{#var:intro}}|uses}}}}uses
 * {{#if:{{#pos:{{#var:intro}}|consumes}}|{{#vardefine:fires|consumes}}{{#vardefine:firespos|{{#pos:{{#var:intro}}|consumes}}}}consumes
 * unk }} }}
 * {{#explode:{{#explode:{{#var:intro}}|{{#var:fires}}|1}}| |0}}
 * {{#explode:{{#explode:{{#var:intro}}|{{#var:fires}}|1}}| |1}} }} }} }} }}
 * repeater in name}}
 * noresultsheader=not a repeater}}

a=

->

<- only replaces "a" with "A" if there is an "r" somewhere after the "a". ->  ->
 * }

Testing
"

These DPL tests work
"

Not working
"

Banner project
"

List recipes
"

list of categories Snow Balla is in
"

list of debuffs Snow Balla is immune to (explicit list)
"

list of debuffs enemy is immune to (implicit list) working, but still needs work
"



Complete category list for =



Enemy: Category list:

} }

's top section: is immune to:

hybrid:

.cl5..cl5.

Table format, sort of working. Testing isn't going too well right now.


 * resultsheader=«pre»«nowiki»
 * resultsfooter=«/nowiki»«/pre»

↓Using "format=" is very difficult. I may need to use Table after all.↓



<!-- no .31ep.²{#pos:¦ }².31.

resultsheader=«pre»«nowiki» resultsfooter=«/nowiki»«/pre» --returns 1212 ²{#pos:²{#dpl:¦title=%TITLE%¦include=##.*Immune.*¦format=, ¦noresultsheader=nSnow Balla}²¦ }² --works .5r.

²{#vardefine:s1¦ }² .1t..2s..3s.²{#var:s1}²


 * format ={¦ class="wikitable"¶!Debuff¶!NPC (and notes), ²{#vardefine:s1¦ }² ¶¦-¶¦%TITLE%¶¦ t dpl²{#dpl:¦title=%TITLE%¦include=##.*Immune.*¦format=,¦noresultsheader=oops2}² s1 ²{#var:s1}² {{#vardefine:r¦²{#if:²{#pos:¦ }²¦¦²{#sub:{{#var:c}}¦3¦-2}² }² }² \ris astaz,,¶¦}

dpl²{#dpl:¦title=%TITLE%¦include=##.*Immune.*¦format=,¦noresultsheader=oops2}² mode=userformat |listseparators=,,,|secseparators=%SECTION% /\*\s*\[\[
 * include=##.*Immune.*
 * tablerow =²{#vardefine:r¦

list of debuffs Golem is immune to
"

List of all items crafted at the Tinkerer's Workshop
"

Miscellaneous notes and stuff
<!--
 * format=,,¶%CATLIST%¶,
 * include=%TITLE%
 * table=-
 * tablerow=%%

--
 * include=%TITLE% -- 1.5 space maybe
 * table=-
 * tablerow=-,%%
 * format=,%TITLE%¶,¶, --double spaces, but haven't figured a way around the 2 ¶
 * format=,¶,¶,
 * tablerow = --lists linked page names with bullets, single space


 * align=left|
 * align=left|1x, 15x , 20x || 56 || 14 (Very Fast) || ?
 * align=left|
 * align=left| + +  || 56 || 14 (Very Fast) || ?
 * align=left| + +  || 56 || 14 (Very Fast) || ?

should use