45,647
edits
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
local function create_link(terminfo, template_name) | local function create_link(terminfo, template_name, to_wik) | ||
local link = "" | local link = "" | ||
if terminfo.term ~= "-" then | if terminfo.term ~= "-" then | ||
-- mw.log(terminfo.term) | -- mw.log(terminfo.term) | ||
link = require("Module:links").full_link(terminfo, " | link = require("Module:links").full_link(terminfo, "term_i", false, false, to_wik) | ||
if (link ~= "") then link = " " .. link end | if (link ~= "") then link = " " .. link end | ||
end | end | ||
Line 25: | Line 25: | ||
function export.process_and_create_link(terminfo, template_name) | function export.process_and_create_link(terminfo, template_name, to_wik) | ||
terminfo = term_error(terminfo) | terminfo = term_error(terminfo) | ||
return create_link(terminfo, template_name or "derived") | return create_link(terminfo, template_name or "derived", to_wik) | ||
end | end | ||