Module:YearStrip

From WikiConference North America
Revision as of 08:18, 30 January 2015 by James Hare (talk | contribs) (Working)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:YearStrip/doc

local p = { }

function p.YearStrip(pagename)
	local output = string.gsub(pagename.args[1], "[0-9][0-9][0-9][0-9]%/", "", 1)
	return output
end

return p