TemplateData ของ แม่แบบ:กึ่งล็อก

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ Pp(ยังไม่มีการตรวจสอบ)

Produces banners to describe why a page is protected and padlock icons

พารามิเตอร์แม่แบบ

พารามิเตอร์คำอธิบายชนิดสถานะ
Reason1

Reason for protection, may be one of: blp, dispute, dmca, mainpage, office, reset, sock, template, usertalk, vandalism

ตัวอย่างblp
สตริงแนะนำ
smallsmall

Specifies whether the small format is used. If set to "yes", "y", "1", or "true", a padlock icon is generated instead of a full protection banner.

ค่าปริยายnoตัวอย่างyes
ตรรกะแนะนำ
actionaction

Protection action. Must be one of "edit" (for normal protection), "move" (for move-protection) or "autoreview" (for pending changes). The default value is "edit".

ค่าปริยายeditตัวอย่างedit
สตริงเลือกได้
expiryexpiry

Expiry date of the protection. This can be a date (for temporary protection), or one of the strings "indef", "indefinite", "indefinitely", or "infinite" (for indefinite protection). If this is a date, it must be valid input to the second parameter of the #time parser function.

ตัวอย่าง20 December 2027
วันที่แนะนำ
datedate

Protection date. This must be valid input to the second parameter of the #time parser function. This argument only has an effect for the "office" and "reset" reasons.

วันที่เลือกได้
useruser

Username of the user to generate links for. This only has an effect when the "usertalk" reason is specified.

ผู้ใช้เลือกได้
sectionsection

Section name of the protected page's talk page where discussion is taking place. This works for most, but not all, values of reason.

สตริงเลือกได้
categorycategory

Categories are suppressed if this is set to "no", "n", "0", or "false".

ตรรกะเลือกได้