Module:Documentation/config: Difference between revisions

m
1 revision imported
m (1 revision imported)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(24 intermediate revisions by 19 users not shown)
Line 32:
-- cfg['sandbox-notice-image']
-- The image displayed in the sandbox notice.
cfg['sandbox-notice-image'] = '[[ImageFile:Sandbox.svg|50px|alt=|link=]]'
 
--[[
Line 42:
-- cfg['sandbox-notice-diff-blurb'].
--]]
cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:模板的沙盒和测试样例Template test cases|沙盒template sandbox]] page'
cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:模板的沙盒和测试样例Template test cases|沙盒module sandbox]] page'
cfg['sandbox-notice-pagetype-other'] = '沙盒sandbox page'
 
--[[
Line 58:
-- cfg['sandbox-notice-compare-link-display'].
--]]
cfg['sandbox-notice-blurb'] = '这是$2的This is the $1 for $2.'
cfg['sandbox-notice-diff-blurb'] = '这是This is the $2(1 for $3)的2 ($1。3).'
cfg['sandbox-notice-compare-link-display'] = '差异diff'
 
--[[
Line 76:
-- cases.
--]]
cfg['sandbox-notice-testcases-blurb'] = '参见本See also the companion subpage for $1的$2。.'
cfg['sandbox-notice-testcases-link-display'] = '测试样例test cases'
cfg['sandbox-notice-testcases-run-blurb'] = '参见本See also the companion subpage for $1 ($2($3)。2).'
cfg['sandbox-notice-testcases-run-link-display'] = '-{zh-cn:运行; zh-tw:執行;}-run'
 
-- cfg['sandbox-category'] - A category to add to all template sandboxes.
-- cfg['module-sandbox-category'] - A category to add to all module sandboxes.
-- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules.
cfg['sandbox-category'] = '模板沙盒Template sandboxes'
-- cfg['module-sandbox-category'] = 'Module sandboxes'
cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace'
 
-- cfg['sandbox-category']
-- A category to add to all template sandboxes.
cfg['sandbox-category'] = '模板沙盒'
 
----------------------------------------------------------------------------------------------------
Line 91 ⟶ 95:
-- cfg['documentation-icon-wikitext']
-- The wikitext for the icon shown at the top of the template.
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=-{zh-cn:文档; zh-tw:文件;}-图示]]'
 
-- cfg['template-namespace-heading']
-- The heading shown in the template namespace.
cfg['template-namespace-heading'] = '模板-{zh-cn:文档;Template zh-tw:文件;}-documentation'
 
-- cfg['module-namespace-heading']
-- The heading shown in the module namespace.
cfg['module-namespace-heading'] = '-{zh-hans:模块;zh-hant:模組}--{zh-cn:文档;Module zh-tw:文件;}-documentation'
 
-- cfg['file-namespace-heading']
Line 107 ⟶ 111:
-- cfg['other-namespaces-heading']
-- The heading shown in other namespaces.
cfg['other-namespaces-heading'] = '-{zh-cn:文档; zh-tw:文件;}-Documentation'
 
-- cfg['view-link-display']
-- The text to display for "view" links.
cfg['view-link-display'] = '-{zh-cn:查看;zh-tw:檢視}-view'
 
-- cfg['edit-link-display']
-- The text to display for "edit" links.
cfg['edit-link-display'] = '编辑edit'
 
-- cfg['history-link-display']
-- The text to display for "history" links.
cfg['history-link-display'] = '历史history'
 
-- cfg['purge-link-display']
-- The text to display for "purge" links.
cfg['purge-link-display'] = '清除-{zh-hans:缓存;zh-hant:快取}-purge'
 
-- cfg['create-link-display']
-- The text to display for "create" links.
cfg['create-link-display'] = '-{zh-cn:创建; zh-tw:建立;}-create'
 
----------------------------------------------------------------------------------------------------
Line 135 ⟶ 139:
-- cfg['transcluded-from-blurb']
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page.
cfg['transcluded-from-blurb'] = '上述The above [[Wikipedia:模板文檔頁模式|-{zh-cn:文档;Template zh-tw:文件;}-documentation|documentation]] is [[WikipediaHelp:嵌入包含Transclusion|嵌入transcluded]] from $1.'
 
