FrontPage 

TB Wiki

Login

TestProcessorUserChoice in split format

Here is the test page for the 'UserChoice' processor.
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.
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]

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

result output [edit section]

== result output ==
Here is the result from the processor:
{{{#!UserChoice
This is the first choice: apples.
This is the second choice: bananas.
}}}

expected result [edit section]

== expected result ==
The expected output should be:
Please choose one of the following, by clicking on the link:
Please choose one of the following, by clicking on the link:
 * {{HTML(<a href=%(page_url)s?action=UserChoice.choice1>This is the first choice: apples.</a>)}}
 * {{HTML(<a href=%(page_url)s?action=UserChoice.choice2>This is the second choice: bananas.</a>)}}
TBWiki engine 1.9.1 by Tim Bird