Permanently protected module

Difference between revisions of "Module:Data"

From Yugipedia
Jump to: navigation, search
(From sandbox. New model for the data module.)
(Tag: Replaced)
(Remove backwards compatibility code.)
 
Line 1: Line 1:
 
-- <pre>
 
-- <pre>
local DATA = require( 'Module:Data/loader' )()
+
return require( 'Module:Data/loader' )()
 
 
return setmetatable( {
 
getAnimeRelease = DATA.anime.getRelease,
 
getAnimeSeries = DATA.anime.getSeries,
 
 
 
getMangaRelease = DATA.manga.getRelease,
 
getMangaSeries = DATA.manga.getSeries,
 
 
 
getVideoGameRelease = DATA.videoGames.getRelease,
 
getVideoGame = DATA.videoGames.getName,
 
}, {
 
__index = DATA,
 
__call  = getmetatable( DATA ).__call,
 
} )
 
 
-- </pre>
 
-- </pre>

Latest revision as of 23:34, 21 January 2020

Module documentation[create]
-- <pre>
return require( 'Module:Data/loader' )()
-- </pre>