Memory Alpha
Advertisement
Memory Alpha
Module documentation ()

local p = {}
local PodcastDataA = mw.loadData('Module:PodcastData/A')

function p.A(frame)
  local e = frame.args[1]

  return PodcastDataA[e] or "I AM ERROR"
end

function p.CR(frame)
  local PodcastDataCR = mw.loadData('Module:PodcastData/CR')
  local CR = frame.args[1]

  return PodcastDataCR[CR] or "I AM ERROR"
end

function p.D(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/D/' .. s)[e] or 'I AM ERROR'
end

function p.L(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/L/' .. s)[e] or 'I AM ERROR'
end

function p.M(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/M/' .. s)[e] or 'I AM ERROR'
end

function p.N(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/N/' .. s)[e] or 'I AM ERROR'
end

function p.P(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/P/' .. s)[e] or 'I AM ERROR'
end

function p.S(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/S/' .. s)[e] or 'I AM ERROR'
end

function p.T(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/T/' .. s)[e] or 'I AM ERROR'
end

function p.Y(frame)
  local e = frame.args[1]
  local s = PodcastDataA[e] or 'TTF'

  return mw.loadData('Module:PodcastData/Y/' .. s)[e] or 'I AM ERROR'
end

return p
Advertisement