टेम्पलेट:Archives/doc: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>علیرضا
No edit summary
imported>Funandtrvl
sync w/tmp
लाइन 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{intricate}}
{{Caution|image=Symbol opinion vote.svg|This template is called by [[Template:Archive box]]. Please ensure that any changes do not break the legacy functionality of archive box.}}
लाइन 8:
 
== Usage ==
<pre style="overflow:auto;">
<pre>
{{ archives
| archivelist = <!-- /archivelist -->
| auto = <!-- short|/long|/no -->
| index = <!-- /Archive index -->
| search = <yes|no>
| list =
| targetsearch = <!-- yes/no -->
| root =
| collapsible = <yes|no>
| collapsedprefix = <yes|no> =
| editbox collapsible = <!-- yes|/no -->
| collapsed = <!-- yes/no -->
| search 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 -->
}}
</pre>
Line 35 ⟶ 39:
; 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. [[User:HBC Archive Indexerbot|HBC Archive Indexerbot]] can automatically generate such indexes.
; list: Inline list of archives. The ''list'' parameter 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.
Line 56 ⟶ 61:
 
=== Icon image ===
; image : An alternate image to be used, defaults to "<code><nowiki>Replacement filing cabinet.svg</nowiki></code>". May also use '''image-size'''.
; link : Link for the image. This normally defaults to empty, which means no link. However, if <code>alt</code> is nonempty, it defaults to the image's file page.
; alt : Alt text for the image, for visually impaired readers. See [[WP:ALT]]. This defaults to empty. If a nonempty value is specified for <code>link</code>, <code>alt</code> 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 <code>alt</code> 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.
Line 76 ⟶ 81:
 
=== Other parameters ===
; index: Links the "Archives" title to a specified subpage, such as "/Archive index", that should be the subject index page for all archived discussions. [[User:HBC Archive Indexerbot|HBC Archive Indexerbot]] can automatically generate such indexes.
; collapsible : If ''yes'', makes the list [[Help:Collapsing|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.
Line 106 ⟶ 110:
{{Warchivenav}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Archival templates|{{PAGENAME}}]]
[[Category:Talk header templates|{{PAGENAME}}]]
}}</includeonly>
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>