Module:Sharpness szg documentation: Difference between revisions

Dave Keenan (talk | contribs)
Create szg (Stein-Zimmermann-Gould) version of Sharpness documentation.
 
Dave Keenan (talk | contribs)
mNo edit summary
Line 4: Line 4:


function p.main(frame)
function p.main(frame)
local in_str = frame.args["input"]
local in_str = string.sub(frame.args["input"],1,-5) -- trim off "-szg"
local note = frame.args["note"] or ""
local note = frame.args["note"] or ""
local aux_note = frame.args["auxnote"] or ""
local aux_note = frame.args["auxnote"] or ""
Line 69: Line 69:
elseif extension == "a" or extension == "A" then
elseif extension == "a" or extension == "A" then
-- Extension for modern-style ups and downs
-- Extension for modern-style ups and downs
result = result .. "is based on [[ups and downs notation]] using separate arrows."
result = result .. "is based on [[ups and downs notation]] using separate up and down chevrons."
end
end
end
end