• 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:View/Quest"

From Kancolle Wiki
Jump to navigation Jump to search
m (がか moved page Module:View/Quest2 to Module:View/Quest without leaving a redirect)
Line 1: Line 1:
return {
+
local _ = require('Module:Core')
  render = function ()
+
local Data = require('Module:Data')
    return 'foo'
+
local View = require('Module:View')
   end
+
 
}
+
local function render(args)
 +
  local category = args.explicit[1]
 +
  local data = Data.load(category)
 +
   return data[1].title
 +
end
 +
 
 +
return View(render)

Revision as of 08:48, 22 July 2018

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

local _ = require('Module:Core')
local Data = require('Module:Data')
local View = require('Module:View')

local function render(args)
  local category = args.explicit[1]
  local data = Data.load(category)
  return data[1].title
end

return View(render)