Module:head

Revision as of 22:00, 5 August 2023 by Maria (talk | contribs) (Created page with "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 term = mw.title.getCurrentTitle().text return "'''" .. term .. "'''" end return export")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 term = mw.title.getCurrentTitle().text
	return "'''" .. term .. "'''"
end

return export