Jump to content

User:Halo2/Archive-Nav

From Wikipedia, the free encyclopedia


Example display

Archive This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current user talk page.
←  Archive 2024-06  •  Archive - July 2024  •  Archive 2024-08  →

Usage

{{User:Halo2/Archive-Nav | yyyy = 2024 | mm = 07 }}

Where the parameters yyyy is the four digit year (eg. 2024) and mm is the month number and must include a leading zero (eg. 07). It can be used on any users talk page, but for use with the archiving bot (see below) the archive parameter (of the bot) would need to be changed.

Notes

The layout of this templates design comes from {{Archive-nav}}.
This template must have the leading zero included for the mm parameter. The code below (for the archiving bot) makes sure of this. The leading zero insures the created page name is constant (using the yyyy-mm context), and this template header also follows this rule.
This page was created so User:MiszaBot could create an archive page of my talk page using the date as a name. The code below is an example which tells the bot to archive every 10 days creating the monthly page name of User talk:Halo2/Archive 2024-07. It also puts this template in the header of each page, changing it every month so it reflects the date of its archive page. See MiszaBot "how to" page for more information.

{{User:MiszaBot/config
| counter = 
| algo = old(10d)
| archive = User talk:Halo2/Archive %(year)d-%(month)02d
| archiveheader = {{User:Halo2/Archive-Nav | yyyy = %(year)d | mm = %(month)02d }}
}}


Halo2/Archive-Nav Halo2/Archive-Nav