Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User talk:Kelduum Revaan: Difference between revisions

Discussion page of User:Kelduum Revaan
Latest comment: 3 June 2010 by Mocam
Mocam (talk | contribs)
Created page with 'Howdy, It seems the string functions aren't activated. Second "note" near the top of this page: http://www.mediawiki.org/wiki/Extension:StringFunctions ::{| border=1 cellpadd…'
 
(No difference)

Latest revision as of 20:22, 3 June 2010

Howdy,

It seems the string functions aren't activated.

Second "note" near the top of this page: http://www.mediawiki.org/wiki/Extension:StringFunctions

Note: ... you need to set "$wgPFEnableStringFunctions = true;" in LocalSettings.php

Examples:

{{#len:testing}} -- should show the length of the string vs the formula.
{{#sub:caldari|0|3}} -- should return the sub-string "cal"

PS: You may want to adjust a couple of the string function limits up a little. Phased Weapon Navigation Array Generation Extron = 48 characters long. By default, a couple of the functions are limited to 30 char lengths.

$wgStringFunctionsLimitSearch
$wgStringFunctionsLimitReplace

Setting them to 60 or 90 should work for any string functions we'd need to do.

Example:

{{#replace: {{{ItemDescription}}} | Phased Weapon Navigation Array Generation Extron | PWNAGE }} -- it'd work to shorten descriptions or the like but not with a 30 char limit.

Thanks, --Mocam 20:22, 3 June 2010 (UTC)Reply