Template:Do not archive until

From TestWiki
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Use this template to prevent Autoarchive of a given thread, either semi-permanently or for a specified number of days. Conventionally this template is used at the top of the thread, just under the header, but it may be placed anywhere in the thread.

This template works by placing a hidden HTML comment in the thread that contains a future date. The comment is invisible to users but visible to the archiving bots, and the bots will not archive the thread until that date is at least one archival period in the past. The comment can be seen when the page is edited, and looks like the following:
<!-- This string was inserted to delay the archive for a period of time.Do not strip this string for any purpose other than to reduce the duration.The automatic archiving will occur two weeks after the last stamped date, so the stamped date will be two weeks before the desired extension date.--[[User:DoNotArchiveUntil]] 22:43 25 April 2021 (UTC) -->
Where the date used is determined by the parameters entered into the template or close to ten years in the future if no parameters were specified.

Tools that respect the code[edit source]

Tools that do not respect the code[edit source]

  • None known at this time.

Usage[edit source]

This template must be substituted to work.

This template takes two parameters, both optional.

Use the first to specify the number of days to prevent the thread from archiving. if the parameter is omitted, the template will set the thread to archive in 3650 days (close to 10 years). Use the second to specify a different unit than days. To use this template, type in the following:

  • {{subst:DNAU}} - to prevent a thread from being archived for a very long time.
  • {{subst:DNAU|200}} - to prevent a thread from being archived for 200 days.
  • {{subst:DNAU|47|weeks}} - to prevent a thread from being archived for 47 weeks.
  • {{subst:DNAU|2=hours}} - to prevent a thread from being archived for 3650 hours (close to 5 months).

Since not all pages are archived daily, the parameter should be read as the minimum number of days before thread is archived.

Parameters[edit source]

|1=, first unnamed parameter: number of units until autoarchival (default is 3650)
|2=, second unnamed parameter: type of unit (default is 'days'). All relative PHP unit formats are acceptable: 'sec', 'second', 'min', 'minute', 'hour', 'day', 'week', 'fortnight', 'month', 'year', and their respective plurals 'secs', 'seconds' etc.

See also[edit source]
https://publictestwiki.com/wiki/Template:Do_not_archive_until
publictestwiki.com
crawl=CC-MAIN-2021-21
53986
application/http; msgtype=response
sha1:RUG56RADW7ODDRAAIIMBAH3EEWQ3UWF7
<urn:uuid:435eb4dd-56ee-4f02-b52b-24c20d2c155e>
2021-05-09T23:05:03Z
51.222.25.132
text/html
sha1:VI2NO6AYZ5HJXOPQP5YVQLIPXAJPNRM5
<urn:uuid:cd6f228e-27fd-45bf-8ff1-a85dfa54a8e9>
https://publictestwiki.com/wiki/Template:Do_not_archive_until
response
<urn:uuid:a9257331-6fb5-4570-97fa-a297130d071a>
isPartOf: CC-MAIN-2021-21
publisher: Common Crawl
description: Wide crawl of the web for May 2021
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-61.ec2.internal
software: Apache Nutch 1.18 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/