| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Base Template healthseakers.com | Page Template learndental.com | fingertip template davidlnelson.md | Website Template lincolndentalcenter.com |
[edit] [] This documentation is transcluded from Template:Archive box/doc. (edit | history) This template has a sandbox (edit) and testcases (edit) for editors to experiment. This template can be used to display archives of a page in a floating box. Note that this template is preserved for compatibility purposes; the more flexible {{archives}} template should be used for new instances.
UsageInclude the archive box on the talk page by adding: Basic syntax {{Archive box | [[/Archive <#>]] }} Full syntax {{Archive box | archivelist = /archivelist | auto = <short|long|yes|no> | index = /Archive index | links = <#> | search = <yes|no> | collapsible = <yes|no> | collapsed = <yes|no> | box-width = <#px or #em> | root = Wikipedia_talk:{{PAGENAME}}/Archive #}} | style = <CSS values> | title = <Alt. title> | image = [[File:Foo.png|35px]] | bot = <name of bot> | age = <#> <days, hours, etc.> | [[/Archive <#>]], [[/Archive <#>]], [[/Archive <#>]], etc. }} Substitute ParametersPlacementThe box uses a style that makes it float to the right. In other words, it will be aligned to the right edge of the page and all content following it will flow around the box. (On some article and WikiProject talk pages, there is more than one right floating box. In that case, the edit links of the text sections next to those boxes often "bunch up". Use the {{stack}} template to provide a solution for that problem.) Box widthThe box width can be set by using the {{Archive box | box-width=13em | [[/Archive <#>]] }} {{Archive box | box-width=200px | [[/Archive <#>]] }} The standard width when this parameter is not used is 238px. SearchA search bar which will search the archives of the current page can be added to the bottom of the box by using the |search=yes parameter. Other parameters can adjust the search bar.
{{Archive box | search=yes | [[/Archive <#>]] }} ImageThe image can be changed from the default using the {{Archive box | image= [[Image:Crystal Clear app file-manager.png|35px]] | [[/Archive <#>]] }} Other iconsIf you wish to use something other than the default icon, there's a gallery of available icons at commons:Category:Archive icons. Style Examples:
Automatic linksIf all the archives of a talk page are named exactly /Archive 1, /Archive 2 etc. (it will not work with e.g. /Archive1, /Archive 01, or subpages of a subpage, e.g. /Archives/Archive 1), you can use the auto parameter to display links to them all automatically. The list will update itself when new archives are added. If there are also named archives, you can manually add links to those as well.
The links to the archive pages will appear as simple numbers, separated with commas (1, 2, 3, ...). Note: Archives numbered past 100 will be ignored. {{archive box | auto=yes }} The optional root=, links=, and nobr= parameters are passed to {{archive list}} when auto=yes. The following will look for a user's talk-page archives named /Archives/Archive 1, /Archives/Archive 2, etc., and list up to 5 archives per line: {{archive box |auto= yes |root= User_Talk:{{PAGENAME}}/Archive <#> |links= 5 }}
If there are no more than 36 archive pages, and you prefer a three-column output, use {{archive box |auto=long }} The optional {{archive box |auto= long |root= User_Talk:{{PAGENAME}}/Archive <#> }} ExamplesFor actual examples of the use of this template, use the what links here link in the toolbox on the sidebar, near the top on the left side of this page (unless you are using an unconventional skin ... in which case you probably know what you are doing).
NotesTalk headerMany talk pages already include the {{Talk header}} template. By default, this template includes links to archive subpages assuming the archive subpages are numbered in the standard manner (Archive 1, Archive 2, etc.). If the {{Talk header}} template is on a page, and archive subpages are named in the standard manner, then a separate archive box is likely unnecessary. On the other hand, a separate archive box can pipe links (i.e. to display the date range of the archive). If you decide to go ahead and use the archive box anyway, you can add See also
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ↑ top of page ↑ | about thumbshots |