编辑“︁
Template:Archives/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Archives
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
==參數及使用方法== <syntaxhighlight lang="wikitext"> {{Archives | archivelist = <!-- 存檔頁面 --> | auto = <!-- short/long/no --> | index = <!-- /Archive index --> | list = | search = <!-- yes/no --> | root = | prefix = | collapsible = <!-- yes/no --> | collapsed = <!-- yes/no --> | editbox = <!-- yes/no --> | box-width = | style = | title = | image = | image-size = | alt = | link = | target = | bot = | age = | units = <!-- time units (defaults to days) --> | }} </syntaxhighlight> {{HideH|沒有翻譯的內容| === Archive list === ; archivelist:指定子页的链接,例如“/ archivelist”,包含档案列表。 ; auto= <short|long|no>: 指定的格式自动生成归档列表。如果未指定,默认是“长”;其他任何词(“不”除外)将导致“短”和“不”禁用自动侦测。 ; index:链接指定的子页“档案”称号,如“/归档指数”,应该是所有归档的主题索引页的讨论。 [[用户:Legobot | Legobot]]可用于创建和维护一个索引。 ; list: Inline list of archives. The ''list'' parameter overrides automatic archive detection of pages named "Archive 1", "Archive 2" and so on. ; (1st unnamed parameter): Can be used in addition to automatic archiving if additional pages with other names are available. With no explicit parameters, the archive list presented in the box is determined automatically. If a subpage called "<code><nowiki>{{PAGENAME}}</nowiki>/archivelist</code>" exists, it will be used as the central content of the box. For an example, see <del>[[Talk:Evolution]]</del>, which [not currently] draws from [[Talk:Evolution/archivelist]]. The ''archivelist'' parameter changes the name of this subpage. If no archive list subpage is detected, numbered archive subpages will be listed in long format. Such pages must be named as "/Archive #" because other naming styles will not be detected. The "<code>long</code>" auto format (the default) indicates "Archive 1", "Archive 2", and so on. The "<code>short</code>" auto format indicates only the archive number. See more examples below. An additional list of archives can be passed in the first unnamed parameter, avoiding the need for a subpage. Using "auto=no" will disable archive auto-detection. Manually specified archives will still be shown. [The archive box will also contain an "Edit" link, targeted at the archive list subpage, which can then be used to begin manually populating the list, if desired. This seems broken.] ==== Additional notes ==== The "<code>auto</code>" and "<code>archivelist</code>" parameters are not intended to be used together. (Doing so does not use the specified archive list page.) The auto-generated archive list requires subpages to use the common naming convention. That is, "<nowiki>{{PAGENAME}}</nowiki>/Archive 1", "<nowiki>{{PAGENAME}}</nowiki>/Archive 2", and so on. The letter "A" must be capitalized, there must be a single space between the word "Archive" and the number, and there must be no leading zeros. If archive subpages do not conform to this convention, they can be [[Help:Moving a page|renamed]] to conform, or a manual list can be maintained. Specifying "<code>auto</code>" with any right-hand-side value other than "<code>long</code>" or "<code>no</code>" results in the short-format list; the use of "<code>short</code>" as the value just makes things more obvious to others. === Icon image === ; image : An alternate image to be used, defaults to "<code><nowiki>Replacement filing cabinet.svg</nowiki></code>". May also use '''image-size'''. ; alt : Alt text for the image, for visually impaired readers. See [[WP:ALT]]. This defaults to empty. If a nonempty value is specified for <code>link</code>, <code>alt</code> should be nonempty too, and should indicate what will happen if the user clicks on the image. ; link : Link for the image. This normally defaults to empty, which means no link. However, if <code>alt</code> is nonempty, it defaults to the image's file page. The ''link'' and ''alt'' parameters only take effect if the image is changed from the default. === Search === ; search: If ''yes'', adds a search box to the template. ; root: Specify a different base than <code>{{FULLPAGENAME}}/</code>. Use '''prefix''' if the addition of a trailing slash is not desired. ;search-break: ''Default'':no ;search-width: ''Default'':22 ;search-button-label: ''Default'': Search === Archival method === ; target: The title of the page (just the name, no link syntax) that threads are currently being archived to, for manual archiving. ; bot : If specified, a note about automatic archiving will be shown. ; age : If specified, this will be displayed as the archiving delay. ; units : If specified, this will be displayed units for the archiving delay. The default is "days". === Other parameters === ; collapsible : If ''yes'', makes the list [[Help:Collapsing|collapsible]]. ; collapsed : If ''yes'', makes the list collapsed. ; style : An arbitrary string of CSS can be applied to the box (use with care). May also use '''box-width'''. ; title : An alternative title, defaults to "Archives". The title is automatically linked to the archive index page if one is specified, otherwise a wiki link may be specified here. ; editbox : If ''yes'' or omitted, includes a button to edit the archive box's sub-page /archivelist. {{HideF}}
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息