-- This is here as a placeholder.-- It is to demonstrate to Google-Code-in students what the module sandbox is.
local p =
function p.cats(frame) local title = frame.args.title or "" local ttlobj = mw.title.new(title, 14) if ttlobj then local cont = ttlobj:getContent if cont then return cont:sub(1, 100000) end endend
function p.namespaces(frame) local ns = mw.site.namespaces local msg = "" for k, v in pairs(ns) do msg = msg .. k .. " = " .. v.name .. "
" end return msgend
p.roundto = function(frame) local x = tonumber(frame.args.x) or 0 local sf = tonumber(frame.args.sf) or 0 if x
math.floor(x) then x = math.floor(x) end return xend
return p