Module:TAMNAMS lookup
Jump to navigation
Jump to search
Documentation transcluded from /doc
Note: Do not invoke this module directly; use the corresponding template instead: Template:TAMNAMS lookup.
Documentation transcluded from /doc
Note: Do not invoke this module directly; use the corresponding template instead: Template:TAMNAMS lookup.
local tamnams = require("Module:TAMNAMS")
local yesno = require("Module:Yesno")
local p = {}
-- For TAMNAMS name lookup as a template, outside of a lua module.
function p._tamnams_lookup(text, reverse_lookup)
local result = tamnams.step_ratios[text]
or tamnams.step_ratio_ranges[text]
or tamnams.mos_names[text]
or text
return result
end
function p.tamnams_lookup(frame)
local text = frame.args["Lookup"]
local reverse_lookup = yesno(frame.args["Reverse Lookup"]) == true -- TODO
return p._tamnams_lookup(text, reverse_lookup)
end
function p.tester()
return p._tamnams_lookup("5L 3s")
end
return p