Memory Alpha
Advertisement
Memory Alpha
local p = {}

local EpisodeDataA = mw.loadData( 'Module:EpisodeData/A' )
 
function p.A( frame )
    local A = frame.args[1]
 
    return EpisodeDataA[A] or "I AM ERROR"
end

local EpisodeDataC = mw.loadData( 'Module:EpisodeData/C' )
 
function p.C( frame )
    local C = frame.args[1]
 
    return EpisodeDataC[C] or "I AM ERROR"
end

local EpisodeDataCP = mw.loadData( 'Module:EpisodeData/CP' )
 
function p.CP( frame )
    local CP = frame.args[1]
 
    return EpisodeDataCP[CP] or "I AM ERROR"
end

local EpisodeDataCR = mw.loadData( 'Module:EpisodeData/CR' )
 
function p.CR( frame )
    local CR = frame.args[1]
 
    return EpisodeDataCR[CR] or "I AM ERROR"
end

local EpisodeDataCT = mw.loadData( 'Module:EpisodeData/CT' )
 
function p.CT( frame )
    local CT = frame.args[1]
 
    return EpisodeDataCT[CT] or "I AM ERROR"
end

local EpisodeDataD = mw.loadData( 'Module:EpisodeData/D' )
 
function p.D( frame )
    local D = frame.args[1]
 
    return EpisodeDataD[D] or "I AM ERROR"
end

local EpisodeDataM = mw.loadData( 'Module:EpisodeData/M' )
 
function p.M( frame )
    local M = frame.args[1]
 
    return EpisodeDataM[M] or "I AM ERROR"
end
 
local EpisodeDataN = mw.loadData( 'Module:EpisodeData/N' )
 
function p.N( frame )
    local N = frame.args[1]
 
    return EpisodeDataN[N] or "I AM ERROR"
end

local EpisodeDataP = mw.loadData( 'Module:EpisodeData/P' )
 
function p.P( frame )
    local P = frame.args[1]
 
    return EpisodeDataP[P] or "I AM ERROR"
end

local EpisodeDataT = mw.loadData( 'Module:EpisodeData/T' )
 
function p.T( frame )
    local T = frame.args[1]
 
    return EpisodeDataT[T] or "I AM ERROR"
end

local EpisodeDataY = mw.loadData( 'Module:EpisodeData/Y' )
 
function p.Y( frame )
    local Y = frame.args[1]
 
    return EpisodeDataY[Y] or "I AM ERROR"
end
 
return p