dev

This module was made as a sandbox for the user Shiskk. This documentation is kept to prevent redlinks.


local module = {}
 
function module.greet(frame)
    local name = frame.args[1] or frame.args.name
    local data = mw.loadData('Module:Sandbox/Shiskk/data')

    if frame.name then
        return "Live long and prosper " .. name .. " and " .. frame.name
    end

    frame.name = name

--    return "Live long and prosper " .. name
-- 

    local input = frame:expandTemplate{title = "User:Shiskk/Sandbox/luadata"}
    local output = {}

    for str in string.gmatch(input, "[^%|]+") do
        table.insert(output, str)
    end

    return table.concat(output, ', ')
end

function module.links(frame)
	local links = frame:expandTemplate{title = ':Special:WhatLinksHere/' .. frame.args.pagename}

    mw.log(links)

	return links 
end
 
return module