Module:MOS modes: Difference between revisions

Ganaram inukshuk (talk | contribs)
Initial creation and testing of mos modes module; for future use with a mos mode template
 
Ganaram inukshuk (talk | contribs)
Added todo to code
Line 48: Line 48:


-- Test function that produces the modes of a mos as a table
-- Test function that produces the modes of a mos as a table
-- The mos itself can be entered as a string xL ys <p/q> since the mos module
-- TODO:
-- can parse a mos in that format
-- - Allow for mos to be extracted from the page's title for use as a template
-- - Add UDP listing as a column
-- - Allow for input of mode names
function p.modes_table(frame)
function p.modes_table(frame)
-- Mos is entered as "xL ys" since mos module can parse that format
local mosstring = "3L 4s"
local mosstring = "3L 4s"
local input_mos = mos.parse(mosstring)
local input_mos = mos.parse(mosstring)