匿名
未登录
创建账号
登录
The Land of StarLight
搜索
查看“︁模块:Inventory slot/Aliases/Table”︁的源代码
来自The Land of StarLight
命名空间
模块
讨论
更多
更多
页面操作
阅读
查看源代码
历史
←
模块:Inventory slot/Aliases/Table
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {} p.table = function() local slot = require( [[Module:Inventory slot]] ) local aliases = mw.loadData( [[Module:Inventory slot/Aliases]] ) local aliasNames = {} local aI = 1 for name in pairs( aliases ) do -- Skip the banner aliases (except "Any Banner"), as there are so -- many of them it causes the table to be excessively long if name == 'Any Banner' or not name:find( ' Banner$' ) and not name:find( '^Matching ' ) then aliasNames[aI] = name aI = aI + 1 end end table.sort( aliasNames ) local tableRows = { ' {| class="wikitable collapsible collapsed"', '! Alias !! Output' } local rI = #tableRows + 1 for _, name in ipairs( aliasNames ) do local alias = slot.getAlias( aliases[name], {} ) local cell = {} for i, frame in ipairs( alias ) do cell[i] = slot.slot{ { frame }, parsed = true } end local aliasText = mw.html.create() aliasText:tag( 'code' ):wikitext( name ) if name:find( '^Any ' ) then aliasText:tag( 'br' ):done() :tag( 'code' ):wikitext( ( name:gsub( '^Any', 'Matching' ) ) ) end tableRows[rI] = '|' .. tostring( aliasText ) .. '||' .. table.concat( cell ) rI = rI + 1 end tableRows[rI] = '|}' return table.concat( tableRows, '\n|-\n' ) end return p
该页面使用的模板:
模块:Inventory slot/Aliases/Table/doc
(
查看源代码
)
返回
模块:Inventory slot/Aliases/Table
。
导航
快速跳转
TLSL(wiki首页)
- StarLight-Server
奇怪的折跃门
活跃玩家
重要领地合集
小黑屋
SLS官网
wiki工具
wiki工具
特殊页面
Minecraft官网
SLS下载页
MCBBS
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志