Module:Gen pages

-- helper module; not intended for general use function transclude( args ) local index = args.index local startp = tonumber( args.startp ) local endp = tonumber( args.endp ) local starts = args.starts local ends = args.ends local num = tonumber( args.num )

-- Without index and start and end page number there's nothing to do. if startp == nil or endp == nil or index == "" then return end local content = '' for i = startp, endp do content = content .. '\n' num = num + 1 end return content end

return { transclude = function( frame ) return transclude( frame.args ) end; }