- 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"
Jump to navigation
Jump to search
m (がか moved page Module:View/Quest2 to Module:View/Quest without leaving a redirect) |
|||
Line 1: | Line 1: | ||
− | + | local _ = require('Module:Core') | |
− | + | local Data = require('Module:Data') | |
− | + | 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)