TestProcessorUserChoice 

TB Wiki

Login

TestProcessorUserChoice

Here is the test page for the 'UserChoice' processor.

This processor demonstrates the use of sub-actions in a tbwiki processor. It processes the content block, and shows the first two lines at a choice to the user. If the user clicks on one of the two links, the appropriate processor sub-action is called, and the result is displayed to the user.

processor block [edit section]

Here is the processor block:
{{{#!UserChoice
This is the first choice: apples.
This is the second choice: bananas.
}} }

result output [edit section]

Here is the result from the processor:

Please choose one of the following, by clicking on the link:

expected result [edit section]

The expected output should be:

Please choose one of the following, by clicking on the link:

TBWiki engine 1.9.2 by Tim Bird