Documentation for this module may be created at Module:Sandbox/Gonnym/displaytitle/doc

local p = {}

function p.main(frame)
	local page_text = mw.title.new("User:Gonnym/sandbox/displaytitle"):getContent()
	local title = string.match(page_text , "{{DISPLAYTITLE:(.-)}}")
	mw.log("title: " .. title)
	mw.log("length: " .. string.len(title))
	mw.log("type: " .. type(title))
	
	local test_string = "test string"
	mw.log("length: " .. string.len(test_string))
	
	if test_string == title then
		mw.log("equal")
	else
		mw.log("not equal")
	end
	
	mw.log("test_string == title: " .. test_string == title)
	mw.log("test_string == title: " .. tostring(test_string == title))

end

return p