The {sudoku-highscores} macro displays high scores for the sudoku-js macro and [USERGUIDE:sudoku macro]...
When a user submits their Sudoku board, the scores are stored based on the difficulty setting (easy, medium, hard) of the game and the amount of time it took them to complete the board.
The {sudoku-highscores} macro is used to display the high scores - either for a specific person (the logged in user) or for everyone (within a space).
Add the macro to a page or personal profile as follows:
{sudoku-highscores:display=disp}
Macro Parameters
Parameter
Required
Default
Notes
display
automatic
If you don't specify this parameter (as shown in Example 1 below) then the display will either be:
personal - if the macro is used in a user profile
leaderboard - if the macro is used elsewhere
To override the automatic display, for example to show personal scores on a normal page, simply specify the desired value.
This plug-in is available without cost for both commercial and non-commercial purposes. However, if you have found it to be useful, particularly within a commercial environment, please consider making a donation to the author. This will encourage continued development of this and other plug-ins, as well as speeding up the response for your latest maintenance request.
If you wish to donate, it can be done easily with a credit card or bank transfer using PayPal. No account sign-up is required for credit or debit card payments.
The {sudoku-highscores macro} is released under the BSD License.
This macro has been tested by Adaptavist with Confluence 2.1.2 and should work on all versions of Confluence 2.1.x.
It is usually pre-installed with Host accounts. To install it on your own Confluence installation, please see Suduko
Adaptavist maintain a JIRA Project for tracking bug reports and feature requests for this macro. The currently reported items are shown below:
jiraissues: Could not download[ http://jira.adaptavist.com/secure/IssueNavigator.jspa?view=rss&pid=10002&component=10244&resolutionIds=-1&sorter/field=priority&sorter/order=DESC&tempMax=25&reset=true&decorator=none] : caused by : Circular redirect to 'http://jira.adaptavist.com:80/secure/IssueNavigator.jspa'
To add the default high scores table, use the following notation:
{center}{sudoku-highscores}{center}
Note: We've used the center macro to center the table on the page.
Which gives:
Unknown macro: {sudoku-highscores}
If you add this to a user profile, it will automatically default to the "personal best" view, otherwise it will show the "space leaderboard" view (as shown here).
Specific Scoreboard Mode
If you want to show scores specifically for a Space or a user, specify the display parameter accordingly: