Difference between revisions of "Module:Main Page RSS"
Jump to navigation
Jump to search
m (Protected "Module:Main Page RSS": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
m (Oops) |
||
Line 11: | Line 11: | ||
args.title = "\'\'\'" .. args.title .. "\'\'\'" | args.title = "\'\'\'" .. args.title .. "\'\'\'" | ||
else | else | ||
args.title = | args.title = f:expandTemplate{ title= 'Template:Version²'} | ||
end | end | ||
Revision as of 22:11, 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 args.title end return p