Template:Str index any/doc


 * Description
 * This template extracts a specified nth character from a string, even allowing for accented letters to be included in the string.


 * Dependencies:
 * Uses Template:Str ≥ len
 * Uses Template:Str index/getchar
 * Uses Template:Str left


 * Syntax
 * Type  somewhere.


 * Sample output
 * 0 → 0
 * 0 → 0
 * 0 → 0
 * 0 → 0
 * 0 → 0

The last example shows extraction of letter "b" with string length as 1. The prior example extracts a blank but considers the length as 5 for the 5 characters "&amp;#32;" even though there is only 1 space, and hence, 9 → 5. If surrounded by 2 other characters, then the length might be totalled incorrectly as 7 (rather than 3 characters):


 * 2 → 2
 * 2 → 2
 * 2 → 2
 * XX → XX