--[[
Line 143 ⟶ 147:
-- display cfg['create-link-display'].
--]]
cfg['create-module-doc-blurb'] = '您可能想要You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto-{zh-hans:模块;zh-hant:模組}- module]]的-{zh-cn:文档; zh-tw:文件;}-。.'
 
----------------------------------------------------------------------------------------------------
Line 167 ⟶ 171:
-- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format:
--
-- cfg['sandbox-link-display'](cfg (cfg['sandbox-edit-link-display'] | cfg['compare-link-display'])
--
-- If the sandbox doesn't exist, it is in the format:
--
-- cfg['sandbox-link-display'](cfg (cfg['sandbox-create-link-display'] | cfg['mirror-link-display'])
--
-- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload']
Line 179 ⟶ 183:
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format:
--
-- cfg['testcases-link-display'](cfg (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display'])
--
-- If the test cases page doesn't exist, it is in the format:
--
-- cfg['testcases-link-display'](cfg (cfg['testcases-create-link-display'])
--
-- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the
Line 189 ⟶ 193:
-- namespace.
--]]
cfg['experiment-blurb-template'] = "编者可以在本模板的Editors can experiment in this template's $1 and $2页面进行实验。 pages."
cfg['experiment-blurb-module'] = "编者可以在本-{zh-cn:模板;zh-tw:模組}-的Editors can experiment in this module's $1 and $2页面进行实验。 pages."
 
----------------------------------------------------------------------------------------------------
Line 210 ⟶ 214:
-- cfg['sandbox-link-display']
-- The text to display for "sandbox" links.
cfg['sandbox-link-display'] = '沙盒sandbox'
 
-- cfg['sandbox-edit-link-display']
-- The text to display for sandbox "edit" links.
cfg['sandbox-edit-link-display'] = '编辑edit'
 
-- cfg['sandbox-create-link-display']
-- The text to display for sandbox "create" links.
cfg['sandbox-create-link-display'] = '-{zh-cn:创建; zh-tw:建立;}-create'
 
-- cfg['compare-link-display']
-- The text to display for "compare" links.
cfg['compare-link-display'] = '差异diff'
 
-- cfg['mirror-edit-summary']
-- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the
-- template page.
cfg['mirror-edit-summary'] = '建立$1的沙盒版本'Create sandbox --version 本訊息無法使用轉換of $1'
 
-- cfg['mirror-link-display']
-- The text to display for "mirror" links.
cfg['mirror-link-display'] = '镜像mirror'
 
-- cfg['mirror-link-preload']
Line 255 ⟶ 259:
-- cfg['testcases-link-display']
-- The text to display for "testcases" links.
cfg['testcases-link-display'] = '测试样例testcases'
 
-- cfg['testcases-edit-link-display']
-- The text to display for test cases "edit" links.
cfg['testcases-edit-link-display'] = '编辑edit'
 
-- cfg['testcases-run-link-display']
-- The text to display for test cases "run" links.
cfg['testcases-run-link-display'] = '-{zh-cn:运行; zh-tw:執行;}-run'
 
-- cfg['testcases-create-link-display']
-- The text to display for test cases "create" links.
cfg['testcases-create-link-display'] = '-{zh-cn:创建; zh-tw:建立;}-create'
 
----------------------------------------------------------------------------------------------------
Line 279 ⟶ 283:
-- link to the /doc subpage with a display value of cfg['doc-link-display'].
--]]
cfg['add-categories-blurb'] = '请在Add categories to the $1子页面中添加分类。 subpage.'
 
-- cfg['doc-link-display']
Line 295 ⟶ 299:
-- the link followed by a period, and the link display provides the actual text.
--]]
cfg['subpages-blurb'] = '$1.'
 
--[[
Line 303 ⟶ 307:
-- the template namespace, the module namespace, or another namespace.
--]]
cfg['subpages-link-display'] = 'Subpages of this $1的子页面'
 
-- cfg['template-pagetype']
-- The pagetype to display for template pages.
cfg['template-pagetype'] = '模板template'
 
-- cfg['module-pagetype']
-- The pagetype to display for Lua module pages.
cfg['module-pagetype'] = '-{zh-cn:模块;zh-tw:模組;}-module'
 
