Template:Archives/sandbox
外观
	
	
存檔  | |
|---|---|
| 
 | 
| 这是Template:Archives(差异)的沙盒。 | 
| 本模板含有複雜而精密的扩展语法。 編輯本模板前,建議您先熟悉解析器函數与本模板的设计思路、运作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行測試。  | 
| 此模板的文档不存在、不全面或不能详细描述其功能及/或其代码中的参数。请帮助扩充并改进其文档。 | 
| 此Templatesandbox被引用於約2,500個頁面。 為了避免造成大規模的影響,所有對此Templatesandbox的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Templatesandbox中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。  | 
概要
[编辑]{{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}}
存檔  | |
|---|---|
| 
 | |
添加參數
[编辑]{{Archives|auto=short|index=/Archive index}}
存檔  | 
|---|
未有存檔(建立) 
 | 
參見
[编辑]提供討論頁存檔的連結。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| 子頁面名稱 | archivelist | 討論頁存檔的子頁面名稱 
  | 内容 | 可选 |