12,275
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
function export.show(frame) | function export.show(frame) | ||
local function sort_function(a, b) | local function sort_function(a, b) | ||
return a.name < b.name | return a.name < b.name | ||
Line 59: | Line 56: | ||
out = out .. '\n|-' | out = out .. '\n|-' | ||
out = out .. '\n| bgcolor="beige" valign="top" width="48%" |' | out = out .. '\n| bgcolor="beige" valign="top" width="48%" |' | ||
for _, n in ipairs(translations) do out = out .. '\n* ' .. n.display .. "[[Category:" .. language.name .. " terms with " .. n.name .. " translations]]" end | for _, n in ipairs(translations) do out = out .. '\n* ' .. n.display .. "[[Category:" .. language.name .. " terms with " .. n.name .. " translations|" .. mw.title.getCurrentTitle().subpageText .. "]]" end | ||
out = out .. '\n|}' | out = out .. '\n|}' | ||
out = out .. '\n</div></div>[[Category:' .. language.name .. ' terms with translations]]' | out = out .. '\n</div></div>[[Category:' .. language.name .. ' terms with translations|" .. mw.title.getCurrentTitle().subpageText .. "]]' | ||
end | end | ||
for _, lang in ipairs(tag_missing) do | for _, lang in ipairs(tag_missing) do | ||
if lang ~= language.code and args[lang] == nil then | if lang ~= language.code and args[lang] == nil then | ||
out = out .. "[[Category:Terms needing " .. m_languages.get_by_code(lang).name .. " translations]]" | out = out .. "[[Category:Terms needing " .. m_languages.get_by_code(lang).name .. " translations|" .. mw.title.getCurrentTitle().subpageText .. "]]" | ||
end | end | ||
end | end |