Module:Cslist/sandbox: Difference between revisions

Content deleted Content added
listclass
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7:
if not args[1] then return end
end
local semi = (args.semi or ""):sub(1,1):lower()
semilocal = (semi == "t") or (args.semi == "y")
localif embeddedsemi =then (args.embeddedsemi or= ""):sub(1,1)semi:lower() end
local oxford = args.oxford
embedded = (embedded == "y")
if oxford then oxford = oxford:lower() end
local embedded = (args.embedded == "y")
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