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/ | 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
| Test | Parameters | Result |
| #if: | row_1_v {{{row_1_v}}} equals | true |
| #if: | row_2_v {{{row_2_v}}} equals | true |
| #ifeq: | row_1_v {{{row_1_v}}} equals | row_1_v {{{row_1_v}}} |
| #ifeq: | row_1_v {{{row_1_v}}} does not equal | row_2_v {{{row_2_v}}} |
Suffix Data not passed