Module:Dash: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 2: Line 2:


function p.dashes(frame)
function p.dashes(frame)
return input_str:gsub("%s+", frame.args["spaces"] .. frame.args["separator"] .. frame.args["spaces"])
return frame.args["input_str"]:gsub("%s+", frame.args["spaces"] .. frame.args["separator"] .. frame.args["spaces"])
end
end


return p
return p

Revision as of 03:05, 12 May 2024

Module documentation[view] [edit] [history] [purge]
This module should not be invoked directly; use its corresponding template instead: Template:Dash.

Replaces comma and space in list with dashes and spaces.

Introspection summary for Module:Dash 
Functions provided (1)
Line Function Params
3 dashes (invokable) (frame)
Lua modules required (0)
Variable Module Functions used

No function descriptions were provided. The Lua code may have further information.


local p = {}

function p.dashes(frame)
	return frame.args["input_str"]:gsub("%s+", frame.args["spaces"] .. frame.args["separator"] .. frame.args["spaces"])
end

return p