Module:columns: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
mNo 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},
["nohere"] = {type = "boolean"},
["columns"] = {type = "int", default = 2},
["columns"] = {type = "int", default = 2},
["cols"] = {alias_of = "columns"},
["cols"] = {alias_of = "columns"},
Line 33: Line 34:
while args[2][i] do
while args[2][i] do
local i_term, i_args = m_inline.parse(args[2][i])
local i_term, i_args = m_inline.parse(args[2][i])
table.insert(terms, {
if not (args.nohere and i_term == mw.title.getCurrentTitle().text) then
term = i_term,
table.insert(terms, {
alt = args["alt"][i] or i_args["alt"],
term = i_term,
gloss = args["t"][i] or i_args["t"],
alt = args["alt"][i] or i_args["alt"],
pos = args["pos"][i] or i_args["pos"],
gloss = args["t"][i] or i_args["t"],
})
pos = args["pos"][i] or i_args["pos"],
})
end
i = i + 1
i = i + 1
end
end