Difference between revisions of "Module:Main Page RSS"
Jump to navigation
Jump to search
KamranMackey (talk | contribs) |
m (This could work as a fix) |
||
Line 8: | Line 8: | ||
end | end | ||
if args.title ~= nil then | if string.find(args.title, "Failed to load RSS") == nil and args.title ~= nil then | ||
args.title = "\'\'\'" .. args.title .. "\'\'\'" | args.title = "\'\'\'" .. args.title .. "\'\'\'" | ||
else | else |
Revision as of 16:24, 23 February 2015
Documentation for this module may be created at Module:Main Page RSS/doc
local p = {} function p.rss( f ) local args = f if f == mw.getCurrentFrame() then args = f:getParent().args end if string.find(args.title, "Failed to load RSS") == nil and args.title ~= nil then args.title = "\'\'\'" .. args.title .. "\'\'\'" else args.title = f:expandTemplate{ title= 'Template:Version²'} end return "<pre><span style=\"color:#006400\"> The \'\'\'Latest IndustrialCraft²\'\'\' version is " .. args.title .. " and can be downloaded from the <span class=\"plainlinks\">[http://jenkins.ic2.player.to/job/IC2_experimental/ <span style=\"color:#006400; text-decoration:underline;\">IC² Jenkins</span>]</span>!</span></pre>" end return p