Difference between revisions of "Module:Main Page RSS"

From Industrial-Craft-Wiki
Jump to navigation Jump to search
m (Added space that apparently is a tradition)
(Rephrased some stuff in the Main Page RSS module.)
Line 14: Line 14:
   end
   end


   return "<pre><span style=\"color:#006400\"> The \'\'\'Latest IndustrialCraft²\'\'\' version is " .. args.title .. " and can be downloaded at 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>"
   return "<pre><span style=\"color:#006400\"> The \'\'\'Latest IndustrialCraft²\'\'\' version is " .. args.title .. " and can be downloaded from the awesome <span class=\"plainlinks\">[http://jenkins.ic2.player.to/job/IC2_experimental/ <span style=\"color:#006400; text-decoration:underline;\">IndustrialCraft² Jenkins</span>]</span>!</span></pre>"
end
end


return p
return p

Revision as of 00:06, 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 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 awesome <span class=\"plainlinks\">[http://jenkins.ic2.player.to/job/IC2_experimental/ <span style=\"color:#006400; text-decoration:underline;\">IndustrialCraft² Jenkins</span>]</span>!</span></pre>"
end

return p