Module:Template input parse: Difference between revisions

Ganaram inukshuk (talk | contribs)
Added fuzzy option for parsing a string of ratios (entries that are a single value are interpreted as a ratio with denominator 1); changed parse-numeric-pairs functions to have options to change both delimiters (between entries and within entries)
Ganaram inukshuk (talk | contribs)
m Cleared todo: since tip's purpose is to parse template input, the absence of input should just be an empty table, not nil
Line 2: Line 2:


-- Helper module for various modules that require entry of multiple labels/values
-- Helper module for various modules that require entry of multiple labels/values
-- TODO:
-- Functions that return size-0 arrays should return nil instead.


-- Helper function
-- Helper function