打开主菜单
首页
随机
登录
设置
关于iFx Wiki
免责声明
iFx Wiki
搜索
查看“模块:首页”的源代码
←
模块:首页
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
local smw = require("Module:SMWUtils") local p = {} function p.latest_list(frame) local user_query = frame.args.query local query = user_query .. [[ |limit=20 |offset=0 |sort=Modification date |order=desc ]] local pages = smw.query_pages(query) local ul = mw.html.create("ul") for i, t in ipairs(pages) do ul:tag("li"):wikitext("[[" .. t .. "]]") end return ul:done() end function p.latest_flat_list(frame) local user_query = frame.args.query local query = user_query .. [[ |limit=20 |offset=0 |sort=Modification date |order=desc ]] local pages = smw.query_pages(query) local ul = mw.html.create() local first = true for i, t in ipairs(pages) do if first then first = false else ul:wikitext(", ") end ul:tag("span"):wikitext("[[" .. t .. "]]") end return ul:done() end return p
该页面使用的模板:
模块:首页/doc
(
查看源代码
)
返回至
模块:首页
。