跳转到内容

模块:Citation/CS1/doc

来自维基百科
Admin留言 | 贡献2025年9月28日 (日) 23:23的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

这是模块:Citation/CS1的文档页面

<section begin=header /> <section end=header />此模块及关联的子页面为引文格式1引文格式2引用模板提供支持。通常来说不应直接调用此模块,而是用CS1与CS2模板调用。 <section begin=module_components_table /> 如下文件涉及对CS1与CS2引用模板的支持:

CS1 | CS2模块
线上 沙盒 描述
Gold padlock Module:Citation/CS1 Module:Citation/CS1/sandbox [编辑] 主模块,依输入的模板参数生成相应的引文
Module:Citation/CS1/Configuration Module:Citation/CS1/Configuration/sandbox [编辑] 配置表
Module:Citation/CS1/Whitelist Module:Citation/CS1/Whitelist/sandbox [编辑] 现行与已过时不推荐使用的CS1与CS2参数
Module:Citation/CS1/Date validation Module:Citation/CS1/Date validation/sandbox [编辑] 日期格式验证函数
Module:Citation/CS1/Error Module:Citation/CS1/Error/sandbox [编辑] 错误/维护信息相关函数
Module:Citation/CS1/Identifiers Module:Citation/CS1/Identifiers/sandbox [编辑] 支持命名标识符(ISBN、DOI、PMID等)的函数
Module:Citation/CS1/Language Module:Citation/CS1/Language/sandbox [编辑] 语言相关函数
Module:Citation/CS1/Links Module:Citation/CS1/Links/sandbox [编辑] 维基内、外链相关函数
Module:Citation/CS1/People Module:Citation/CS1/People/sandbox [编辑] 人名列表相关函数
Module:Citation/CS1/Utilities Module:Citation/CS1/Utilities/sandbox [编辑] 简单无副作用的辅助函数(主要为字串/格式相关)
Module:Citation/CS1/COinS Module:Citation/CS1/COinS/sandbox [编辑] 支持CS1与CS2模板元数据渲染的函数
Module:Citation/CS1/styles.css Module:Citation/CS1/sandbox/styles.css [编辑] 为CS1与CS2模板提供CSS样式
Silver padlock Module:Citation/CS1/Suggestions Module:Citation/CS1/Suggestions/sandbox [编辑] 将常见错误参数名映射到有效参数名的列表

<section end=module_components_table />

其他文档:

测试用例:

调试: 欲调试该模块,可通过在编辑框下方的“调试控制台”中输入以下代码查看模块的返回值: <syntaxhighlight lang="Lua">mw.logObject(p.citation(mw.getCurrentFrame():newChild{args = {--[[此处填写调试用的模板参数,例如['title'] = 'test', ['url'] = 'http://example.com']] }}))</syntaxhighlight>