Module:Experience/table: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Created page with "require('strict') require('Module:Mw.html extension') local data = mw.loadData('Module:Experience/data') local yesno = require('Module:Yesno') local lang = mw.language.getContentLanguage() local p = {} function p.main(frame) local args = frame:getParent().args local default_collapsed = yesno(args.collapsed) local collapsed = {} for _, label in ipairs(data.labels) do local this_collapsed = yesno(template_args['collapsed-' .. label.name:tolower()]) if this_colla...")
 
mNo edit summary
Line 13: Line 13:


for _, label in ipairs(data.labels) do
for _, label in ipairs(data.labels) do
local this_collapsed = yesno(template_args['collapsed-' .. label.name:tolower()])
local this_collapsed = yesno(args['collapsed-' .. label.name:tolower()])
if this_collapsed == nil then
if this_collapsed == nil then
this_collapsed = default_collapsed
this_collapsed = default_collapsed