Module:TestModule: Difference between revisions
AdamZachar (talk | contribs) No edit summary |
AdamZachar (talk | contribs) No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 94: | Line 94: | ||
end | end | ||
function p. | function p.topicListByCaseName( frame ) | ||
local output = "" | local output = "" | ||
Line 101: | Line 101: | ||
source = "CaseData", | source = "CaseData", | ||
query = "topicsByCase", | query = "topicsByCase", | ||
data = " | data = "topicName=topic_name", | ||
parameters = frame.args. | parameters = frame.args.caseTitle | ||
} | } | ||
if topics == nil then return | 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>" .. "[[ | output = output .. " <li>" .. "[[" .. topic.topicName .. "]]" | ||
end | end | ||