Module:Changelog: Difference between revisions
Tag: Undo |
m invokable for write_changelog |
||
Line 12: | Line 12: | ||
description = line["Description"] | description = line["Description"] | ||
for index2, tag in ipairs(line["Tags"]) do | for index2, tag in ipairs(line["Tags"]) do | ||
if tag == tag_to_filter then | if tag == tag_to_filter or tag_to_filter == 'All' then | ||
lines = lines .. description .. "<br>" | lines = lines .. description .. "<br>" | ||
end | end | ||
Line 32: | Line 32: | ||
return "" | return "" | ||
end | end | ||
end | |||
p.write_changelog = function(frame) | |||
local date = frame.args[1] | |||
local tag_to_filter = frame.args[2] | |||
return write_changelog(date, tag_to_filter) | |||
end | end | ||