• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Module:Data"

From Kancolle Wiki
Jump to navigation Jump to search
(Created page with "return { load = function (name) return mw.loadData('Data/' .. name) end }")
 
m (7 revisions imported)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
local _ = require('Module:Core')
 +
 
return {
 
return {
   load = function (name)
+
   load = function (...)
     return mw.loadData('Data/' .. name)
+
     return mw.loadData(_.join({ 'Module:Data', unpack(arg) }, '/'))
 
   end
 
   end
 
}
 
}

Latest revision as of 12:48, 12 May 2021

Documentation for this module may be created at Module:Data/doc

local _ = require('Module:Core')

return {
  load = function (...)
    return mw.loadData(_.join({ 'Module:Data', unpack(arg) }, '/'))
  end
}