Module:MF

From Fire Emblem Heroes Wiki
Jump to: navigation, search
Template-info.svg Documentation

Documentation located at Template:MF/doc.

local removeAccentTable = mw.loadData('Module:MF/data').accents

local main1 = function (str)
	return (mw.ustring.gsub(mw.ustring.gsub(mw.getCurrentFrame():callParserFunction('#titleparts', str == nil and '' or tostring(str)), "%a", removeAccentTable), "[^A-Za-z0-9 ._-]", ""))
end

return {
	main1 = main1,
	_main = function (args) return main1(args[1]) end,
	main = function (frame) return main1(frame.args[1]) end,
}