แม่แบบ:Str sub old
แม่แบบนี้ใช้ลูอา |
Usage แก้
{{str sub long|text|start|length}}
= Substring of text starting at start and containing length characters. Base 0: the first character is numbered 0, and so on, e.g. {{str sub long|20090624130510|8|2}} returns the 2 characters starting at the 9th, i.e. "13"
Only operates on a limited character set.
Template data แก้
ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ
ข้อมูลแม่แบบสำหรับ Str sub old (ยังไม่มีการตรวจสอบ)
The template takes a substring of ''text'' starting at ''start'' and containing ''length''characters.
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
Text | 1 | The substring to be trimmed. | สตริง | จำเป็น |
Numeric position | 2 | Numeric position of the starting character within the string | จำนวน | จำเป็น |
Count | 3 | Number of characters for the substring | จำนวน | จำเป็น |
ดูเพิ่ม แก้
- {{Str sub}}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Str sub old/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |