Difference between revisions of "Expandpages"
From Sonic Retro
(Created page with "<includeonly>{{#vardefine:expandpagesresult|}} {{#loop: chunknum |0 |{{#expr:{{charcount|{{{1}}}|,}}+1}} |{{#vardefine:chunk|{{#explode:{{{1}}}|,|{{#var:chunknum}}}}}} {{#if:...") |
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
||
Line 16: | Line 16: | ||
Example: <nowiki>{{expandpages|12-14,17,20-21}}</nowiki> becomes {{expandpages|12-14,17,20-21}}. | Example: <nowiki>{{expandpages|12-14,17,20-21}}</nowiki> becomes {{expandpages|12-14,17,20-21}}. | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 19:19, 1 January 2022
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.