[TYPO3-doc] WIKI: use of conditions in templates

Daniel Brüßler info at -remove-patchworking.de
Wed Aug 15 00:00:19 CEST 2007


Hello Michiel,

sorry for the delay - now it's running. Really great that the most is
working because in the top box it's said
"MediaWiki: > 1.6.8"

Just the switch is not working, but #ifeq and #ifexist does work!

Here the test-results in
http://wiki.typo3.org/index.php/User:EscapedPrisoner#ParserFunctions_Tests

--------
=== ParserFunctions Tests ===
* Calculation using #expr: 30 / 7 round 1: '''{{ #expr: 30 / 7 round 1 }}'''
* Tests if equal using #expr: '''{{ #expr: 30 = 7 }}'''
* Tests if numbers equal - yes or no per #if: ''{{ #if: 1 = 2 | yes | no
}}''
* Tests if strings equal - yes or no per #ifeq: ''{{ #ifeq: "+07" |
"007" | yes | no }}''
* Tests if page exists - yes or no per #ifexist: ''{{ #ifexist:
Sandbox|yes | no }}''
* Switch using #switch: not working because error-message "Warning:
array_slice(): The first argument should be an array" ''#switch:
"+07"|"7"= Yes |"007"= Bond | No''
* Links to root-page: not active {{ #titleparts:Help:Link/a/b|1}}
----------


kind regards
Daniel


>> No, we don't have to wait. The extension works for PHP4 too (see
>> bottom of the page)
>> Michiel
>>>> http://meta.wikimedia.org/wiki/ParserFunctions#Installation


More information about the TYPO3-project-documentation mailing list