Template:Str index/doc

From Australian sf information
< Template:Str index
Revision as of 09:04, 23 January 2011 by Thomas Bull (talk | contribs) (copy/paste from Wikipedia (most relevant part of a documentation page))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage

{{str index|text|number}} = Returns the number-th character of text.

Only supports a limited character set. Returns an error on unknown characters. Returns &#32; for a blank space.

Examples

  • {{str index|0123456789ABCDEF|15}} → E
  • {{str index|0123456789ABCDEF|18}} → <span id="FormattingError" />((str index)): String is not long enough.
  • {{str len|{{str index|a b|2}}}} → 5