Jump to content

Module:Sandbox/AndyRussG

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by AndyRussG (talk | contribs) at 05:16, 27 August 2024 (Test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {};

p.hello = function( frame )
	local Date = require('Module:Date')._Date
    local str1 = "I'm a doggy ogg, oggy ogg ogg doggy ogg, on "
    local str2 = Date(tonumber(frame.args[1]), 7, 31):text()
	return str1 .. str2
end

p.getAnEntity = function( frame )
	ent = mw.wikibase.getEntity( 'Q123' )
	return ent["claims"]["P948"][1]["mainsnak"]["datavalue"]["value"]
end

return p