Difference between revisions of "Template:Archive banner/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trialpears
(→‎See also: merged)
blackwiki>Steel1943
(Ce page - Template:Archive box was merged into Template:Archives a while back)
Line 5: Line 5:
  
 
==Usage==
 
==Usage==
As a list of archives, this is similar to {{tl|archive box}}, but it presents in a banner-like format, as opposed to a box. This helps the flow of a page — there's not really a good place to put the Archive Box. Obviously it's to be put at the top of the page.
+
As a list of archives, this is similar to {{tl|Archives}}, but it presents in a banner-like format, as opposed to a box. This helps the flow of a page there's not really a good place to put the Archive Box. Obviously it's to be put at the top of the page.
  
 
Also, this template collapses, which is always helpful on talk pages.
 
Also, this template collapses, which is always helpful on talk pages.
Line 32: Line 32:
  
 
==See also==
 
==See also==
* {{tl|Archive box}}
+
* {{tl|Archives}}
 
* {{tl|Search box}} - A simple search box
 
* {{tl|Search box}} - A simple search box
  

Revision as of 18:48, 10 August 2020

Lists all archive pages, and makes a search box to search archives. See Talk:Science#archive banner example (titled "Archives for the Science talk page") for a usage example.

Usage

As a list of archives, this is similar to {{Archives}}, but it presents in a banner-like format, as opposed to a box. This helps the flow of a page – there's not really a good place to put the Archive Box. Obviously it's to be put at the top of the page.

Also, this template collapses, which is always helpful on talk pages.

If you don't need a list (which is a mere row of numbers, thus of little help), you can use {{search box}} and similar templates.

Standard usage

  • {{archive banner}}
    This functions the same as {{archive box|auto=yes}}. All pages named Archive 1, Archive 2, etc., will be listed automatically.

Parameters

index=true
Displays the /Archive index subpage.
list=
If the talk page wasn't archived using standard numbering, list the individual pages:
{{archive banner|numeric=false|list=
* Some archive 1
* Some other archive blah
}}

If |list= is specified, even if blank, a list of archives won't be automatically generated.

extra
Allows for user customization on the box, adding any extra text necessary.
state
Sets the state of the archive banner, [autocollapse, uncollapsed, collapsed]

See also

Template:Warchivenav