You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 16
Next »
Survey Macros
Creates a survey in a Wiki page.
This plugin includes the following macros:
- vote - Creates a simple survey.
- survey - Creates a more complex survey, with multiple 'questions', the ability to add comments, and a survey summary.
Creates a simple survey.
The Code
Simple survey with changeable votes:
{vote}
{vote:What is your favorite color?|changeableVotes=true}
Red
Green
Blue
{vote}
Result
Simple survey with changeable votes:
Choices |
Your Vote |
Current Result: (0 Total Votes) |
Red |
|
0 Votes , 0%
|
Green |
|
0 Votes , 0%
|
Blue |
|
0 Votes , 0%
|
Parameters
{vote:Title}
option 1
option 2
option 3
{vote}
Name |
Required? |
Default |
Description |
changeableVote |
|
false |
Determines whether a user can revote. |
voters |
|
All users with 'view' permissions on a page where survey is displayed |
Determines who can vote (list Kerberos IDs in a comma separated list). |
viewers |
|
All users with 'view' permissions on a page where survey is displayed |
Determines who can view the survey results (list Kerberos IDs in a comma separated list). |
Creates complex survey, with multiple 'questions', the ability to add comments, and a survey summary.
The Code
A survey with changeable votes:
{survey:changeableVotes=true}
Knowledge - This is the knowledge category.
Communication Skills- This is the communication category.
Teaching skills - How good is he at teaching?
{survey}
Result
A survey with changeable votes:
Question |
Total Votes |
Average Score |
Knowledge |
0 |
0.00
|
Communication Skills |
0 |
0.00
|
Teaching skills |
0 |
0.00
|
This is the knowledge category.
Choices |
Your Vote |
Current Result: (0 Total Votes) |
Comments |
5-Outstanding |
|
0 Votes , 0%
|
4-More Than Satisfactory |
|
0 Votes , 0%
|
3-Satisfactory |
|
0 Votes , 0%
|
2-Less Than Satisfactory |
|
0 Votes , 0%
|
1-Unsatisfactory |
|
0 Votes , 0%
|
This is the communication category.
Choices |
Your Vote |
Current Result: (0 Total Votes) |
Comments |
5-Outstanding |
|
0 Votes , 0%
|
4-More Than Satisfactory |
|
0 Votes , 0%
|
3-Satisfactory |
|
0 Votes , 0%
|
2-Less Than Satisfactory |
|
0 Votes , 0%
|
1-Unsatisfactory |
|
0 Votes , 0%
|
How good is he at teaching?
Choices |
Your Vote |
Current Result: (0 Total Votes) |
Comments |
5-Outstanding |
|
0 Votes , 0%
|
4-More Than Satisfactory |
|
0 Votes , 0%
|
3-Satisfactory |
|
0 Votes , 0%
|
2-Less Than Satisfactory |
|
0 Votes , 0%
|
1-Unsatisfactory |
|
0 Votes , 0%
|
Parameters
Name |
Required? |
Default |
Description |
changeableVote |
|
false |
Determines whether a user can revote. |
voters |
|
All users with 'view' permissions on a page where survey is displayed |
Determines who can vote (list Kerberos IDs in a comma separated list). |
viewers |
|
All users with 'view' permissions on a page where survey is displayed |
Determines who can view the survey results (list Kerberos IDs in a comma separated list). |
Error rendering macro 'deck'
java.lang.NullPointerException