Jump to content

Template:Str sub old

From Deep Politics Wiki
Revision as of 02:08, 8 August 2019 by WikiSpooks>Robin (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation[view] [edit] [history] [purge]

Usage

{{str_sub|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|20090624130510|8|2}} returns the 2 characters starting at the 9th, i.e. "Template:Str sub"

Template data

Template:TemplateDataHeader

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

Template parameters

ParameterDescriptionTypeStatus
Text1

The substring to be trimmed.

Stringrequired
Numeric position2

Numeric position of the starting character within the string

Numberrequired
Count3

Number of characters for the substring

Numberrequired

See also

lt:Šablonas:Str sub