Module:Bold list: Difference between revisions

From Bharatpedia, an open encyclopedia
(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 }")
 
(Cleanup)
 
Line 1: Line 1:
-- Written by User:Ahecht in response to a thread at [[WP:VPI]]
-- Written by User:Muskit Gergous in response to a thread at [[BP:VPI]]
return { main = function(frame)
return { main = function(frame)
args = {}
args = {}

Latest revision as of 17:15, 6 November 2024

Usage

{{#invoke:Bold list|function_name}}




-- Written by User:Muskit Gergous in response to a thread at [[BP: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 }