Actions

Template

Expandpages

From Sonic Retro

Revision as of 21:04, 20 January 2017 by Hivebrain (talk | contribs) (Created page with "<includeonly>{{#vardefine:expandpagesresult|}} {{#loop: chunknum |0 |{{#expr:{{charcount|{{{1}}}|,}}+1}} |{{#vardefine:chunk|{{#explode:{{{1}}}|,|{{#var:chunknum}}}}}} {{#if:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Convert a range of pages given by the format "a-c" into a format PdfHandler can cope with. That is, "a-c" becomes a,b,c.

Example: {{expandpages|12-14}} becomes 12,13,14.

Example: {{expandpages|12-14,17,20-21}} becomes 12,13,14,17,20,21.