Template:QScoreOT: Difference between revisions
m called functions instead of arguments. oops |
m deprecating pipes? |
||
| Line 28: | Line 28: | ||
{{#ifeq: {{#titleparts:{{PAGENAME}}|0|-1}} | {{{away}}}@{{{home}}} | | {{#ifeq: {{#titleparts:{{PAGENAME}}|0|-1}} | {{{away}}}@{{{home}}} | | ||
| | | | ||
{{!}} colspan="7" align="right" style="font-size:10px;background-color:#E0E0E0;" {{!}} [[{{PAGENAME}}/{{{away}}}@{{{home}}}{{!}}''Boxscore'']] | |||
}} | }} | ||
|} | |} | ||
Revision as of 06:30, 7 January 2015
The QScore template creates a score breakdown by quarter with links to teams, the final box score, and additional information on the game including officials, arena, attendance, player of the game, and POtG stats. It is used on every game day page as a quick summary for each game.
Template
Copy and paste this template into any page that requires a QScore. These are all the definable variables.
{{ QScore
| away =
| home =
| a1 =
| a2 =
| a3 =
| a4 =
| a5 =
| at =
| h1 =
| h2 =
| h3 =
| h4 =
| h5 =
| ht =
| officials =
| arena =
| attendance =
| potg =
| pts =
| reb =
| ast =
| blk =
| stl =
}}
Teams
| away = | home =
This section defines which teams played. Use a team's T-Code (ALK, ALB, etc.) to define it. The Away team will appear on the top of the score box with the home team appearing below prefixed with an @ symbol.
Example
For a game where the Wildcards traveled to Baltimore to play the Spirits:
| away = LVG | home = BAL
Scores
| a1 = | a2 = | a3 = | a4 = | a5 = | at = | h1 = | h2 = | h3 = | h4 = | h5 = | ht =
This section holds the score by quarter for each team. The values will appear in the boxes exactly as they are given here. a1 through a5 are for the away team's scoring in each quarter and in overtime (a5). h1 through h5 are for the away team's scoring in each quarter and in overtime (h5). Only the points made during that quarter should de be entered. at and ht have the final score for the end of the game.
Example
| a1 = 12 | a2 = 14 | a3 = 25 | a4 = 25 | at = 76 | h1 = 24 | h2 = 29 | h3 = 20 | h4 = 22 | ht = 95
Features to be added
at and ht should be calculations instead of raw numbers. Also, there is no system in place for overtime games. This must be addressed at some point!
Officials
| officials =
List who officiated this game by OID (Official ID) number, separated by commas. There is no need to add spaces between the numbers. A list of officials can be found here.
Example
| officials = 15,4,43
Arena
| arena =
If this variable is left blank, QScore will default to claiming the game took place wherever the home team's venue is. You only need to fill out this variable if the game was held somewhere else. If it was held somewhere else, what gets put into this variable will be translated by the Template:Arena template.
Example
| arena = PLY
This comes up with Roots Garden - Plymouth, MA
Attendance
| attendance =
Put the attendance of the game here. This value will be put through a {{formatnum:attendance}} statement, so there is no need to include any commas.
Player of the Game
| potg = | pts = | reb = | ast = | blk = | stl =
This reports the Player of the Game. In the potg variable, put the PID number of the player. (You can find a PID reference here.) You can then put in the player's stats for points ('pts'), rebounds ('reb'), assists ('ast'), blocks ('blk'), and steals ('stl'). Points MUST be reported. The other four are optional and can be left blank. Only variables with numbers will be reported.
Example
| potg = 610 | pts = 23 | reb = 8 | ast = 7 | blk = | stl = 4
This would be for a game where Valencia Zeraus (Lioness, G) has 23 points, 8 rebounds, 7 assists and 4 steals.
| The above documentation is transcluded from Template:QScoreOT/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |