Module:head: Difference between revisions

From Laenkea
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
local language = get_by_code(args[1])
local language = get_by_code(args[1])
local head = args["head"] or mw.title.getCurrentTitle().text
local head = args["head"] or mw.title.getCurrentTitle().text
return "'''" .. term .. "'''"
return "'''" .. head .. "'''"
end
end


return export
return export

Revision as of 22:01, 5 August 2023

Documentation for this module may be created at Module:head/documentation

local export = {}
local get_by_code = require("Module:languages").get_by_code

function export.show(frame)
	local args = (frame:getParent() and frame:getParent().args) or frame.args
	local language = get_by_code(args[1])
	local head = args["head"] or mw.title.getCurrentTitle().text
	return "'''" .. head .. "'''"
end

return export