Wiki - KEONHACAI COPA

Bản mẫu:Autoarchive resolved section

Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Sử dụng[sửa mã nguồn]

Kiểu lưu trữ này được thực hiện bởi SpBot (không phải ArchiverBot). Bot sử dụng bản mẫu {{section resolved}} hoặc tham số timeout của bản mẫu này.

Không quan trọng rằng bản mẫu "Section resolved" được đặt ở đâu trong một đề mục. Bot sẽ luôn chú ý đến tiêu đề cuối cùng/trước đó của đề mục sẽ được lưu trữ.

Tham số bản mẫu[Quản lý Dữ liệu bản mẫu]

Tham sốMiêu tảKiểuTrạng thái
ageage

Parameter 'age' defines the required age of the the template ''Section resolved'' in days. After this amount of days the section will be archived.

Sốbắt buộc
archivearchive

You can use variables in your 'archive' parameter as [[#.22Archive.22_parameter_variables|listed below]]. Example: 'archive=Talk:Some page/Archives/((year))/((month:short))' (just an example, not really used there)

Chuỗi dàibắt buộc
overviewoverview

The parameter 'overview' can be used to display a link to the location of the archive page. Example code: 'overview=[[/Archive]]' Results in an archive overview link at ''<nowiki><code>[[/Archive]]</nowiki></code>''. An alternative to this parameter is the use of [[Template:Archive box]].

Tên trangtùy chọn
latest archivelatest archive

The parameter <code>latest archive</code> can be used to display a link to the current archive. Example code: <code><nowiki>latest archive=[[Wikisource:Forum/Archiv/2016/October]]</nowiki></code> Results in: The latest archive is located under '''[[Commons:Forum/Archiv/2016/October]]'''.

Mặc định
Tên trangtùy chọn
showshow

The parameter <code>show</code> defines if the template should display anything or not: <code>show=yes</code> or <code>show=no</code>. This parameter can be used if the template is used on a page which has an own intro explaining the archiving parameters.

Mặc định
yes
Chuỗi dàitùy chọn
levellevel

Parameter 'level' defines which heading level should be archived. Deeper heading levels are treated as part of the specified level.

Mặc định
2
Sốtùy chọn
timecomparetimecompare

This parameter specifies which timestamp should be used for distribution into the archives. In the parameter 'archive' you can use variables referring to the date.

'timecompare' defines which timestamp is used for this parameter 'archive'.
'timecompare = resolved': Timestamp given by {{Section resolved}}
Any other value or empty: the oldest timestamp of the whole section

Mặc định
[empty]
Chuỗi dàitùy chọn
timeouttimeout

Specifies the number of days have to pass by to consider a section as 'resolved' automatically, even if no {{Tl|Section resolved}} template was set. Archiving will be proceeded if the specified period of time (''timeout'') has passed since the last comment. The template {{Tl|DNAU}} is supported.

Mặc định
0
Sốtùy chọn

Biến của tham số "archive"[sửa mã nguồn]

Bạn có thể sử dụng các biến dưới đây trong tham số archive:

BiếnÝ nghĩa
((year))Năm. Ví dụ: 2024
((month:long))Tháng đầy đủ. Ví dụ: Tháng Hai
((month:short))Tháng rút gọn. Ví dụ: Tháng 02
((month:#))Tháng. Ví dụ 2
((month:##))Tháng có hai chữ số. Ví dụ 02
((week))Tuần dưới dạng chữ số 15, 4 (theo tiêu chuẩn ISO 8601)
((week:##))Tuần dưới dạng số có hai chữ số. Ví dụ: 15, 04 (theo tiêu chuẩn ISO 8601)
((day:##))Ngày dưới dạng số có hai chữ số. Ví dụ: 31, 07
((quarter))Một phần tư của năm. Ví dụ. 3
((quarter:##))Một phần tư của năm dưới dạng số có hai chữ số. Ví dụ: 03
((quarter:i))Một phần tư của năm dưới dạng chữ số La Mã viết thường. Ví dụ: iii
((quarter:I))Một phần tư của năm dưới dạng chữ số La Mã viết hoa. Ví dụ III
((half-year))Nửa phần của năm. Ví dụ: 2
((half-year:i))Nửa phần của năm dưới dạng chữ số La Mã viết thường. Ví dụ: ii
((half-year:I))Nửa phần của năm dưới dạng chữ số La Mã viết hoa. Ví dụ: II
((FULLPAGENAME))Không gian tên cùng với tên trang hiện tại. Giống như từ ma thuật {{FULLPAGENAME}}, nhưng với dấu ngoặc đơn. Nên sử dụng biến này thay vì viết lại tên trang trong bản mẫu.

Ví dụ: archive=((FULLPAGENAME))/Lưu trữ/((year))((month:short))

Ví dụ[sửa mã nguồn]

Ví dụ sau được lấy từ Commons:Village pump. Mọi đề mục cấp 2 (tức đề mục ==) sẽ được lưu trữ sau một ngày kể từ ngày đặt Bản mẫu:Section resolved. Các trang lưu trữ có thể được tìm thấy tại Special:PrefixIndex/Commons:Village pump. Đề mục được lưu trữ vào /Lưu trữ/2017/Tháng Một nếu bình luận đầu tiên được đăng vào Tháng Một.

{{Autoarchive resolved section
 |age=1
 |archive=((FULLPAGENAME))/Archive/((year))/((month:##))
 |overview=[[Special:PrefixIndex/{{subst:FULLPAGENAME}}/Archivr|archive]]
}}

Sẽ như thế này:

SpBot tự động lưu trữ các đề mục được đánh dấu bằng {{Section resolved|1=~~~~}} sau 1 ngày. Đối với tất cả lưu trữ, xem archive.


Bản mẫu đầy đủ[sửa mã nguồn]

{{autoarchive resolved section
 | age            = 
 | archive        = 
 | overview       = 
 | latest archive = 
 | show           = 
 | level          = 
 | timecompare    = 
 | timeout        = 
}}

Định dạng chữ ký[sửa mã nguồn]

Phần ngày và giờ của chữ ký rất quan trọng để bot nhận dạng dấu thời gian. Định dạng mặc định là định dạng được MediaWiki sử dụng và được tự động tạo ra khi bạn gõ ~~~~ hoặc ~~~~~ (ví dụ: 07:54, ngày 20 tháng 4 năm 2024 (UTC)). Điều này dựa trên cấu trúc sau:

{{subst:LOCALTIME}}, ngày {{subst:LOCALDAY}} {{subst:LOCALMONTHABBREV}} năm {{subst:LOCALYEAR}} (UTC)

Mọi định dạng khác không được hỗ trợ.

Lỗi[sửa mã nguồn]

Các trang thảo luận có lỗi trong bản mẫu chính hoặc {{Section resolved}} được hiển thị trong các danh sách sau và trên trang thảo luận tương ứng.

Thông tin
Wiki - Keonhacai copa chuyên cung cấp kiến thức thể thao, keonhacai tỷ lệ kèo, bóng đá, khoa học, kiến thức hằng ngày được chúng tôi cập nhật mỗi ngày mà bạn có thể tìm kiếm tại đây có nguồn bài viết: https://vi.wikipedia.org/wiki/B%E1%BA%A3n_m%E1%BA%ABu:Autoarchive_resolved_section