Content deleted Content added
add support for embedded that allows us to use cslist in the context of another list without line breaking |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 7:
if not args[1] then return end
end
local oxford = args.oxford
embedded = (embedded == "y")▼
if oxford then oxford = oxford:lower() end
if embedded then embedded = embedded:lower() end
local bold = args.bold
local out = ""
for k, v in ipairs(args) do
Line 22 ⟶ 27:
listclass = listclass .. "sslist"
else
if oxford then
listclass = listclass .. "cslist"▼
if args[3] then
listclass = listclass .. "andlistoxford"
else
listclass = listclass .. "andlist"
end
else
▲ listclass = listclass .. "cslist"
end
end
if embedded then
listclass = listclass .. " cslist-embedded"
end
if bold then
listclass = listclass .. " cslist-bold"
end
if out ~= "" then
return '<ul class="'..
end
end
|