The } template may be used to add a box containing page links to archived discussions.
अभिलेखअन | |
---|---|
|
This template is used on approximately ३७,००० pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This ढाँचा employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template is called by Template:Archive box. Please ensure that any changes do not break the legacy functionality of archive box. |
It will automatically detect archived pages by default if they are named appropriately, eliminating the need to manually update the box each time a new archive page is created.
{{archives | archivelist = | auto = | index = | list = | search = | root = | prefix = | collapsible = | collapsed = | editbox = | box-width = | style = | title = | image = | image-size = | alt = | link = | target = | bot = | age = | units = | }}
With no explicit parameters, the archive list presented in the box is determined automatically. If a subpage called "{{PAGENAME}}/archivelist
" exists, it will be used as the central content of the box. For an example, see Talk:Evolution, 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 "long
" auto format (the default) indicates "Archive 1", "Archive 2", and so on. The "short
" 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.]
The "auto
" and "archivelist
" 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, "{{PAGENAME}}/Archive 1", "{{PAGENAME}}/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 renamed to conform, or a manual list can be maintained.
Specifying "auto
" with any right-hand-side value other than "long
" or "no
" results in the short-format list; the use of "short
" as the value just makes things more obvious to others.
Replacement filing cabinet.svg
". May also use image-size. none
results in no image.link
, alt
should be nonempty too, and should indicate what will happen if the user clicks on the image.alt
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.
{{FULLPAGENAME}}/
. Use prefix if the addition of a trailing slash is not desired.{{archives}}
अभिलेखअन | |
---|---|
|
{{archives |auto= short |index= /Archive index }}
अभिलेखअन (Index) |
---|
no archives yet (create) |