FANDOM


-- 
-- This module retrieves either the Naver (n) or Webtoons (w) release date
-- based on the Naver episode release number (used on the Naver website
-- to identify an episode. E.g. the number for Episode 2-154 is 261.
-- 
 
local p = {}
 
local rddat = mw.loadData( 'Module:ReleaseDate/rddat' )
 
function p.rdData( frame )
    local release = frame.args[1]
    local site    = frame.arge[2]
    local LinkNumber = 0
    local i = 1
    local outputTxt  = ""
 
    -- Grab the episode identifier number (LinkNumber).
    LinkNumber = tonumber( release )
 
    -- Naver (1) or Webtoons (2)? Default is Naver.
    if site == "w" then i = 2 end
 
    -- Locate the date inside rddat.
    outputTxt = outputTxt .. "rddat[LinkNumber][i]"
 
end
 
return p
--[[Category:Lua modules]]

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.