Module:Sandbox/BrownHairedGirl/titleParse

This is an old revision of this page, as edited by BrownHairedGirl (talk | contribs) at 13:57, 31 March 2018 (Created page with ' local p = {} function p.main(frame) local retval = ""; local thispage = mw.title.getCurrentTitle() local pagename = thispage.text; local title_prefix, t...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
local p = {}


function p.main(frame)
	local retval = "";
	local thispage = mw.title.getCurrentTitle()
	local pagename = thispage.text;
	
	local title_prefix, title_county, title_suffix = string.match(s, "(.*)(County %a+)(.*)")

	retval = retval .. "\n* title_prefix = [" .. title_prefix .. "]"
	retval = retval .. "\n* title_county = [" .. title_county .. "]"
	retval = retval .. "\n* title_suffix = [" .. title_suffix .. "]"

	return retval
end

return p