10,735
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
["t"] = {list = true, allow_holes = true}, | ["t"] = {list = true, allow_holes = true}, | ||
["pos"] = {list = true, allow_holes = true}, | ["pos"] = {list = true, allow_holes = true}, | ||
["a"] = {list = true, allow_holes = true}, | |||
["nohere"] = {type = "boolean"}, | ["nohere"] = {type = "boolean"}, | ||
["columns"] = {type = "int", default = 2}, | ["columns"] = {type = "int", default = 2}, | ||
["cols"] = {alias_of = "columns"}, | ["cols"] = {alias_of = "columns"}, | ||
["anchor"] = {alias_of = "a"}, | |||
} | } | ||
Line 22: | Line 24: | ||
local out = '<div class="ul-columns" data-column-count="' .. data.columns .. '">' | local out = '<div class="ul-columns" data-column-count="' .. data.columns .. '">' | ||
for _, term in ipairs(data.terms) do | for _, term in ipairs(data.terms) do | ||
out = out .. '\n* ' .. m_links.full_link{term = term.term, language = data.language, alt = term.alt, gloss = term.gloss, pos = term.pos} | out = out .. '\n* ' .. m_links.full_link{term = term.term, language = data.language, alt = term.alt, gloss = term.gloss, pos = term.pos, anchor = term.anchor} | ||
end | end | ||
return out .. '\n</div>' | return out .. '\n</div>' | ||
Line 40: | Line 42: | ||
gloss = args["t"][i] or i_args["t"], | gloss = args["t"][i] or i_args["t"], | ||
pos = args["pos"][i] or i_args["pos"], | pos = args["pos"][i] or i_args["pos"], | ||
anchor = args["a"][i] or i_args["a"] or i_args["anchor"], | |||
}) | }) | ||
end | end |