https://bugzilla.wikimedia.org/show_bug.cgi?id=66278
--- Comment #2 from Jackmcbarn <[email protected]> --- Take this module, for example: local p = {} p.continents = { na = { area = 24490000, pop = 542056000 }, sa = { area = 17840000, pop = 392555000 }, antarctica = { area = 13720000, pop = 4490 } } p.oceans = { atlantic = { area = 82400000, volume = 323600000 }, pacific = { area = 165250000, volume = 714000000 } } local mt = {} function mt.__call(t, frame) for _,v in ipairs(frame.args) do t = t[v] end return t end for _,v in pairs(p) do setmetatable(v, mt) end return p This module allows other modules to retrieve data via "foo = p.continents.na.area", and wikitext to retrieve data via "{{#invoke:Foo|continents|na|area}}". -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
