Module:Wikipedia Signpost/Main page top preview

-- This module allows Wikipedia Signpost/Templates/Main page top to -- be previewed with today's date and an incremented issue number.

p = {}

p.top = function local title = mw.title.new("Wikipedia:Wikipedia Signpost/Templates/Main page top") local wikitext = title:getContent :gsub("<!%-%-.-%-%->","") -- remove comments :gsub(" .- ","") -- remove noincludes :gsub("", "") -- use current date :gsub( -- increment issue number			"",			"issue "		) -- process and return the wikitext return mw.getCurrentFrame:preprocess( wikitext ) end

return p