因为以下原因,您没有权限编辑本页:
您可以查看和复制此页面的源代码。
local p = {}
-- Finds the next key key <= or >= the given i.
-- operator is ±1
local function findItemRange(data, i, operator)
local bestIndex = nil
i = i * operator
for k, v in pairs(data) do
local kop = type(k) == 'number' and k * operator
if kop and kop <= i and (bestIndex == nil or kop > bestIndex * operator) then
bestIndex = k
end
end
if bestIndex then return data[bestIndex] else return nil end
end
local function load(datamodule, frame)
local args = frame.args
local data = mw.loadData(datamodule)
for i = 1, 20 do
000
1:0
本页使用的模板:
- 模板:Module other(查看源代码)
- 模板:Module rating(查看源代码)
- 模板:Ombox(查看源代码)
- 模板:Para(查看源代码)
- 模板:Sandbox other(查看源代码)
- 模板:Var(查看源代码)
- 模块:Arguments(查看源代码)
- 模块:Effective protection level(查看源代码)
- 模块:LoadData/doc(查看源代码)
- 模块:Message box(查看源代码)
- 模块:Message box/configuration(查看源代码)
- 模块:Message box/ombox.css(查看源代码)
- 模块:String(查看源代码)
- 模块:Yesno(查看源代码)
返回模块:LoadData。