模板:Archives/sandbox
跳转到导航
跳转到搜索
| File:Replacement filing cabinet.svg 存档 | |
|---|---|
|
|
| File:Sandbox.svg | 这是Template:Archives(差异)的沙盒。 |
File:Test Template Info-Icon - Version (2).svg 模板文档[查看] [编辑] [历史] [清除缓存]
| File:Ambox warning yellow.svg | 本模板含有复杂而精密的扩展语法。 编辑本模板前,建议您先熟悉解析器函数与本模板的设计思路、运作原理等。若您的编辑引发了意外的问题,请尽快撤销编辑,因为本模板可能被大量页面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行测试。 |
| File:Edit-copy green with red question mark.svg | 此模板的文档不存在、不全面或不能详细描述其功能及/或其代码中的参数。请帮助扩充并改进其文档。 |
| 警告 | 此模板沙盒被引用于约2,500个页面。 为了避免造成大规模的影响,所有对此模板沙盒的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板沙盒中,但是修改前请务必于讨论页发起讨论。 模板引用数量会自动更新。 |
概要[编辑]
{{Archives}}可以在讨论页添加子页面的存档链接,默认情况下如果子页面名称恰当,它会自动侦测存档子页面。
参数及使用方法[编辑]
{{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) -->
|
}}
没有翻译的内容
/. 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 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.
示例[编辑]
默认情况[编辑]
{{Archives}}
| File:Replacement filing cabinet.svg 存档 | |
|---|---|
|
| |
| <inputbox>
bgcolor=transparent type=fulltext prefix=Template:Archives/sandbox/ break=no width=22 searchbuttonlabel=搜索 </inputbox> |
添加参数[编辑]
{{Archives|auto=short|index=/Archive index}}
| File:Replacement filing cabinet.svg 存档 |
|---|
未有存档(创建)
|
| <inputbox>
bgcolor=transparent type=fulltext prefix=Template:Archives/sandbox/ break=no width=22 searchbuttonlabel=搜索 </inputbox> |
参见[编辑]
<templatedata> { "params": { "archivelist": { "label": "子页面名称", "description": "讨论页存档的子页面名称", "example": "/存档", "type": "content" } }, "description": "提供讨论页存档的链接。", "format": "inline" } </templatedata>