Difference between revisions of "Template:Archive basics/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Technical 13
blackwiki>Makyen
(Be more specific about the need for a {{User:MiszaBot/config}})
Line 4: Line 4:
 
== Usage ==
 
== Usage ==
  
This template is used to provide an archive name and counter number to [[User:Equazcion/OneClickArchiver.js]], on pages where a bot archiver configuration doesn't exist. This template and OneClickArchiver work with archives that end with a number. It does not work with archives that do not end in a number. It follows the format of [[User:MiszaBot/config]], but only requires two parameters:
+
This template is used to provide an archive name and counter number to [[User:Equazcion/OneClickArchiver.js]], on pages where a {{tlu|User:MiszaBot/config}} configuration doesn't exist, or does not contain a numeric counter. This template and OneClickArchiver work with archives that end with a number. It does not work with archives that do not end in a number (e.g. archives organized by year/month). It follows the format of [[User:MiszaBot/config]], but only requires two parameters:
  
 
*<code>|archive=</code>
 
*<code>|archive=</code>

Revision as of 18:22, 24 June 2014

Usage

This template is used to provide an archive name and counter number to User:Equazcion/OneClickArchiver.js, on pages where a {{User:MiszaBot/config}} configuration doesn't exist, or does not contain a numeric counter. This template and OneClickArchiver work with archives that end with a number. It does not work with archives that do not end in a number (e.g. archives organized by year/month). It follows the format of User:MiszaBot/config, but only requires two parameters:

  • |archive=
  • |counter=

Examples

Example 1:

{{Archive basics
|archive = User talk:Username/Archive %(counter)d
|counter = 4
}}

Example 2 if you want to cut & paste for numbered archives:

{{Archive basics
|archive = {{SAFESUBST:FULLPAGENAME}}/Archive %(counter)d
|counter = 1
}}

Because User:Equazcion/OneClickArchiver.js is extremely sensitive for case and spaces, There is a shortcut template to make it even easier for you to apply this. Simply change the number "1" to whatever number you want to start with for a counter number:

{{SAFESUBST:Oca|1}}