Module:Indicator datasets table: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:


      
      
     return table.concat(ids, ", ")
     return table.concat(ids, "# ")
end
end


return p
return p

Revision as of 13:52, 2 May 2024

Documentation for this module may be created at Module:Indicator datasets table/doc

local p = {}

function p.getDatasets(frame)
    local articleids = frame.args.articleids
    if not articleids then
        return "Error: articleids not provided"
    end
    
    local ids = mw.text.split(articleids, ",")
    local dates = {}
    
    

    
    return table.concat(ids, "# ")
end

return p