Difference between revisions of "Expandpages"

From Sega Retro

 
Line 12: Line 12:
 
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:Sega Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Latest revision as of 13:54, 1 January 2022

Convert a range of pages given by the format "a-c" into a format the gallery template 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.