Thread:User talk:Catsidhe/ str right/reply (2)

I take it back. The string extensions are not enabled on Wiktionary.

From a quick look what it requires for them to be enabled is
 * Add to the bottom of LocalSettings.php:
 * require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
 * If you want to use the integrated string function functionality, add just after that line
 * $wgPFEnableStringFunctions = true;

which is something the Site admins have to do.

Once that's done, taking the final character of a string is a native expression (not a template function), and as simple as, which currently is invalid, but if/when the string extensions are enabled, will return "g". (And returns "ng", etc.

With String Extensions enabled, a lot of things which are currently difficult, impossible, or so expensive as to be dangerous, become trivial.