A modult a Modul:he-links/doc lapon tudod dokumentálni
local m_links_templates = require("Module:links/templates")
local com = require("Module:he-common")
local export = {}
function export.term(frame)
local args = {}
for key, val in pairs(frame:getParent().args) do
args = val
end
if args == "" then args = nil end
if args == "" then args = nil end
if args == nil or args == "" then
local form, formwv, formdwv = com.process_wv_triad(args or "", args, args)
args = form or ""
if formdwv then
args = (formwv or form) .. " \\ " .. formdwv
else
args = (formwv or form)
end
end
args = nil
args = nil
-- table.insert(args, 1, "he")
-- shift manually to avoid strange bugs:
args = args
args = args
args = args
args = "he"
if args and args:find("[[", 1, true) then
-- args (term) contains wikilinks, so args (alt) will be ignored
-- by ] and will cause a tracking template to be
-- transcluded.
args = nil
-- ]
require("Module:debug").track("he-links/alt removed")
end
-- Passthrough arguments after modification
local frame2 = frame:newChild{title = frame:getParent():getTitle(), args = args}:newChild{title = frame:getTitle(), args = frame.args}
return m_links_templates.l_term_t(frame2)
end
return export