Module:documentation: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(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")
 
No edit summary
Line 5: Line 5:
local doc = ((type(source) == "string" and source ~= "") and mw.title.new(source))
local doc = ((type(source) == "string" and source ~= "") and mw.title.new(source))
or mw.title.new(mw.title.getCurrentTitle().fullText .. "/documentation")
or mw.title.new(mw.title.getCurrentTitle().fullText .. "/documentation")
return '<div class="documentation">\n' .. title:getContent() .. "\n</div>"
return '<div class="documentation">\n' .. doc:getContent() .. "\n</div>"
end
end


return export
return export

Navigation menu