User:Ferretwings/Sandbox/DPL

I REALLY need to clean this page up.

Removing tables and images from an intro
intro

file this also removes icons oops

large if

find section

regex \{\|

replacesections with regex

varf

remove sections not regex
 * }

replace everything inside table (inside f) with blank

nf

remove section regex
 * }


 * }

end critter intro test
 * }

Weapons List
{{#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
The formatting is fine, but the regex doesn't work

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.

↓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¦

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