Module:sa-desc
Jump to navigation
Jump to search
- The following documentation is located at Module:sa-desc/documentation. [edit]
- Useful links: subpage list • links • transclusions • testcases • sandbox
local export = {}
function export.make(frame)
local result = {}
local args = frame:getParent().args
for lang, word in pairs(args) do
table.insert(result, "<li class=\"vsHide\">" .. frame:expandTemplate{ title = 'desc', args = { lang, word } } .. "</li>")
end
table.sort(result)
return "<div class=\"vsSwitcher\" style=\"text-align:left; border:1px solid cornflowerblue; max-width: 50%; padding:3px\">" ..frame:expandTemplate{ title = '→'}.. "<span class=\"vsToggleElement\">''[[tatsama|Tatsama]]:''</span><div class=\"vsHide\"><ul class=\"vsHide\">" .. table.concat(result) .. "</ul></div></div>"
end
return export