Module:Bold list

From Stiles Wiki
Revision as of 19:34, 23 May 2022 by Maxwells (talk | contribs) (Created page with "-- Written by User:Ahecht in response to a thread at WP:VPI return { main = function(frame) args = {} for i, v in ipairs(frame:getParent().args) do table.insert(args, v) end conj = "'''" .. (#args > 2 and ", " or " ") .. (frame.args.conj or "or") .. " '''" return "'''"..mw.text.listToText(args, "''', '''", conj).."'''" end }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Bold list/doc

-- Written by User:Ahecht in response to a thread at [[WP:VPI]]
return { main = function(frame)
	args = {}
	for i, v in ipairs(frame:getParent().args) do table.insert(args, v)	end
	conj = "'''" .. (#args > 2 and ", " or " ") .. (frame.args.conj or "or") .. " '''"
	return "'''"..mw.text.listToText(args, "''', '''", conj).."'''"
end }