Template:Archives
![]() Tồn đương | |
---|---|
| |
![文档图示](https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
![]() | Bổn mô bản đích nguyên đại mã trung bao hàm liễu nhất ta tinh mật đích khả tuyển tham sổ hòa cấu tạo. Kiến nghị nâm ô biên tập mô bản tiền tiên thục tất kỳ cấu tạo dữGiải tích khí hàm sổ.Nhược nâm đích biên tập đạo trí liễu ý ngoại đích vấn đề, thỉnh tẫn khoáiTriệt tiêuBiên tập, nhân cai mô bản hoặc ô tương đương sổ lượng đích hiệt diện trung xuất hiện. Sở hữu thật nghiệm tính đích biên tập khả ôSa hạp mô bảnHoặc giả nâm tự kỷ đích dụng hộ hiệt trung tiến hành. |
![]() | This template is called byTemplate:Archive box.Please ensure that any changes do not break the legacy functionality of archive box. |
The{{Archives}}
template may be used to add a box containing page links toarchived discussions.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.
Usage[Biên tập nguyên đại mã]
{{archives | archivelist = <!-- /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) --> | <!-- optional additional text or list items --> }}
Archive list[Biên tập nguyên đại mã]
- archivelist
- Specifies a link to a subpage, such as "/archivelist", that contains the archive list.
- auto= <short|long|no>
- Specifies the format of the auto-generated archive list. If left unspecified, the default is "long"; any other word (except "no" ) will result in "short" and "no" disables auto-detection.
- index
- Links the "Archives" title to a specified subpage, such as "/Archive index", that should be the subject index page for all archived discussions.Legobotmay be used to create and maintain such an index.
- list
- Inline list of archives. Thelistparameter overrides automatic archive detection of pages named "Archive 1", "Archive 2" and so on.
- (1st unnamed parameter)
- Can be used in addition to automatic archiving if additional pages with other names are available.
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, seeTalk:Evolution,which [not currently] draws fromTalk:Evolution/archivelist.Thearchivelistparameter 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.]
Additional notes[Biên tập nguyên đại mã]
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 berenamedto 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.
Icon image[Biên tập nguyên đại mã]
- image
- An alternate image to be used, defaults to "
Replacement filing cabinet.svg
".May also useimage-size. - alt
- Alt text for the image, for visually impaired readers. Seew:WP:ALT.This defaults to empty. If a nonempty value is specified for
link
,alt
should be nonempty too, and should indicate what will happen if the user clicks on the image. - link
- Link for the image. This normally defaults to empty, which means no link. However, if
alt
is nonempty, it defaults to the image's file page.
Thelinkandaltparameters only take effect if the image is changed from the default.
Search[Biên tập nguyên đại mã]
- search
- Ifyes,adds a search box to the template.
- root
- Specify a different base than
{{FULLPAGENAME}}/
.Useprefixif the addition of a trailing slash is not desired. - search-break
- Default:no
- search-width
- Default:22
- search-button-label
- Default:Search
Archival method[Biên tập nguyên đại mã]
- 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[Biên tập nguyên đại mã]
- collapsible
- Ifyes,makes the listcollapsible.
- collapsed
- Ifyes,makes the list collapsed.
- style
- An arbitrary string of CSS can be applied to the box (use with care). May also usebox-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
- Ifyesor omitted, includes a button to edit the archive box's sub-page /archivelist.
Examples[Biên tập nguyên đại mã]
- Default
{{archives}}
![]() Tồn đương | |
---|---|
| |
- Short, index
{{archives
|auto= short
|index= /Archive index
}}
![]() Tồn đương |
---|
Vị hữu tồn đương (Kiến lập)
|
Tham kiến[Biên tập nguyên đại mã]
- {{Archive box}}
|
Thượng thuậtVăn đươngKhảm nhậpTựTemplate:Archives/doc.(Biên tập|Lịch sử) Biên giả khả dĩ tại bổn mô bản đích sa hạp(Sang kiến|Kính tượng)Hòa trắc thí dạng lệ(Sang kiến)Hiệt diện tiến hành thật nghiệm. Thỉnh tại/docTử hiệt diện trung thiêm gia phân loại.Bổn mô bản đích tử hiệt diện. |