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

विकिपीडिया से
Content deleted Content added
imported>Ms2ger
छो Update
imported>Thumperward
tidy
लाइन 19: लाइन 19:
; archivelist: Specifies a subpage containing the archive list. See "Archive list" below.
; archivelist: Specifies a subpage containing the archive list. See "Archive list" below.
; index: Adds an "Index" link to the box title, to the specified subpage, which should be a subject index to all archived discussions. [[User:HBC Archive Indexerbot|HBC Archive Indexerbot]] can automatically generate such indexes.
; index: Adds an "Index" link to the box title, to the specified subpage, which should be a subject index to all archived discussions. [[User:HBC Archive Indexerbot|HBC Archive Indexerbot]] can automatically generate such indexes.
; auto=<short|long|no>: Specifies the format of the auto-generated archive list. See "Archive list" below. If unspecified, the default is "long"; any other word (except "no") will result in "short". "no" disabled auto-detection.
; auto=<short|long|no>: Specifies the format of the auto-generated archive list. See "Archive list" below. If unspecified, the default is "long"; any other word (except "no") will result in "short". "no" disables auto-detection.
; search: If specified, the <code>search</code> parameter adds a search box to the template.
; search: If specified, the <code>search</code> parameter adds a search box to the template.
; list: Inline list of archives. This is unneeded if the pages are named "Archive 1", "Archive 2" and so on, in which case automatic archiving works, but can be used in addition to automatic archiving if additional pages with other names are available.
; list: Inline list of archives. This is unneeded if the pages are named "Archive 1", "Archive 2" and so on, in which case automatic archiving works, but can be used in addition to automatic archiving if additional pages with other names are available.
लाइन 28: लाइन 28:
=== Archive list ===
=== Archive list ===


By default (with no explicit parameters), the archive list presented in the box is determined automatically. If a subpage called "<code>./archivelist</code>" exists, it will be used as the central content of the box (for an example, see [[Talk:Evolution]], which draws from [[Talk:Evolution/archivelist]]).
By default (with no explicit parameters), the archive list presented in the box is determined automatically. If a subpage called "<code><nowiki>{{PAGENAME}}</nowiki>/archivelist</code>" exists, it will be used as the central content of the box (for an example, see [[Talk:Evolution]], which draws from [[Talk:Evolution/archivelist]]).


If no archivelist subpage is detected, numbered archive subpages will be listed in long format. Such pages must be named as "/Archive #". Other naming styles will not be detected. If no subpages are found, the archivebox will contain only the "About" and "Edit" links, with the Edit link targeted at "<code>./archivelist</code>" (which can then be used to begin manually populating the list, if desired).
If no archivelist subpage is detected, numbered archive subpages will be listed in long format. Such pages must be named as "/Archive #". Other naming styles will not be detected. If no subpages are found, the archivebox will contain only the "About" and "Edit" links, with the Edit link targeted at "<code><nowiki>{{PAGENAME}}</nowiki>/archivelist</code>" (which can then be used to begin manually populating the list, if desired).


If the "<code>auto</code>" parameter is explicitly specified, the "Edit" link is removed. The "<code>long</code>" auto format (the default) indicates "Archive 1", "Archive 2", and so on. The "<code>short</code>" auto format indicates only the archive number. See examples below.
If the "<code>auto</code>" parameter is explicitly specified, the "Edit" link is removed. The "<code>long</code>" auto format (the default) indicates "Archive 1", "Archive 2", and so on. The "<code>short</code>" auto format indicates only the archive number. See examples below.
लाइन 42: लाइन 42:
The "<code>auto</code>" and "<code>archivelist</code>" parameters are not intended to be used together. (Doing so removes the edit link, but will still use the specified archive list page if it exists.)
The "<code>auto</code>" and "<code>archivelist</code>" parameters are not intended to be used together. (Doing so removes the edit link, but will still use the specified archive list page if it exists.)


The auto-generated archive list requires subpages to use the common naming convention. That is, "./Archive 1", "./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 [[Help:Moving a page|renamed]] to conform, or a manual list can be maintained.
The auto-generated archive list requires subpages to use the common naming convention. That is, "<nowiki>{{PAGENAME}}</nowiki>/Archive 1", "<nowiki>{{PAGENAME}}</nowiki>/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 [[Help:Moving a page|renamed]] to conform, or a manual list can be maintained.


Specifying "<code>auto</code>" with any right-hand-side value other than "<code>long</code>" or "<code>no</code>" results in the short-format list; the use of "<code>short</code>" as the value just makes things more obvious to others.
Specifying "<code>auto</code>" with any right-hand-side value other than "<code>long</code>" or "<code>no</code>" results in the short-format list; the use of "<code>short</code>" as the value just makes things more obvious to others.

13:24, 25 मार्च 2009 तक ले भइल बदलाव

{{archives}} — Adds a box containing links to archived discussions. It will automatically detect archives by default.

Usage

{{archives
  |archivelist=/archivelist
  |auto=<short|long|no>
  |index=/Archive index
  |search=<yes|no>
}}

Parameters

archivelist
Specifies a subpage containing the archive list. See "Archive list" below.
index
Adds an "Index" link to the box title, to the specified subpage, which should be a subject index to all archived discussions. HBC Archive Indexerbot can automatically generate such indexes.
auto=<short|long|no>
Specifies the format of the auto-generated archive list. See "Archive list" below. If unspecified, the default is "long"; any other word (except "no") will result in "short". "no" disables auto-detection.
search
If specified, the search parameter adds a search box to the template.
list
Inline list of archives. This is unneeded if the pages are named "Archive 1", "Archive 2" and so on, in which case automatic archiving works, but can be used in addition to automatic archiving if additional pages with other names are available.
collapsible
Makes the list collapsible.
collapsed
Makes the list collapsed.
style
Arbitrary string of CSS to be applied to the box; use with care.

Archive list

By default (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 draws from Talk:Evolution/archivelist).

If no archivelist subpage is detected, numbered archive subpages will be listed in long format. Such pages must be named as "/Archive #". Other naming styles will not be detected. If no subpages are found, the archivebox will contain only the "About" and "Edit" links, with the Edit link targeted at "{{PAGENAME}}/archivelist" (which can then be used to begin manually populating the list, if desired).

If the "auto" parameter is explicitly specified, the "Edit" link is removed. The "long" auto format (the default) indicates "Archive 1", "Archive 2", and so on. The "short" auto format indicates only the archive number. See examples below.

If you specify an archive list explicitly, the name of the subpage is changed, but otherwise, the behavior is the same.

Using "auto=no" will disable archive auto-detection. Manually specified archives will still be shown.

Additional notes

The "auto" and "archivelist" parameters are not intended to be used together. (Doing so removes the edit link, but will still use the specified archive list page if it exists.)

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.

The short and long auto lists are generated by {{archive list}} and {{archive list long}}, respectively. They are limited to a maximum of 100 and 36 subpages, respectively. Beyond those limits, additional subpages will not be listed. In such cases, a manually generated archive list subpage would need to be created and maintained.

Examples

Defaults
{{archives}}
Short, index
{{archives
|auto=short
|index=/Archive index
}}

See also