Template:Archive header/doc

From Wikisource
Jump to navigation Jump to search

Usage

{{archive header}}

This template is placed at the top of a discussion archive page.

This template will automatically add the date the archive page was created if the archive page title is either <''current discussion page''>/Archives/<''date''>, or (if there is no index) <''current discussion page''><''date''>. The date format is yyyy-mm-dd (one of {{#time:Y}}, {{#time:Y-m}}, or {{#time:Y-m-d}}). For example, Wikisource:Scriptorium/Archives/2020-01.

This template also applies the magic word __ARCHIVEDTALK__

Parameters

  • 1, date: date of the archive page's creation
  • description: description of the archive page

date

Optional parameter to change what date the header says the archive page was created. Date must be in yyyy-mm-dd format.

{{archive header|2001}}

produces

Warning Please do not post any new comments on this page.
This is a discussion archive first created in , although the comments contained were likely posted before and after this date.
See current discussion.
{{archive header|2019-1}}

produces

Warning Please do not post any new comments on this page.
This is a discussion archive first created in , although the comments contained were likely posted before and after this date.
See current discussion.
{{archive header|2021-03-10}}

produces

Warning Please do not post any new comments on this page.
This is a discussion archive first created on , although the comments contained were likely posted before and after this date.
See current discussion.

description

Optional parameter to change the description of the archive page.

{{archive header|description = first created in October 2012, although the comments contained were likely posted before and after this date}}

produces

Warning Please do not post any new comments on this page.
This is a discussion archive first created in October 2012, although the comments contained were likely posted before and after this date.
See current discussion.
{{archive header|description = which contains no comments because it's an example}}

produces

Warning Please do not post any new comments on this page.
This is a discussion archive which contains no comments because it's an example.
See current discussion.

See also


templatedata

adds a standard header; for use with pages that are talk page archives

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
11

no description

Unknownoptional
descriptiondescription

allows for a description of the archive

Example
first created in October 2012, although the comments contained were likely posted before and after this date
Stringoptional
datedate 1

takes a date string YYYY, or YYYY-MM, or YYYY-MM-DD

Example
2019
Datesuggested