Appearance
The Tournaments page lists periods a player can enter, and opens one of them with its standings. The card on Widgets is a separate switch. This article is the page.
The small line above the title is Compete. The heading a player reads is Tournaments.
Before you start
On Tools, Snippets, Pages, open Tournaments. Turn Enabled on, press Save, and place <div data-orbit-page="tournaments"></div>. See Place a page snippet on your site.
Button link on that card is optional. When it is set, a player who is already in a tournament gets a button, and that link is where the button goes. The label is the Card button text for the player’s language. In English, with a link and an empty label, the button reads Play now. An empty Portuguese or Spanish label does not use the English card label. With no link, that button is left off.
The translation table’s English for that button is “Play”. An English page draws “Play now” until an English translation is saved. Portuguese and Spanish already use the translated table.
To open one tournament first, add data-orbit-page-run on the same div. Copy snippet does not add it. If that run is not in the list this reader can see, the page reads “That tournament is not available to you.”
Signed out
A visitor still gets the public list. The line above it reads “Sign in to take part and see where you stand.” The button reads “Sign in to take part”. The translation table’s English for that button is “Sign in”. An English page draws the longer line until an English translation is saved. Portuguese and Spanish already use the translated table.
The button asks the site to sign the player in. If the site does not, and Button link is set, that link opens. If there is no link, the page adds “Use this site’s own sign-in to see your rewards.”
The tabs All and Finished appear only when the list has both finished periods and periods that are not finished. Each tab includes its count, as in All (3). Finished, on this public list, is a period the catalogue marks finished.
There is no Show more on the public list. When the catalogue is at its own limit, the page reads “These are the most recent {count}. Sign in to see the ones you are in.” The count is how many are on the page.
An empty public list reads “Nothing available yet.”
A public row shows the name, the description when there is one, and Starts {at} or Ends {at}. It does not show a place or a score.
Signed in
The tabs are always Open to you, Yours, and Finished, each with a count.
| Tab | What it lists |
|---|---|
| Open to you | Periods that are not finished and not cancelled |
| Yours | Those same periods, where this player has entered |
| Finished | Finished and cancelled |
Inside a tab, a live or closing period comes first, then one that has not started.
A row shows the name, the description, and Starts {at} or Ends {at}, in that period’s time zone. Your place is #n when the server has a place. Otherwise an entered player reads “Entered, no score yet”. Prizes reads “{places} paid place” or “{places} paid places”.
An empty tab reads “Your next chapter is on its way”, then “Nothing available yet.” If the first pages were empty and more remain, it reads “Nothing here on the first pages. There is more to read.” and offers Show more tournaments. While that runs, the button reads Loading…. A failed extra page reads “Could not load more tournaments. Please try again.”
One tournament
The back button reads All tournaments.
State is the period’s own word, in lowercase: live, upcoming, closing, finished, or cancelled. Starts or Ends is the same instant as on the row. Your score and Players appear when the server sent them.
A countdown sits beside that instant. It is a clock of hours, minutes, and seconds, with the number of days in front when there is at least a day. The label is Starts in, Ends in, or, while entry is still open, Entry closes in. When the time has passed, it reads Closed.
| This player | What the page says |
|---|---|
| Signed out | “Sign in to take part in this tournament.” and Sign in to take part |
| Already entered | “You are in this tournament. Play to move up the board.” and Play now when Button link is set |
| Entry closed | “Entry for this tournament has closed.” |
| Not eligible | “This tournament is not open to you.” |
| Can enter | Enter, or Enter for {points} points when entry costs points |
| No entry is offered | “This tournament cannot be entered right now.” |
Enter is accepted with “You are in.” While the request runs, the button reads “Just a moment…”. If the answer is lost, the page reads “We could not confirm this. Press again to check: it will not be charged twice.” A refusal is a short line under the button, such as “Entry has closed.”, “You are already in.”, “You need {points} more points.”, or “That did not work. Try again.”
How to score appears when the period has a scoring rule. It is one of these, with the period’s own unit, plus either “The highest score wins.” or “The lowest score wins.”
- “Your score is how many times you do it, counted in {unit}.”
- “Your score is your best single result, in {unit}.”
- “Your score is everything you do in this period added up, in {unit}.”
Prizes lists Place {place} and the prize’s own label.
Standings lists a place, a name, and a score. The first view is ten rows. The player’s own row stays on screen when it is outside those ten. Further rows use Show more results. The translation table’s English for that button is “Show more standings”. A failed extra page reads “Could not load more results. Please try again.” The translation table’s English for that line is “Could not load more standings. Please try again.” An English page draws the “results” lines until an English translation is saved. Portuguese and Spanish already use the translated table.
When the next place is on the board and both scores are known, the page reads “{gap} {unit} to reach #{place}”.
While the board is still collecting, it reads Standings collected, then how old the numbers are: just now, “{n} min ago”, “{n} h ago”, or “{n} d ago”, and the instant. If that instant cannot be read, it reads “Standings are collected while the period runs.”
On the public tournament, the same board is shown, and under it “Sign in to see your position and points.”
A failed read reads “Could not load this section. Please try again.” and Try again. Enabled off reads “This widget is not enabled.”
Leaderboards, on Pages, is this same page limited to leaderboards. The back button there still reads All tournaments. data-orbit-page-run works on that div too.
Wording on Ember
The Tournaments page on the Ember theme uses Player texts, on the screen Club pages · Tournaments. Open Tools, then Localization, then Player texts, choose that screen, and write Your text for English, Portuguese (Brazil) or Spanish. Orbit's default stands until you write your own wording for a text. Where this article says an English page draws a longer line, that is the default until an English text is saved.