Line 3: Line 3:
 
function p.show(frame)
 
function p.show(frame)
  
   local slotData = mw.slots.slotData("ws-data", "Timeline")
+
   local slotData = mw.slots.slotData("ws-data")
 
   local result = ""   
 
   local result = ""   
 
   for i,milestone in ipairs(slotData.milestones) do
 
   for i,milestone in ipairs(slotData.milestones) do

Latest revision as of 10:30, 13 July 2023

Documentation for this module may be created at Module:Timeline/doc

local p = {}

function p.show(frame)

  local slotData = mw.slots.slotData("ws-data")
  local result = ""  
  for i,milestone in ipairs(slotData.milestones) do
    result = result .. frame:callParserFunction("#widget:Timeline",milestone)
  end

  return result
end

return p