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 choiceto 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 choiceto 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 ==Here is the processor block:{{{{{{#!UserChoiceThis is the first choice: apples.This is the second choice: bananas.}} }}}}
|
|
|
== result output ==Here is the result from the processor:
|
|
|
{{{#!UserChoiceThis is the first choice: apples.This is the second choice: bananas.}}}
|
|
|
== 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>)}}
|