跳转到内容

Module:Documentation/config:修订间差异

勤求古训,博采众方
删除的内容 添加的内容
创建中文配置,支持 -{zh-hans;zh-hant;}- 简繁变体
 
清理 -{}- 语法,只保留简体中文
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
-- Module:Documentation/config
-- Module:Documentation/config
-- 中文配置,使用 -{}- 法支持繁变
-- 简体中文配置(无言转换),配合纯简体站点使用
-- message() 函数会通过 frame:preprocess() 处理这些转换标签
-- message() 函数会通过 frame:preprocess() 处理,但配置中已不含 -{}- 语法
return {
return {
-- 子页面名称(技术标识,不需要转换)
-- 子页面名称(技术标识,不需要转换)
第12行: 第12行:
['templatestyles'] = 'Module:Documentation/styles.css',
['templatestyles'] = 'Module:Documentation/styles.css',


-- CSS 类名(技术标识,不需要转换
-- CSS 类名(技术标识)
['toolbar-class'] = 'documentation-toolbar',
['toolbar-class'] = 'documentation-toolbar',
['container'] = 'documentation-container',
['container'] = 'documentation-container',
第20行: 第20行:
['main-div-heading-class'] = 'documentation-heading',
['main-div-heading-class'] = 'documentation-heading',
['start-box-link-classes'] = 'mw-editsection-like plainlinks',
['start-box-link-classes'] = 'mw-editsection-like plainlinks',
['start-box-link-id'] = 'doc_editlinks',
['sandbox-class'] = 'documentation-sandbox',
['end-box-class'] = 'documentation-metadata',
['end-box-class'] = 'documentation-metadata',
['end-box-plainlinks'] = 'plainlinks',
['end-box-plainlinks'] = 'plainlinks',
第25行: 第27行:
-- 标题文字
-- 标题文字
['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]',
['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]',
['template-namespace-heading'] = '-{zh-hans:模板文档; zh-hant:模板說明;}-',
['template-namespace-heading'] = '模板文档',
['module-namespace-heading'] = '-{zh-hans:模块文档; zh-hant:模組說明;}-',
['module-namespace-heading'] = '模块文档',
['file-namespace-heading'] = '-{zh-hans:摘要; zh-hant:摘要;}-',
['file-namespace-heading'] = '摘要',
['other-namespaces-heading'] = '-{zh-hans:文档; zh-hant:文件;}-',
['other-namespaces-heading'] = '文档',


-- 链接显示文字
-- 链接显示文字
['view-link-display'] = '-{zh-hans:查看; zh-hant:檢視;}-',
['view-link-display'] = '查看',
['edit-link-display'] = '-{zh-hans:编辑; zh-hant:編輯;}-',
['edit-link-display'] = '编辑',
['history-link-display'] = '-{zh-hans:查看历史; zh-hant:檢視歷史;}-',
['history-link-display'] = '查看历史',
['purge-link-display'] = '-{zh-hans:清除缓存; zh-hant:清除快取;}-',
['purge-link-display'] = '清除缓存',
['create-link-display'] = '-{zh-hans:创建; zh-hant:建立;}-',
['create-link-display'] = '创建',


-- 预加载模板路径
-- 预加载模板路径
第49行: 第51行:
-- 沙盒提示文案
-- 沙盒提示文案
['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]',
['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]',
['sandbox-notice-pagetype-template'] = '-{zh-hans:模板沙盒页; zh-hant:模板沙盒頁;}-',
['sandbox-notice-pagetype-template'] = '模板沙盒页',
['sandbox-notice-pagetype-module'] = '-{zh-hans:模块沙盒页; zh-hant:模組沙盒頁;}-',
['sandbox-notice-pagetype-module'] = '模块沙盒页',
['sandbox-notice-pagetype-other'] = '-{zh-hans:沙盒页; zh-hant:沙盒頁;}-',
['sandbox-notice-pagetype-other'] = '沙盒页',
['sandbox-notice-blurb'] = '-{zh-hans:这是$1的$2。; zh-hant:這是$1的$2。;}-',
['sandbox-notice-blurb'] = '这是$1的$2。',
['sandbox-notice-diff-blurb'] = '-{zh-hans:这是$1的$2($3)。; zh-hant:這是$1的$2($3)。;}-',
['sandbox-notice-diff-blurb'] = '这是$1的$2($3)。',
['sandbox-notice-compare-link-display'] = '-{zh-hans:差异; zh-hant:差異;}-',
['sandbox-notice-compare-link-display'] = '差异',
['sandbox-notice-testcases-link-display'] = '-{zh-hans:测试样例; zh-hant:測試樣例;}-',
['sandbox-notice-testcases-link-display'] = '测试样例',
['sandbox-notice-testcases-blurb'] = '-{zh-hans:另请参阅$1的配套子页面。; zh-hant:另請參閱$1的配套子頁面。;}-',
['sandbox-notice-testcases-blurb'] = '另请参阅$1的配套子页面。',
['sandbox-notice-testcases-run-link-display'] = '-{zh-hans:执行; zh-hant:執行;}-',
['sandbox-notice-testcases-run-link-display'] = '执行',
['sandbox-notice-testcases-run-blurb'] = '-{zh-hans:另请参阅$1的配套子页面$2)。; zh-hant:另請參閱$1的配套子頁面($2);}-',
['sandbox-notice-testcases-run-blurb'] = '另请参阅$1的配套子页面$2($3)。',


-- 分类名称
-- 分类名称
['sandbox-category'] = '-{zh-hans:模板沙盒; zh-hant:模板沙盒;}-',
['sandbox-category'] = '模板沙盒',
['module-sandbox-category'] = '-{zh-hans:模块沙盒; zh-hant:模組沙盒;}-',
['module-sandbox-category'] = '模块沙盒',
['other-sandbox-category'] = '-{zh-hans:沙盒; zh-hant:沙盒;}-',
['other-sandbox-category'] = '沙盒',


-- 嵌入来源提示
-- 嵌入来源提示
['transcluded-from-blurb'] = '-{zh-hans:上述文档嵌入自$1。; zh-hant:上述文件嵌入自$1。;}-',
['transcluded-from-blurb'] = '上述文档嵌入自$1。',
['create-module-doc-blurb'] = '-{zh-hans:您可以$1此Scribunto模块的文档页。; zh-hant:您可以$1此Scribunto模組的文件頁。;}-',
['create-module-doc-blurb'] = '您可以$1此Scribunto模块的文档页。',


-- 实验区提示
-- 实验区提示
['experiment-blurb-template'] = '-{zh-hans:编者可以在本模板的$1和$2页面进行实验。; zh-hant:編者可以在本模板的$1和$2頁面進行實驗。;}-',
['experiment-blurb-template'] = '编者可以在本模板的$1和$2页面进行实验。',
['experiment-blurb-module'] = '-{zh-hans:编者可以在本模块的$1和$2页面进行实验。; zh-hant:編者可以在本模組的$1和$2頁面進行實驗。;}-',
['experiment-blurb-module'] = '编者可以在本模块的$1和$2页面进行实验。',


-- 沙盒链接显示
-- 沙盒链接显示
['sandbox-link-display'] = '-{zh-hans:沙盒; zh-hant:沙盒;}-',
['sandbox-link-display'] = '沙盒',
['sandbox-edit-link-display'] = '-{zh-hans:编辑; zh-hant:編輯;}-',
['sandbox-edit-link-display'] = '编辑',
['sandbox-create-link-display'] = '-{zh-hans:创建; zh-hant:建立;}-',
['sandbox-create-link-display'] = '创建',
['compare-link-display'] = '-{zh-hans:差异; zh-hant:差異;}-',
['compare-link-display'] = '差异',
['mirror-link-display'] = '-{zh-hans:镜像; zh-hant:鏡像;}-',
['mirror-link-display'] = '镜像',
['mirror-edit-summary'] = '-{zh-hans:创建$1的沙盒版本; zh-hant:建立$1的沙盒版本;}-',
['mirror-edit-summary'] = '创建$1的沙盒版本',


-- 测试样例
-- 测试样例
['testcases-link-display'] = '-{zh-hans:测试样例; zh-hant:測試樣例;}-',
['testcases-link-display'] = '测试样例',
['testcases-edit-link-display'] = '-{zh-hans:编辑; zh-hant:編輯;}-',
['testcases-edit-link-display'] = '编辑',
['testcases-create-link-display'] = '-{zh-hans:创建; zh-hant:建立;}-',
['testcases-create-link-display'] = '创建',
['testcases-run-link-display'] = '-{zh-hans:执行; zh-hant:執行;}-',
['testcases-run-link-display'] = '执行',


-- /doc 链接
-- /doc 链接
['doc-link-display'] = '/doc',
['doc-link-display'] = '/doc',
['add-categories-blurb'] = '-{zh-hans:请将分类添加至$1子页面。; zh-hant:請將分類添加至$1子頁面。;}-',
['add-categories-blurb'] = '请将分类添加至$1子页面。',


-- 页面类型
-- 页面类型
['template-pagetype'] = '-{zh-hans:模板; zh-hant:模板;}-',
['template-pagetype'] = '模板',
['module-pagetype'] = '-{zh-hans:模块; zh-hant:模組;}-',
['module-pagetype'] = '模块',
['default-pagetype'] = '-{zh-hans:页面; zh-hant:頁面;}-',
['default-pagetype'] = '页面',


-- 子页面链接
-- 子页面链接
['subpages-link-display'] = '-{zh-hans:本$1的子页面; zh-hant:本$1的子頁面;}-',
['subpages-link-display'] = '本$1的子页面',
['subpages-blurb'] = '-{zh-hans:$1。; zh-hant:$1。;}-',
['subpages-blurb'] = '$1。',


-- Print 版本
-- Print 版本
['print-link-display'] = '/Print',
['print-link-display'] = '/Print',
['print-blurb'] = '-{zh-hans:此模板有$1打印版本。如修改此模板,请同时更新打印版本。; zh-hant:此模板有$1列印版本。如修改此模板,請同時更新列印版本。;}-',
['print-blurb'] = '此模板有$1打印版本。如修改此模板,请同时更新打印版本。',
['display-print-category'] = false,
['display-print-category'] = false,
['print-category'] = '-{zh-hans:有打印版本的模板; zh-hant:有列印版本的模板;}-',
['print-category'] = '有打印版本的模板',


-- 跟踪分类
-- 跟踪分类
['display-strange-usage-category'] = false,
['display-strange-usage-category'] = false,
['strange-usage-category'] = '-{zh-hans:有奇怪((documentation))用法的页面; zh-hant:有奇怪((documentation))用法的頁面;}-',
['strange-usage-category'] = '有奇怪((documentation))用法的页面',
}
}

2026年6月21日 (日) 09:51的最新版本

-- Module:Documentation/config
-- 简体中文配置(无语言转换),配合纯简体站点使用
-- message() 函数仍会通过 frame:preprocess() 处理,但配置中已不含 -{}- 语法
return {
	-- 子页面名称(技术标识,不需要转换)
	['doc-subpage'] = 'doc',
	['sandbox-subpage'] = 'sandbox',
	['testcases-subpage'] = 'testcases',
	['print-subpage'] = 'Print',

	-- 样式表路径
	['templatestyles'] = 'Module:Documentation/styles.css',

	-- CSS 类名(技术标识)
	['toolbar-class'] = 'documentation-toolbar',
	['container'] = 'documentation-container',
	['main-div-classes'] = 'documentation',
	['clear'] = 'documentation-clear',
	['start-box-class'] = 'documentation-startbox',
	['main-div-heading-class'] = 'documentation-heading',
	['start-box-link-classes'] = 'mw-editsection-like plainlinks',
	['start-box-link-id'] = 'doc_editlinks',
	['sandbox-class'] = 'documentation-sandbox',
	['end-box-class'] = 'documentation-metadata',
	['end-box-plainlinks'] = 'plainlinks',

	-- 标题文字
	['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]',
	['template-namespace-heading'] = '模板文档',
	['module-namespace-heading'] = '模块文档',
	['file-namespace-heading'] = '摘要',
	['other-namespaces-heading'] = '文档',

	-- 链接显示文字
	['view-link-display'] = '查看',
	['edit-link-display'] = '编辑',
	['history-link-display'] = '查看历史',
	['purge-link-display'] = '清除缓存',
	['create-link-display'] = '创建',

	-- 预加载模板路径
	['docpage-preload'] = 'Template:Documentation/preload',
	['module-preload'] = 'Template:Documentation/preload-module-doc',
	['file-docpage-preload'] = 'Template:Documentation/preload-filespace',
	['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox',
	['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox',
	['template-testcases-preload'] = 'Template:Documentation/preload-testcases',
	['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases',
	['mirror-link-preload'] = 'Template:Documentation/mirror',

	-- 沙盒提示文案
	['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]',
	['sandbox-notice-pagetype-template'] = '模板沙盒页',
	['sandbox-notice-pagetype-module'] = '模块沙盒页',
	['sandbox-notice-pagetype-other'] = '沙盒页',
	['sandbox-notice-blurb'] = '这是$1的$2。',
	['sandbox-notice-diff-blurb'] = '这是$1的$2($3)。',
	['sandbox-notice-compare-link-display'] = '差异',
	['sandbox-notice-testcases-link-display'] = '测试样例',
	['sandbox-notice-testcases-blurb'] = '另请参阅$1的配套子页面。',
	['sandbox-notice-testcases-run-link-display'] = '执行',
	['sandbox-notice-testcases-run-blurb'] = '另请参阅$1的配套子页面$2($3)。',

	-- 分类名称
	['sandbox-category'] = '模板沙盒',
	['module-sandbox-category'] = '模块沙盒',
	['other-sandbox-category'] = '沙盒',

	-- 嵌入来源提示
	['transcluded-from-blurb'] = '上述文档嵌入自$1。',
	['create-module-doc-blurb'] = '您可以$1此Scribunto模块的文档页。',

	-- 实验区提示
	['experiment-blurb-template'] = '编者可以在本模板的$1和$2页面进行实验。',
	['experiment-blurb-module'] = '编者可以在本模块的$1和$2页面进行实验。',

	-- 沙盒链接显示
	['sandbox-link-display'] = '沙盒',
	['sandbox-edit-link-display'] = '编辑',
	['sandbox-create-link-display'] = '创建',
	['compare-link-display'] = '差异',
	['mirror-link-display'] = '镜像',
	['mirror-edit-summary'] = '创建$1的沙盒版本。',

	-- 测试样例
	['testcases-link-display'] = '测试样例',
	['testcases-edit-link-display'] = '编辑',
	['testcases-create-link-display'] = '创建',
	['testcases-run-link-display'] = '执行',

	-- /doc 链接
	['doc-link-display'] = '/doc',
	['add-categories-blurb'] = '请将分类添加至$1子页面。',

	-- 页面类型
	['template-pagetype'] = '模板',
	['module-pagetype'] = '模块',
	['default-pagetype'] = '页面',

	-- 子页面链接
	['subpages-link-display'] = '本$1的子页面',
	['subpages-blurb'] = '$1。',

	-- Print 版本
	['print-link-display'] = '/Print',
	['print-blurb'] = '此模板有$1打印版本。如修改此模板,请同时更新打印版本。',
	['display-print-category'] = false,
	['print-category'] = '有打印版本的模板',

	-- 跟踪分类
	['display-strange-usage-category'] = false,
	['strange-usage-category'] = '有奇怪((documentation))用法的页面',
}