卡厄思
梦
境
菜单
首页
回到首页
WIKI工具
全站样式
全站JS
修改导航栏
测试
沙盒
可视化管理器
战斗员管理器
卡牌管理器
伙伴管理器
装备管理器
词典管理器
图鉴
战斗员
伙伴
装备
怪物卡牌
中立卡牌
词典
小工具
配队模拟器
节奏榜生成器
搜索
链入页面
相关更改
特殊页面
页面信息
最近更改
登录
模块
查看“︁模块:中立&怪物卡牌灵光一闪”︁的源代码
←
模块:中立&怪物卡牌灵光一闪
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} local data = mw.loadData("模块:中立&怪物卡牌灵光一闪/data") -- 主函数 function p.show(frame) local output = "" -- 构建包含所有数据的表格 output = output .. "=== 结果 ===\n" local html = mw.html.create('table') html:addClass('wikitable sortable') html:attr('id', 'card-results-table') -- 表头 local headerRow = html:tag('tr') headerRow:tag('th'):wikitext('描述') headerRow:tag('th'):wikitext('最低费用') headerRow:tag('th'):wikitext('最高费用') headerRow:tag('th'):wikitext('类型') headerRow:tag('th'):wikitext('包含机制') headerRow:tag('th'):wikitext('排除机制') headerRow:tag('th'):wikitext('职业') -- 数据行 for _, item in ipairs(data) do local row = html:tag('tr') row:attr('data-type', item.type or "") row:attr('data-dict-include', item.dict_include or "") row:attr('data-dict-exclude', item.dict_exclude or "") row:attr('data-class', item.class or "") row:attr('data-cost-min', tostring(item.cost_min)) row:attr('data-cost-max', tostring(item.cost_max)) row:tag('td'):wikitext(item.desc_global or "") row:tag('td'):wikitext(tostring(item.cost_min)) row:tag('td'):wikitext(tostring(item.cost_max)) row:tag('td'):wikitext(item.type or "") row:tag('td'):wikitext(item.dict_include or "") row:tag('td'):wikitext(item.dict_exclude or "") row:tag('td'):wikitext(item.class or "") end output = output .. tostring(html) output = output .. "\n\n<div id='result-count'>''共 " .. #data .. " 条结果''</div>" return output end return p
该页面使用的模板:
模块:中立&怪物卡牌灵光一闪/doc
(
查看源代码
)
返回
模块:中立&怪物卡牌灵光一闪
。