Actions

Template

Pagecount

From NEC Retro

Revision as of 18:11, 16 May 2023 by SorachiJirachi (talk | contribs) (Created page with "<includeonly>{{#vardefine:pagecountresult|0}} {{#loop: chunknum |0 |{{#expr:{{charcount|{{{1}}}|,}}+1}} |{{#vardefine:chunk|{{#explode:{{{1}}}|,|{{#var:chunknum}}}}}} {{addva...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Calculate the size of a range (inclusive) given by the format "a-b". It also works with broken ranges in the format "a-b,c-d".

Example: {{pagecount|12-14}} becomes 3.

Example: {{pagecount|12-14,17,20-21}} becomes 6.