跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
天灾之下:危险连接官网(建设中)
天灾之下:危险连接QQ群
天灾之下:危险连接 Bilibili
冰糖服务器
冰糖服务器QQ群
天灾之下:危险连接资料站
搜索
搜索
中文(中国大陆)
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁模块:Xpd”︁的源代码
模块
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
[[雷光]]
外观
移至侧栏
隐藏
←
模块:Xpd
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
-- Expansion demo, like [[Template:Xpd]] local p = {} function p.f(frame, showwikitext, sep) local pframe, w = frame:getParent(), { '{{' } for n,v in pairs( pframe.args ) do if type(n) == "string" then table.insert( w, table.concat({ '|', p.unexpand(n), '=', p.unexpand(v) }) ) elseif n ~= 1 then table.insert( w, table.concat({ '|', p.unexpand(v) }) ) else table.insert( w, 2, v ) end end table.insert( w, '}}' ) w = table.concat( w ) local xpw = frame:preprocess( w ) w = table.concat({ '<code>', p.swt(w), '</code> → ' }) if showwikitext then w = table.concat({ w, sep, '<code>', p.swt( xpw ), '</code> → ' }) end w = table.concat( { w, xpw }, sep ) return w end function p.s(frame) return p.f(frame, false, '') end function p.p(frame) return p.f(frame, false, '\n\n') end function p.unexpand(w) local w1 = string.gsub( w, '[{}|=]', { ['{'] = '{{(}}', ['}'] = '{{)}}', ['|'] = '{{!}}', ['='] = '{{=}}', }):gsub( 'lbrace', '{{(}}' ):gsub( 'rbrace', '{{)}}' ) return w1 end function p.swt(w) local w1 = string.gsub( w, '[&<>%[%] \n\']', { ['&'] = '&', ['<'] = '<', ['>'] = '>', ['['] = '[', [']'] = ']', ["'"] = ''', [' '] = ' ', ['\n'] = '<br/>', }) return w1 end return p
该页面嵌入的页面:
模块:Xpd/doc
(
查看源代码
)
返回
模块:Xpd
。
搜索
搜索
查看“︁模块:Xpd”︁的源代码
添加语言
添加话题