User:OttoLannister550/Sandbox

Designing DPL Syntax for the Slider's Technique Section
There are 4 ways of displaying images in infobox that needs to be considered in designing the DPL's output format: Solution for #1: Solution for #2: Solution for #3: {{#if:{{#pos:{{#replace:{{#dplvar:a}}|{Tabber|}}|[File:}}|{{#sub:{{#replace:{{#dplvar:a}}|{Tabber|}}|{{#expr:{{formatnum:{{#pos:{{#replace:{{#dplvar:a}}|{Tabber|}}|[File:}}|R}}+6}}|{{#expr:{{formatnum:{{#pos:{{#replace:{{#dplvar:a}}|{Tabber|}}|]}}|R}}-{{#expr:{{formatnum:{{#pos:{{#replace:{{#dplvar:a}}|{Tabber|}}|[File:}}|R}}+6}}}}}}|Continue to Solution for #4}} Solution for #4: {{#dplvar:set|x|%IMAGE%}}{{#if:{{#pos:{{#dplvar:x}}|[File:}}|{{#sub:{{#dplvar:x}}|{{#expr:{{formatnum:{{#pos:{{#dplvar:x}}|[File:}}|R}}+6}}|{{#expr:{{formatnum:{{#pos:{{#dplvar:x}}|]}}|R}}-{{#expr:{{formatnum:{{#pos:{{#dplvar:x}}|[File:}}|R}}+6}}}}}}|Semi-Transparent Placeholder.png}}
 * 1) Using of which the contents can be one or more images and some pages use File: as a prefix for the images (reminder: the content between two gallery tags are treated as one character)
 * 2) Using |-| of which the contents can be or more images (reminder: the content between two tabber tags are treated as one character)
 * 3) Using of which idem
 * 4) Using [[File:image1|]]
 * 5) If no images are found, just use Placeholder image

²{#dplvar:set¦y¦²{#dpl: mode = none ¦ ordermethod = size ¦ order = descending ¦ imagecontainer = %PAGE% ¦ count = 1 }²}² ²{#if: ²{#dplvar:y}² ¦ ²{#sub:²{#dplvar:y}² ¦0}² ¦ Semi-Transparent Placeholder.png }²

Test: {{Scroll Box|height = 400px |background = transparent|content = {{#dplvar:set|z|,%TITLE%,,}}  ordermethod       = sortkey category          = Shinsu Techniques namespace         = format            = ,,, include           = {Shinsu Technique}:image secseparators     =  ²{#dplvar:set¦x¦²{#dplreplace:,¦/\n/¦}²}²²{#dplvar:set¦y¦²{#dpl: mode = none ¦ ordermethod = size ¦ order = descending ¦ imagecontainer = %PAGE% ¦ listseparators = ²{#dplvar:z}² ¦ count = 1 }²}²[[File:²{#if:²{#pos:²{#dplvar:x}²¦[File:}²¦²{#sub:²{#dplvar:x}²¦²{#expr:²{formatnum:²{#pos:²{#dplvar:x}²¦[File:}²¦R}²+6}²¦²{#expr:²{formatnum:²{#pos:²{#dplvar:x}²¦]}²¦R}²-²{#expr:²{formatnum:²{#pos:²{#dplvar:x}²¦[File:}²¦R}²+6}²}²}²¦²{#if: ²{#dplvar:y}² ¦ ²{#sub:²{#dplvar:y}² ¦0}² ¦ Semi-Transparent Placeholder.png }²}²|200px|%TITLE%|link=%PAGE%]] %TITLE% allowcachedresults = true  }}

Miscellaneous
     