Difference between revisions of "Module:Test"
Jump to navigation
Jump to search
m (It's very weird...) |
m (Uhhhh....) |
||
Line 28: | Line 28: | ||
args.date = "" | args.date = "" | ||
end | end | ||
return "\'\'\'" .. string.sub(args.title, | return "\'\'\'<span class=\'plainlinks\'>" .. string.sub(args.title, 35) .. "</span>\'\'\'\n" .. args.date | ||
end | end | ||
return p | return p |
Revision as of 13:39, 18 February 2015
Documentation for this module may be created at Module:Test/doc
local p = {} function p.rss( f ) local args = f if f == mw.getCurrentFrame() then args = f:getParent().args end --[[return "<nowiki>" .. (args[1] or "") .. "</nowiki>" if args[1] == nil then return "Nothing :S" end if(args[1]:find("#")) then return string.match(args[1], '.+#%d+.+') else return string.sub(args[1], 2, -1) end]] if args.title ~= nil then args.title = "\'\'\'<span class=\'plainlinks\'>" .. args.title .. "</span>\'\'\'" else args.title = "" end if args.date ~= nil then args.date = ":" .. args.date else args.date = "" end return "\'\'\'<span class=\'plainlinks\'>" .. string.sub(args.title, 35) .. "</span>\'\'\'\n" .. args.date end return p