Module:documentation

Revision as of 13:02, 5 August 2023 by Maria (talk | contribs) (Created page with "local export = {} function export.show(frame) local source = frame.args[1] or frame.args["source"] local doc = ((type(source) == "string" and source ~= "") and mw.title.new(source)) or mw.title.new(mw.title.getCurrentTitle().fullText .. "/documentation") return '<div class="documentation">\n' .. title:getContent() .. "\n</div>" end return export")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local export = {}

function export.show(frame)
	local source = frame.args[1] or frame.args["source"]
	local doc = ((type(source) == "string" and source ~= "") and mw.title.new(source))
		or mw.title.new(mw.title.getCurrentTitle().fullText .. "/documentation")
	return '<div class="documentation">\n' .. title:getContent() .. "\n</div>"
end

return export