Actions

Template

Expandpages

From NEC Retro

Revision as of 18:17, 16 May 2023 by SorachiJirachi (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.