Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Smw support for number ranges) |
(return if no number is given to number or number range) |
||
Line 25: | Line 25: | ||
-- Standardized number range: Accepts '1' and '1-5' |
-- Standardized number range: Accepts '1' and '1-5' |
||
function parse.number_or_number_range(prenum) |
function parse.number_or_number_range(prenum) |
||
if not prenum then return end |
|||
local ret = '' |
local ret = '' |
||
local count = 0 |
local count = 0 |