Module:links: Difference between revisions

Jump to navigation Jump to search
No change in size ,  5 August 2023
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 2: Line 2:


function export.make_link(args)
function export.make_link(args)
if (not args["link_type"]) or (args["link_type"] ~= "mention" and args["link_type"] ~= "list") then
if args["link_type"] ~= "mention" and args["link_type"] ~= "list" then
error("Link type must be specified")
error("Link type must be specified")
end
end
Line 52: Line 52:
local args = (frame:getParent() and frame:getParent().args) or frame.args
local args = (frame:getParent() and frame:getParent().args) or frame.args
return export.make_link{
return export.make_link{
["link_type"] = link_type,
["code"] = args[1],
["code"] = args[1],
["word"] = args[2],
["word"] = args[2],

Navigation menu