Module:GameDesc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 7: Line 7:
local args = getArgs(frame)
local args = getArgs(frame)
if not args[3] then
if not args[3] then
return "\n| style=\"text-align:center\" | " .. args[1] .. "\n| " .. args[2] .. "[[Category:Pages using old GameDesc format]]\n|-"
local game = ""
if args[1] then
game = args[1]
end
local desc = ""
if args[2] then
desc = args[2]
end
return "\n| style=\"text-align:center\" | " .. game .. "\n| " .. desc .. "[[Category:Pages using old GameDesc format]]\n|-"
else
else
local category = args[1]:lower() --I.e. is it skill or item?
local category = args[1]:lower() --I.e. is it skill or item?

Navigation menu