Test:Substring

From Wikispooks
Revision as of 21:39, 4 July 2019 by Robin (talk | contribs) (Created page with "==2019-07-05== The MediaWiki upgrade has obsoleted the old strlen functions. The modern way is to use the String module. i.e: <nowiki>{{#invoke:String|sub|ABCDEFGHIJKLMNOPQR...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

2019-07-05

The MediaWiki upgrade has obsoleted the old strlen functions. The modern way is to use the String module. i.e:

{{#invoke:String|sub|ABCDEFGHIJKLMNOPQRSTUVWXYZ|3|13}}

CDEFGHIJKLM

{{#invoke:String|len|ABCDEFGHIJKLMNOPQRSTUVWXYZ}}

26