Module:TestModule: Difference between revisions

AdamZachar (talk | contribs)
No edit summary
AdamZachar (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 105: Line 105:
   }
   }


  if topics == nil then return "ABC" end
  if topics == nil then return output end


  output = output .. "<ul>"
  output = output .. "<ul>"


  for i, topic in ipairs(topics) do
  for i, topic in ipairs(topics) do
   output = output .. " <li>" .. "[[:Category:" .. topic.topicName .. "]]"
   output = output .. " <li>" .. "[[" .. topic.topicName .. "]]"
  end
  end