Minecraft Wiki
Advertisement
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
Based on Wikipedia:User:MiszaBot/config

This template is used to install/manage OneClickArchiver for use on talk pages.

Installation

To install OneClickArchiver, simply add {{subst:archive script}} to your common.js file.

Usage

To control which archive page sections should be moved to, place {{Archive config|counter=<number>}} to the top of the page, changing <number> to an integer; for example, use {{Archive config|counter=29}} to add pages to "{FULLPAGENAME}/Archive 29". To control the format of the subpage name, use |archive=: for example use {{Archive config|archive=That page/Archive %(year)d}} to create an archive at "That page/Archive 2023".

Variables

You may use the following variables to control the format of an archive:

Variable parameter Expands to...
%(counter)d The current value of |counter=
%(year)d Year of the thread being archived
%(month)d Month (as a number, 1–12) of the thread being archived
%(monthname)s Full name of the month of the thread being archived
%(monthnameshort)s First three letters of the month of thread being archived



Advertisement