Module:qhv-noun/test: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
function export.test(frame)
function export.test(frame)
local word = frame.args[1] or mw.title.getCurrentTitle().text
local word = frame.args[1] or mw.title.getCurrentTitle().text
local lang = require("Module:languages")
local lang = require("Module:languages").getByCode("qhv")
return lang:makeSortKey(word)
return lang:makeSortKey(word)
end
end


return export
return export

Latest revision as of 15:56, 4 March 2021



local export = {}

function export.test(frame)
	local word = frame.args[1] or mw.title.getCurrentTitle().text
	local lang = require("Module:languages").getByCode("qhv")
	return lang:makeSortKey(word)
end

return export