Jump to content

Module:Sandbox/Guergana Tzatchkova/ginger beer cake

From mediawiki.org
Module documentation
local p = {}
function p.hello(frame)
    return 'Hello, my ' .. frame.args[1] .. ' is ' .. frame.args[2]
end

function p.wikidata()
	local props = mw.wikibase.getBestStatements( 'Q42', 'P26' )
	return mw.wikibase.formatValue(props[1]['qualifiers']['P580'][1])
end	

--[[function p.user()
	return mw.uri.getUserInfo()
end	--]]

function p.today()
	return 'Today is: ' .. os.date('%Y-%m-%d %H:%M:%S')
end	

return p