Lompat ke isi

Pengguna:HsfBot/Arsip otomatis

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

Penggunaan

Tambahkan templat berikut di bagian paling atas halaman yang akan diarsipkan:

{{Pengguna:Hsfbot/config
|archive             =
|algo                =
|counter             =
|maxarchivesize      =
|minthreadsleft      =
|minthreadstoarchive =
|archiveheader       =
|key                 =
}}

Parameter templat

Meanings of the template's parameters are: </translate>

<translate>

Template parameter</translate> || <translate> Description</translate>

archive <translate>

name of the page to which archived threads will be put. Must be a subpage of the current page. [[<tvar|anchor>#variables</>|Variables]] are supported.</translate>

algo <translate>

specifies the maximum age of a thread. Must be in the form old(delay) where delay specifies the age in hours or days like <tvar|v1>24h</> (24 hours) or <tvar|v2>5d</> (5 days). Default is <tvar|defalgo>old(24h)</>.</translate>

counter <translate>

The current value of a counter which could be assigned as variable. Will be actualized by bot. Initial value is <tvar|v>1</>.</translate>

maxarchivesize <translate>

The maximum archive size before incrementing the counter. Value can be given with appending letter like <tvar|k>K</> or <tvar|m>M</> which indicates KByte or MByte. Default value is <tvar|defmaxsize>1000M</> (1000 megabytes).</translate>

minthreadsleft <translate>

Minimum number of threads that should be left on a page. Default value is <tvar|defmin1>5</>.</translate>

minthreadstoarchive <translate>

The minimum number of threads to archive at once. Default value is <tvar|defmin2>2</>.</translate>

archiveheader <translate>

Content that will be put on new archive pages as the header. This parameter supports the use of variables. Default value is <tvar|template>{{talkarchive}}</>.</translate>

key <translate>

A secret key that (if valid) allows archives to not be subpages of the page being archived.</translate>

<translate>