แม่แบบ:Trim/doc
ไปยังการนำทาง
ไปยังการค้นหา
![]() | แม่แบบ:Strongของ แม่แบบ:Trim ใช้ในการเขียนคำอธิบายวิธีการใช้งาน จัดหมวดหมู่ และเนื้อหาอื่น ๆ ที่ไม่ได้เป็นส่วนหนึ่งของหน้าแม่แบบต้นฉบับ |
![]() | This template is for trimming whitespace from strings. For the maintenance tag for images, see {{trimming}} |
This template trims leading and trailing (but not interior) whitespace from a string. The string should be passed as the first unnamed parameter. The parameter must be named |1=
if its value contains a =
character.
You may substitute this template - that is, if used as {{subst:trim}}
, the resulting wikicode is "clean".
Usage
{{trim|text}}
= text with any leading or trailing whitespace removed.
Examples
Template data
ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งใช้งานโดยตัวช่วยสร้างแม่แบบ เครื่องมือแก้ไขแบบเห็นภาพ และเครื่องมืออื่น ดูรายงานการใช้พารามิเตอร์ประจำเดือนสำหรับแม่แบบ:Trim
ข้อมูลแม่แบบสำหรับ Trim
The template trims whitespace from a string.
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
String | 1 | The string to be trimmed of whitespace | สตริง | จำเป็น |
See also
- {{crop}}