打开/关闭搜索
搜索
打开/关闭菜单
1K
5.2K
4
8.2K
星砂岛百科
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
本站正在进行早期测试,目前仍存在许多内容的缺失。
查看“︁模块:模块骨架”︁的源代码
来自星砂岛百科
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:模块骨架
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:已验证邮箱用户
您没有权限编辑
模块
命名空间内的页面。
您必须确认您的电子邮件地址才能编辑页面。请通过
参数设置
设置并确认您的电子邮件地址。
您可以查看和复制此页面的源代码。
local common = require('Module:Common') local p = {} local data_cache local index_by_name local function load_data() if data_cache then return end data_cache = common.loadJsonData('数据:Example/example_index.json') or { by_name = {} } index_by_name = data_cache.by_name or {} end local function find_record(key) load_data() local resolved = common.trim(key) if resolved == '' then resolved = common.getCurrentTitleText() end return index_by_name[resolved] or index_by_name[common.normalizeKey(resolved)] end function p.getField(frame) local key = common.getArg(frame, 1, '') local field = common.getArg(frame, 2, '') if field == '' then return '' end local record = find_record(key) if not record then return '' end return common.toText(record[field]) end return p
该页面嵌入的页面:
模块:模块骨架/doc
(
查看源代码
)
返回
模块:模块骨架
。
查看“︁模块:模块骨架”︁的源代码
来自星砂岛百科