Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Str sub long/doc: Difference between revisions

Template page
from https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Template:Str_sub_long/doc&oldid=418095176
 
m remove sentance that is now incorrect.
Line 4: Line 4:
=== Usage ===
=== Usage ===
<code><nowiki>{{str sub long|</nowiki>''text''|''start''|''length''<nowiki>}}</nowiki></code> = Substring of ''text'' starting at ''start'' and containing ''length'' characters. Base 0: the first character is numbered 0, and so on, e.g. <nowiki>{{str sub long|20090624130510|8|2}}</nowiki> returns the 2 characters starting at the 9th, i.e. "{{str_sub|20090624130510|8|2}}"
<code><nowiki>{{str sub long|</nowiki>''text''|''start''|''length''<nowiki>}}</nowiki></code> = Substring of ''text'' starting at ''start'' and containing ''length'' characters. Base 0: the first character is numbered 0, and so on, e.g. <nowiki>{{str sub long|20090624130510|8|2}}</nowiki> returns the 2 characters starting at the 9th, i.e. "{{str_sub|20090624130510|8|2}}"
''start'' + ''length'' must be less than 100.  Only operates on a limited character set.


=== See also ===
=== See also ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.