Pengguna:HsfBot/Arsip otomatis: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Hidayatsrf (bicara | kontrib) Tidak ada ringkasan suntingan |
Hidayatsrf (bicara | kontrib) →Contoh 3: arsip berbasis tanggal: // Edit via Wikiplus |
||
(29 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 3:
: (For similar bots, see [[:Category:Wikipedia archive bots]].)
-->
{{Warning|Kekutu: untuk saat ini HsfBot hanya bisa mengarsipkan ''thread'' atau bagian halaman pembicaraan yang ditandangani dalam [[UTC]]. Halaman yang ditandatangani dalam waktu lokal kemungkinan harus diarsipkan secara manual}}
{{Warning|Sebelum menyiapkan pengarsipan otomatis di halaman pembicaraan artikel, mohon buat konsensus bahwa pengarsipan benar-benar dibutuhkan di sana.}}
Baris 8 ⟶ 9:
Letakkan templat berikut di bagian paling atas halaman yang ingin Anda arsipkan secara otomatis:
{{Warning|Kode di bawah tidak akan bekerja,
<pre style="overflow: auto">
Baris 20 ⟶ 21:
Well, maybe '''not exactly''' that (read about required options below), but that's how it's done. By the way, [[User:HsfBot/config|the template]] has '''no content''' and is sysop-'''protected''', so don't worry about visual appearance. :)
-->
Bot hanya mengenali satu parameter per baris. Penutupan <code>}}</code> harus berada pada baris tersendiri. Tidak boleh ada spasi sebelum pipa ( <code>|</code> ). Jika Anda
Selain itu, templat harus ditempatkan:
# sebelum header <code>== tingkat kedua ==</code> ''pertama'' di halaman
# pada '''''halaman sebenarnya''''' yang hendak diarsipkan, dan tidak ditransklusikan dari subhalaman, seperti header halaman, templat, dll.
=== Contoh
:<span style="color:darkred;">'''Silahkan ganti "''Pembicaraan pengguna:Contoh''" ke nama ''
:<span style="color:darkgreen;">'''Jika masih tidak berfungsi, baca tentang parameter
==== Contoh 1: arsip statis ====
{{Warning|
<pre style="overflow: auto">
{{User:HsfBot/config
| algo = old(7d)
| archive = Pembicaraan pengguna:
}}
</pre>
Pengaturan ini mengarsipkan
==== Contoh 2: Arsip berkesinambungan ====
Baris 48 ⟶ 49:
{{User:HsfBot/config
| algo = old(30d)
| archive = Pembicaraan pengguna:
| counter = 1
| maxarchivesize = 150K
Baris 56 ⟶ 57:
}}
</pre>
{{Hst|reason=
<pre style="overflow: auto">
{{User:HsfBot/config
| algo = old(30d)
| archive = {{SUBST:FULLPAGENAME}}/
| counter = 1
| maxarchivesize = 150K
Baris 69 ⟶ 70:
</pre>
{{Hsb}}
Ini memberitahu bot untuk mengarsipkan
==== Contoh 3: arsip berbasis tanggal ====
{{Warning|'''Jangan''' mengganti '''"year"''' dan "'''monthname"''' dengan nilai sebenarnya - bot akan memperlakukannya sebagai variabel yang sesuai.}}
<pre style="overflow: auto">
{{User:HsfBot/config
| algo = old(5d)
| archive = Pembicaraan pengguna:
| archiveheader = {{MonthlyArchive}}
}}
</pre>
{{Hst|reason=
<pre style="overflow: auto">
{{User:HsfBot/config
Baris 90 ⟶ 91:
</pre>
{{Hsb}}
Dalam konfigurasi ini, topik yang lebih tua dari 5 hari akan
=== Penjelasan parameter ===
Baris 107 ⟶ 108:
{| class = "wikitable"
! Parameter ||
|-
| <kbd>archive</kbd> || N/A;
|-
| <kbd>algo</kbd> || <kbd>old(24h)</kbd> ||
|-
| <kbd>counter</kbd> || <kbd>1</kbd> ||
|-
| <kbd>maxarchivesize</kbd> || <kbd>1954K</kbd> ||
|-
| <kbd>minthreadsleft</kbd> || <kbd>5</kbd> ||
|-
| <kbd>minthreadstoarchive</kbd> || <kbd>2</kbd> ||
|-
| <kbd>archiveheader</kbd> || <kbd>{{Tl|Talk archive}}</kbd> ||
|-
| <kbd>key</kbd> || ||
|}
===
{| class = "wikitable"
!
|-
| <kbd>%(counter)d</kbd> ||
|-
| <kbd>%(year)d</kbd> ||
|-
| <kbd>%(month)d</kbd> ||
|-
| <kbd>%(monthname)s</kbd> ||
|-
| <kbd>%(monthnameshort)s</kbd> ||
|}
<!--
Those [[python (programming language)|python]]-savvy people will immediately recognize these variables are filled at runtime with the <kbd>%</kbd> operator and should know how to adjust the format. A few points of interest to others:
*make sure you don't mess up the last letter after the brackets (it's "d" for [[integer]]s and "s" for [[string (computer science)|strings]])
Baris 146 ⟶ 147:
*:<kbd>%(counter)03d</kbd> evaluates to <kbd>013</kbd> if the <kbd>counter</kbd>'s value equals 13,
*:<kbd>%(month)02d</kbd> becomes <kbd>05</kbd> for May etc.
-->
===
<!--
The bot runs once a day at a preset hour, or twice a day for [[WP:Administrators' Noticeboard|WP:AN]] and [[Wikipedia:Administrators' noticeboard/Incidents|WP:AN/I]]. Simply wait for the next cycle and you should see the bot's entries in the history list of your article '''providing''' there was anything to archive, and the history list entry should provide a link to the archive page you specified.<br />
Baris 156 ⟶ 159:
* {{Tlx|MonthlyArchive}}. If you use [[#Example 3 - date-based archives]], use this with <code>root = Pembicaraan pengguna:Example/Archives</code>.
* {{Tlx|Talk header}} (this template has other functions, but can include a list of archives and a search box)
-->
=== Menunda atau mencegah pengarsipan thread tertentu ===
Pengarsipan dapat ditunda untuk thread tertentu dengan menambahkan templat {{tl|DNAU}} ke dalam thread/topik. Gunakan <code><nowiki>{{subst:DNAU}}</nowiki></code> untuk menyimpan untaian tanpa batas waktu, atau <code> <nowiki>{{subst:DNAU|<integer>}}</nowiki></code> untuk mencegah pengarsipan thread selama <[[integer]]> hari. lihat dokumentasi templat untuk rincian tentang penggunaan dan fungsinya.
=== Halaman yang menggunakan fitur ini ===
Berikut daftar halaman yang menggunakan fitur ini: (diperbarui bot dari [[Pengguna:HsfBot/config/report]])
{{Pengguna:HsfBot/config/report}}
{{Warchivenav|state=uncollapsed}}
<noinclude> </noinclude>
[[en:User:Lowercase sigmabot III/Archive HowTo]]
[[fi:Käyttäjä:HarrivBOT/config]]
|