Module:Scale tree: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 195: Line 195:
local depth = frame.args["depth"] or 5
local depth = frame.args["depth"] or 5
local comments_unparsed = frame.args["Comments"] or ""
local comments_unparsed = frame.args["Comments"] or ""
local comments = p.parse_kv_pairs(comments_unparsed:gsub("(%{%{.-%}%})", frame:preprocess("%1"))) or {}
local comments = p.parse_kv_pairs(comments_unparsed:gsub("({{[^{}}]+}})", frame:preprocess("%1"))) or {}
local out_str = p._scale_tree(mos, depth, comments)
local out_str = p._scale_tree(mos, depth, comments)