跳转到内容
存档计划
通知
user-interface-preferences
中文
个人工具
创建账号
登录
搜索
打开主菜单
608
篇文章
存档计划
导航
首页
最近更改
随机页面
共笔茶馆
社群首页
管理员告示板
MediaWiki帮助
计划
沙盒
服务状态
外部搜索
置顶页面
未名残章
梗体中文
茶馆周报
MediaWiki使用笔记
湖言乱语(人造语言)
硬件数据库
友情链接
WordPress.com分馆
Minecraft基岩版开发Wiki
中文Minecraft Wiki
奇葩栖息地
AzureZeng's Wiki
MCG大图书馆
异世界百科
欢迎来到存档计划(Lake桑的存档馆)!
由于多起破坏,本站已限制匿名用户操作。注册或联系站长。
看看站长的
新皮肤Lakeus
。
欢迎加入Discord服务器:
W56rsgK
。
加入QQ频道:
存档计划编辑交流
。
我们搬迁到新域名啦:
lakeus.xyz
也来看看
WordPress.com分馆
。
来看看
梗体中文
相关内容!
..-/-./-/../-/.-.././-../..-./.-./.-/--./--/./-./-
查看“Module:CGroupViewer”的源代码
来自存档计划,Project Archive by Lakejason0
←
Module:CGroupViewer
命名空间
模块
讨论
查看
阅读
查看源代码
查看历史
更多
刷新
工具
链入页面
相关更改
特殊页面
页面信息
变体
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local z = {} local error = require( 'Module:Error' ) local function makeText( frame, v ) local text = v.text if not v.preprocessed then text = frame:preprocess( text ) end return mw.text.trim( text ) .. '\n' end local function makeItem( frame, v ) local text = '* ' if v.original then text = text .. '原文:' .. v.original .. ';' end return text .. '-{D|' .. v.rule .. '}-当前显示为:-{|' .. v.rule .. '}-\n' end function z.main( frame ) local name = frame.args[1] if not name or name == '' then return '' end local data = require( 'Module:CGroup/' .. name ) if type( data ) ~= 'table' or not data.name or data.name == '' then return error.error{ '指定模块“' .. name .. '”不是有效的转换组' } end if data.name ~= name then return frame:expandTemplate{ title = 'Template:CGroup redirect', args = { 'Module:CGroup/' .. data.name } } end local pieces = { '<strong>以下是[[wzh:Project:用词约定|公共转换组]]“' .. data.description .. '”。</strong>\n\n' } for i, v in ipairs( data.content ) do if v.type == 'text' then table.insert( pieces, makeText( frame, v ) ) elseif v.type == 'item' then table.insert( pieces, makeItem( frame, v ) ) end end table.insert( pieces, '[[Category:公共转换组模板|' .. name .. ']]' ) return table.concat( pieces ) end function z.dialog( frame ) local name = frame.args[1] if not name or name == '' then return '' end local data = require( 'Module:CGroup/' .. name ) local pieces = { '<div class="mw-collapsible mw-collapsed"><span class="plainlinks" style="float: right;">[[', tostring( mw.uri.fullUrl( 'Module:CGroup/' .. name, { action = 'edit' } ) ), ' 编辑]]</span>\n', '; 本文使用[[wzh:Project:用词约定|公共转换组]]“' .. data.description .. '”。\n', '<div class="mw-collapsible-content">\n' } for i, v in ipairs( data.content ) do if v.type == 'item' then table.insert( pieces, makeItem( frame, v ) ) end end table.insert( pieces, '</div></div>' ) return table.concat( pieces ) end function z.json( frame ) local name = frame.args[1] if not name or name == '' then return 'null' end local data = require( 'Module:CGroup/' .. name ) local json = require( 'Module:MicroJSON' ) return json.encode_object( data, { name = '', description = '', content = { { type = '', [true] = '' }, }, } ) end return z
本页使用的模板:
Template:Documentation header
(
查看源代码
)
Module:CGroupViewer/doc
(
查看源代码
)
Module:Documentation
(
查看源代码
)
Module:ProcessArgs
(
查看源代码
)
返回
Module:CGroupViewer
。
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。
更多信息
确定