Module:Sandbox/Frietjes Explained

local p =

local math_module = require("Module:Math")

local function rnd(num, digits) -- This function implements return math_module._precision_format(tostring(num), digits)end

function p.ifexists(frame) page = frame.args[1] if not page then return (frame.args['no'] or ) end if mw.title.new(page).exists then return (frame.args['yes'] or 'yes') end return (frame.args['no'] or )end

function p.lists(frame) local s = '\n' .. (frame.args[1] or ) .. '\n' s = mw.ustring.gsub(s, '([\r\n])%*([^\r\n]*)', '%1

') s = mw.ustring.gsub(s, '([\r\n])#([^\r\n]*)', '%1
  1. %2
') s = mw.ustring.gsub(s, '%s*([\r\n]*)
    ', '%1') s = mw.ustring.gsub(s, '%s*([\r\n]*)