Module:Dash: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 1: Line 1:
local p = {}
local p = {};


function p.dashes(frame)
function p.dashes(frame)
Line 5: Line 5:
local se = ""
local se = ""
if frame.args["spaces"] == "thin" then
if frame.args["s"] == "thin" then
sp = " "
sp = " "
elseif frame.args["spaces"] == "hair" then
elseif frame.args["s"] == "hair" then
sp = " "
sp = " "
elseif frame.args["spaces"] == "space" then
elseif frame.args["s"] == "space" then
sp = " "
sp = " "
else
else
Line 15: Line 15:
end
end
if frame.args["separator"] == "mdash" then
if frame.args["d"] == "long" then
se = "—"
se = "—"
elseif frame.args["separator"] == "ndash" then
elseif frame.args["d"] == "med" then
se = "–"
se = "–"
else
else