Difference between revisions of "Module:Main Page RSS"

From Industrial-Craft-Wiki
Jump to navigation Jump to search
m (Since it insists on being in it's own <p>)
m (It's quite close to looking right)
Line 14: Line 14:
   end
   end


   return "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>!"
   return "<pre>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>!</pre>"
end
end


return p
return p

Revision as of 22:25, 19 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>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>!</pre>"
end

return p