Module:GameDesc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 22: Line 22:
local dataTable = require("Module:Data/" .. capitalizeFirstLetter(category) .. "/" .. game)[category]
local dataTable = require("Module:Data/" .. capitalizeFirstLetter(category) .. "/" .. game)[category]
local gameLink = frame:expandTemplate{ title = "Link", args = { "Game", game } }
local gameLink = frame:expandTemplate{ title = "Link", args = { "Game", game } }
if not dataTable[thing] then
error("Description of \"" .. thing .. "\" for " .. game .. " not found")
end
if dataTable[thing]["effect_note"] then
if dataTable[thing]["effect_note"] then
gameLink = gameLink .. frame:expandTemplate { title = 'exp', args = { dataTable[thing]["effect_note"] } }
gameLink = gameLink .. frame:expandTemplate { title = 'exp', args = { dataTable[thing]["effect_note"] } }

Navigation menu