Test-If: Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:


Could we please install the ParserFunctions MediaWiki extension ?
Could we please install the ParserFunctions MediaWiki extension ?
See - http://meta.wikimedia.org/wiki/ParserFunctions"]ParserFunctions
See - http://meta.wikimedia.org/wiki/ParserFunctions


Many thanks
Many thanks
Line 8: Line 8:
Paul
Paul


Ignore the rest of this page
as it won't work without ParserFunctions





Revision as of 14:15, 28 January 2008

Hi Folks

Could we please install the ParserFunctions MediaWiki extension ? See - http://meta.wikimedia.org/wiki/ParserFunctions

Many thanks ATB Paul

Ignore the rest of this page as it won't work without ParserFunctions


Some results from parser function parameters:

{{#len:string}} for string = 123456789 should evaluate to '9' 

{{{#len:123456789}}}

{{#pos:string|target|offset}}  should evaluate to '10' 

target

  should evaluate to 'yes' 

abc

  should evaluate to 'yes' 

abc

  should evaluate to 'yes' 

abc

{{#ifeq:{{lc:AbC}}|abc|yes}}  should evaluate to 'yes' 

abc

{{#ifeq:banana|abc|true|false}}  should evaluate to 'false' 

abc

Prefix Data not passed


Suffix Data not passed