48,355
edits
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
local function term_error(terminfo) | local function term_error(terminfo) | ||
if terminfo.lang:hasType("family") then | if terminfo.lang:hasType("family") then | ||
terminfo.term = "-" | terminfo.term = "-" | ||
end | end | ||
| Line 19: | Line 15: | ||
local link = "" | local link = "" | ||
if terminfo.term | if terminfo.term ~= "-" then | ||
-- mw.log(terminfo.term) | -- mw.log(terminfo.term) | ||
link = require("Module:links").full_link(terminfo, "term") | link = require("Module:links").full_link(terminfo, "term") | ||
| Line 90: | Line 78: | ||
function export.format_source(data) | function export.format_source(data) | ||
local lang, sort_key = data.lang, data.sort_key | local lang, sort_key = data.lang, data.sort_key | ||
local display, categories = export.insert_source_cat_get_display(data) | local display, categories = export.insert_source_cat_get_display(data) | ||