แม่แบบ:Str sub old

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

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[แก้]

This is the TemplateData documentation for the template used by the new VisualEditor.

Str sub old

The template takes a substring of ''text'' starting at ''start'' and containing ''length''characters.

Template parameters
Parameter Description Type Default Auto value Status
Text 1 The substring to be trimmed. string empty empty required
Numeric position 2 Numeric position of the starting character within the string number empty empty required
Count 3 Number of characters for the substring number empty empty required

See also[แก้]