45,647
edits
(Created page with "local export = {} -- For testing local force_cat = false --[[ If language is an etymology language, iterates through parent languages until it finds a non-etymology langua...") |
No edit summary |
||
Line 23: | Line 23: | ||
local function termError(terminfo) | local function termError(terminfo) | ||
if terminfo.lang:getType() == "family" then | if terminfo.lang:getType() == "family" then | ||
terminfo.term = "-" | terminfo.term = "-" | ||
end | end | ||
Line 36: | Line 32: | ||
local link = "" | local link = "" | ||
if terminfo.term | if terminfo.term ~= "-" then | ||
link = " " .. require("Module:links").full_link(terminfo, "term", true) | link = " " .. require("Module:links").full_link(terminfo, "term", true) | ||
end | end | ||
Line 55: | Line 42: | ||
function export.format_etyl(lang, source, sort_key, categories, nocat) | function export.format_etyl(lang, source, sort_key, categories, nocat) | ||
local info = {} | local info = {} | ||
if not categories then | if not categories then | ||
Line 273: | Line 254: | ||
-- Internal implementation of {{semantic loan|...}} template | -- Internal implementation of {{semantic loan|...}} template | ||
function export.semantic_loan(lang, terminfo, sort_key, nocap, notext, nocat) | function export.semantic_loan(lang, terminfo, sort_key, nocap, notext, nocat) | ||
local pre_text = "" | local pre_text = "" | ||
Line 288: | Line 265: | ||
-- Internal implementation of {{phono-semantic matching|...}} template | -- Internal implementation of {{phono-semantic matching|...}} template | ||
function export.phono_semantic_matching(lang, terminfo, sort_key, nocap, notext, nocat) | function export.phono_semantic_matching(lang, terminfo, sort_key, nocap, notext, nocat) | ||
local pre_text = "" | local pre_text = "" | ||