แม่แบบ:Class
หน้าตา
| ??? |
| มีการใช้แม่แบบนี้ ประมาณ 7,100,000 หน้า หรือประมาณ 602% ของหน้าทั้งหมด เพื่อหลีกเลี่ยงผลกระทบกว้างขวางและลดภาระของเซิร์ฟเวอร์ ดังนั้นก่อนแก้ไขแม่แบบนี้จึงควรทดลองที่กระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเองจนมั่นใจว่าไม่มีข้อผิดพลาด อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปรายก่อนที่จะนำไปใช้ |
This template is used to show WP1.0 assessment ratings on WikiProject banners and other places.
การใช้งาน
[แก้]{{class|grade}}- Where grade is the classification of the article.
{{class|grade|image=yes}}|image=yesDisplays a small icon next to the grade description for all assessments (produced by{{class/icon}}).|image=nodoes not ever display icons.|image=(blank or undefined) displays icons for FA, FL, A and GA classes only.
{{class|grade|category=category}}- Define an alternative category link.
{{class|grade|header=yes}}- By default the
{{class}}template generates a table cell using the<td>...</td>element. If the template is used in the header row of a sortable table, use|header=yesso that the cell is constructed using the<th>...</th>element. If used elsewhere than a header row, omit this parameter.
- By default the
ตัวอย่าง
[แก้]|
|
ข้อมูลแม่แบบ
[แก้]ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งใช้งานโดยตัวช่วยสร้างแม่แบบ เครื่องมือแก้ไขแบบเห็นภาพ และเครื่องมืออื่น ดูรายงานการใช้พารามิเตอร์ประจำเดือนสำหรับแม่แบบ:Class
ข้อมูลแม่แบบสำหรับ Class
| พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
|---|---|---|---|---|
| Grade | 1 | The classification of the article | สตริง | จำเป็น |
| Image | image | Set to 'yes' to display an icon; 'no' to not display an icon; or no value or blank to display an icon for FA, FL, A and GA classes only | สตริง | ไม่บังคับ |
| Category | category | An alternative category link | สตริง | ไม่บังคับ |
| Header | header | Set to 'yes' if the template is used in the header row of a sortable table, so that the cell is constructed using a "th" element rather than a "td" element | สตริง | ไม่บังคับ |