config:修订间差异
来自电棍ottowiki
更多操作
![]() OctoberSama(留言 | 贡献) 小 |
![]() OctoberSama(留言 | 贡献) 小 |
||
第11行: | 第11行: | ||
local cfg = {} -- Do not edit this line. | local cfg = {} -- Do not edit this line. | ||
---------------------------------------------------------------------------------------------------- | |||
-- Protection template configuration | -- Protection template configuration | ||
---------------------------------------------------------------------------------------------------- | |||
-- cfg['protection-reason-edit'] | |||
-- The protection reason for edit-protected templates to pass to | |||
-- [[Module:Protection banner]]. | |||
cfg['protection-reason-edit'] = 'template' | cfg['protection-reason-edit'] = 'template' | ||
---------------------------------------------------------------------------------------------------- | |||
-- Start box configuration | -- Start box configuration | ||
---------------------------------------------------------------------------------------------------- | |||
-- cfg['documentation-icon-wikitext'] | |||
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' | cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' | ||
-- cfg['template-namespace-heading'] | |||
cfg['template-namespace-heading'] = '模板文档' | cfg['template-namespace-heading'] = '模板文档' | ||
-- cfg['module-namespace-heading'] | |||
cfg['module-namespace-heading'] = '模块文档' | cfg['module-namespace-heading'] = '模块文档' | ||
-- cfg['file-namespace-heading'] | |||
cfg['file-namespace-heading'] = '摘要' | cfg['file-namespace-heading'] = '摘要' | ||
-- cfg['other-namespaces-heading'] | |||
cfg['other-namespaces-heading'] = '文档' | cfg['other-namespaces-heading'] = '文档' | ||
-- cfg['view-link-display'] | |||
cfg['view-link-display'] = '查看' | cfg['view-link-display'] = '查看' | ||
-- cfg['edit-link-display'] | |||
cfg['edit-link-display'] = '编辑' | cfg['edit-link-display'] = '编辑' | ||
-- cfg['history-link-display'] | |||
cfg['history-link-display'] = '历史' | cfg['history-link-display'] = '历史' | ||
-- cfg['purge-link-display'] | |||
cfg['purge-link-display'] = '清除缓存' | cfg['purge-link-display'] = '清除缓存' | ||
-- cfg['create-link-display'] | |||
cfg['create-link-display'] = '创建' | cfg['create-link-display'] = '创建' | ||
-- cfg['module-preload'] | |||
cfg['module-preload'] = 'Template:Documentation/preload-module-doc' | cfg['module-preload'] = 'Template:Documentation/preload-module-doc' | ||
-- cfg['docpage-preload'] | |||
cfg['docpage-preload'] = 'Template:Documentation/preload' | cfg['docpage-preload'] = 'Template:Documentation/preload' | ||
---------------------------------------------------------------------------------------------------- | |||
-- Link box (end box) configuration | -- Link box (end box) configuration | ||
---------------------------------------------------------------------------------------------------- | |||
-- cfg['transcluded-from-blurb'] | |||
cfg['transcluded-from-blurb'] = '上述[[Wikipedia:模板文档页模式|文档]][[Wikipedia:嵌入包含|嵌入]]自$1。' | cfg['transcluded-from-blurb'] = '上述[[Wikipedia:模板文档页模式|文档]][[Wikipedia:嵌入包含|嵌入]]自$1。' | ||
-- cfg['create-module-doc-blurb'] | |||
cfg['create-module-doc-blurb'] = '您可能想要$1本[[Wikipedia:Lua|Scribunto模块]]的文档。' | cfg['create-module-doc-blurb'] = '您可能想要$1本[[Wikipedia:Lua|Scribunto模块]]的文档。' | ||
---------------------------------------------------------------------------------------------------- | |||
-- HTML and CSS configuration | -- HTML and CSS configuration | ||
---------------------------------------------------------------------------------------------------- | |||
-- cfg['templatestyles'] | |||
cfg['templatestyles'] = 'Module:Documentation/styles.css' | cfg['templatestyles'] = 'Module:Documentation/styles.css' | ||
-- cfg['container'] | |||
cfg['container'] = 'documentation-container' | cfg['container'] = 'documentation-container' | ||
-- cfg['main-div-classes'] | |||
cfg['main-div-classes'] = 'documentation' | cfg['main-div-classes'] = 'documentation' | ||
-- cfg['main-div-heading-class'] | |||
cfg['main-div-heading-class'] = 'documentation-heading' | cfg['main-div-heading-class'] = 'documentation-heading' | ||
-- cfg['start-box-class'] | |||
cfg['start-box-class'] = 'documentation-startbox' | cfg['start-box-class'] = 'documentation-startbox' | ||
-- cfg['start-box-link-classes'] | |||
cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' | cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' | ||
-- cfg['end-box-class'] | |||
cfg['end-box-class'] = 'documentation-metadata' | cfg['end-box-class'] = 'documentation-metadata' | ||
-- cfg['end-box-plainlinks'] | |||
cfg['end-box-plainlinks'] = 'plainlinks' | cfg['end-box-plainlinks'] = 'plainlinks' | ||
-- cfg['toolbar-class'] | |||
cfg['toolbar-class'] = 'documentation-toolbar' | cfg['toolbar-class'] = 'documentation-toolbar' | ||
-- cfg['clear'] | |||
cfg['clear'] = 'documentation-clear' | cfg['clear'] = 'documentation-clear' | ||
---------------------------------------------------------------------------------------------------- | |||
-- Tracking category configuration | -- Tracking category configuration | ||
---------------------------------------------------------------------------------------------------- | |||
-- cfg['display-strange-usage-category'] | |||
cfg['display-strange-usage-category'] = true | cfg['display-strange-usage-category'] = true | ||
-- cfg['strange-usage-category'] | |||
cfg['strange-usage-category'] = '异常使用((documentation))的页面' | cfg['strange-usage-category'] = '异常使用((documentation))的页面' | ||
-- cfg['doc-subpage'] | |||
cfg['doc-subpage'] = 'doc' | cfg['doc-subpage'] = 'doc' | ||
---------------------------------------------------------------------------------------------------- | |||
-- End configuration | |||
---------------------------------------------------------------------------------------------------- | |||
return cfg | return cfg |
2025年6月17日 (二) 21:02的版本
--源代码来自维基百科:https://zh.wikipedia.org/w/index.php?title=Module:Documentation/config&oldid=84705147
--该部分代码使用CC BY-SA 4.0许可证 (https://creativecommons.org/licenses/by-sa/4.0/)
----------------------------------------------------------------------------------------------------
-- Configuration for Module:Documentation
--
-- Here you can set the values of the parameters and messages used in Module:Documentation to
-- localise it to your wiki and your language. Unless specified otherwise, values given here
-- should be string values.
----------------------------------------------------------------------------------------------------
local cfg = {} -- Do not edit this line.
----------------------------------------------------------------------------------------------------
-- Protection template configuration
----------------------------------------------------------------------------------------------------
-- cfg['protection-reason-edit']
-- The protection reason for edit-protected templates to pass to
-- [[Module:Protection banner]].
cfg['protection-reason-edit'] = 'template'
----------------------------------------------------------------------------------------------------
-- Start box configuration
----------------------------------------------------------------------------------------------------
-- cfg['documentation-icon-wikitext']
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'
-- cfg['template-namespace-heading']
cfg['template-namespace-heading'] = '模板文档'
-- cfg['module-namespace-heading']
cfg['module-namespace-heading'] = '模块文档'
-- cfg['file-namespace-heading']
cfg['file-namespace-heading'] = '摘要'
-- cfg['other-namespaces-heading']
cfg['other-namespaces-heading'] = '文档'
-- cfg['view-link-display']
cfg['view-link-display'] = '查看'
-- cfg['edit-link-display']
cfg['edit-link-display'] = '编辑'
-- cfg['history-link-display']
cfg['history-link-display'] = '历史'
-- cfg['purge-link-display']
cfg['purge-link-display'] = '清除缓存'
-- cfg['create-link-display']
cfg['create-link-display'] = '创建'
-- cfg['module-preload']
cfg['module-preload'] = 'Template:Documentation/preload-module-doc'
-- cfg['docpage-preload']
cfg['docpage-preload'] = 'Template:Documentation/preload'
----------------------------------------------------------------------------------------------------
-- Link box (end box) configuration
----------------------------------------------------------------------------------------------------
-- cfg['transcluded-from-blurb']
cfg['transcluded-from-blurb'] = '上述[[Wikipedia:模板文档页模式|文档]][[Wikipedia:嵌入包含|嵌入]]自$1。'
-- cfg['create-module-doc-blurb']
cfg['create-module-doc-blurb'] = '您可能想要$1本[[Wikipedia:Lua|Scribunto模块]]的文档。'
----------------------------------------------------------------------------------------------------
-- HTML and CSS configuration
----------------------------------------------------------------------------------------------------
-- cfg['templatestyles']
cfg['templatestyles'] = 'Module:Documentation/styles.css'
-- cfg['container']
cfg['container'] = 'documentation-container'
-- cfg['main-div-classes']
cfg['main-div-classes'] = 'documentation'
-- cfg['main-div-heading-class']
cfg['main-div-heading-class'] = 'documentation-heading'
-- cfg['start-box-class']
cfg['start-box-class'] = 'documentation-startbox'
-- cfg['start-box-link-classes']
cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks'
-- cfg['end-box-class']
cfg['end-box-class'] = 'documentation-metadata'
-- cfg['end-box-plainlinks']
cfg['end-box-plainlinks'] = 'plainlinks'
-- cfg['toolbar-class']
cfg['toolbar-class'] = 'documentation-toolbar'
-- cfg['clear']
cfg['clear'] = 'documentation-clear'
----------------------------------------------------------------------------------------------------
-- Tracking category configuration
----------------------------------------------------------------------------------------------------
-- cfg['display-strange-usage-category']
cfg['display-strange-usage-category'] = true
-- cfg['strange-usage-category']
cfg['strange-usage-category'] = '异常使用((documentation))的页面'
-- cfg['doc-subpage']
cfg['doc-subpage'] = 'doc'
----------------------------------------------------------------------------------------------------
-- End configuration
----------------------------------------------------------------------------------------------------
return cfg