-- cfg['default-pagetype']
-- The pagetype to display for pages other than templates or Lua modules.
cfg['default-pagetype'] = 'page'
 
----------------------------------------------------------------------------------------------------
Line 324 ⟶ 328:
-- The name of the subpage typically used for documentation pages.
cfg['doc-subpage'] = 'doc'
 
-- cfg['file-docpage-preload']
-- Preload file for documentation page in the file namespace.
cfg['file-docpage-preload'] = 'Template:Documentation/preload-filespace'
 
-- cfg['docpage-preload']
Line 338:
 
----------------------------------------------------------------------------------------------------
-- PrintHTML versionand CSS configuration
----------------------------------------------------------------------------------------------------
 
-- cfg['print-subpagetemplatestyles']
-- The name of the templateTemplateStyles subpagepage usedwhere forCSS printis versionskept.
-- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed.
cfg['print-subpage'] = 'Print'
cfg['templatestyles'] = 'Module:Documentation/styles.css'
 
-- cfg['print-link-displaycontainer']
-- Class which can be used to set flex or grid CSS on the
-- The text to display when linking to the /Print subpage.
-- two child divs documentation and documentation-metadata
cfg['print-link-display'] = '/Print'
cfg['container'] = 'documentation-container'
 
-- cfg['printmain-blurbdiv-classes']
-- The CSS classesClasses added to the main HTML "div" tag.
-- Text to display if a /Print subpage exists. $1 is a link to the subpage with a display value of cfg['print-link-display'].
cfg['main-div-classes'] = 'documentation'
cfg['print-blurb'] = 'A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at $1.'
.. ' If you make a change to this template, please update the print version as well.'
 
-- cfg['displaymain-printdiv-categoryheading-class']
-- Class for the main heading for templates and modules and assoc. talk spaces
-- Set to true to enable output of cfg['print-category'] if a /Print subpage exists.
cfg['main-div-heading-class'] = 'documentation-heading'
-- This should be a boolean value (either true or false).
cfg['display-print-category'] = true
 
-- cfg['printstart-categorybox-class']
-- Class for the start box
-- Category to output if cfg['display-print-category'] is set to true, and a /Print subpage exists.
cfg['printstart-categorybox-class'] = 'Templates with print versionsdocumentation-startbox'
 
-- cfg['start-box-link-idclasses']
----------------------------------------------------------------------------------------------------
-- The CSS classesClasses used for the [view][edit][history] or [create] links in the start box.
-- HTML and CSS configuration
-- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]]
----------------------------------------------------------------------------------------------------
cfg['start-box-linkclasseslink-classes'] = 'mw-editsection-like plainlinks'
 
-- cfg['mainend-divbox-idclass']
-- TheClass "id" attribute offor the main HTML "div"end tagbox.
cfg['mainend-divbox-idclass'] = 'template-documentation-metadata'
 
-- cfg['mainend-divbox-classesplainlinks']
-- Plainlinks
-- The CSS classes added to the main HTML "div" tag.
cfg['mainend-divbox-classesplainlinks'] = 'template-documentation iezoomfixplainlinks'
 
-- cfg['start-box-linkclasses']
-- The CSS classes used for the [view][edit][history] or [create] links in the start box.
cfg['start-box-linkclasses'] = 'mw-editsection-like plainlinks'
 
-- cfg['start-box-link-id']
-- The HTML "id" attribute for the links in the start box.
cfg['start-box-link-id'] = 'doc_editlinks'
 
----------------------------------------------------------------------------------------------------
-- {{fmbox}} template configuration
----------------------------------------------------------------------------------------------------
 
-- cfg['fmboxtoolbar-idclass']
-- Class added for toolbar links.
-- The id sent to the "id" parameter of the {{fmbox}} template.
cfg['fmboxtoolbar-idclass'] = 'documentation-meta-datatoolbar'
 
-- cfg['fmbox-styleclear']
-- Just used to clear things.
-- The value sent to the style parameter of {{fmbox}}.
cfg['fmbox-styleclear'] = 'backgrounddocumentation-color: #ecfcf4clear'
 
-- cfg['fmbox-textstyle']
-- The value sent to the "textstyle parameter of {{fmbox}}.
cfg['fmbox-textstyle'] = 'font-size: small'
 
----------------------------------------------------------------------------------------------------