Template:StatsLine/doc
Jump to navigation
Jump to search
Template
{{ StatsLine
| career =
| full =
| legend =
| lead1 =
| line1 =
| lead2 =
| line2 =
.
.
.
| leadN =
| lineN =
}}
|
Copy and paste the template code to the right into any page that requires a pre-defined display table of stats. An explanation of the variables follows.
Variables
career (Optional)
- setting this variable to any value replaces the default header of "Name" in the first column with "Season", useful for tracking an individual player's statistics or a team's overall performance over the years
full (Optional)
- setting this variable to any value will enable the expanded columns display for averages, as well as make the font smaller
legend (Optional)
- setting this variable to any value will add a legend key at the bottom of the table to explain the various column header abbreviations
- when combined with the full variable, the legend will be expanded as well to explain the extra columns
lead1
- this is what will be displayed in the first column of the top row of the table
line1
- this is comma-separated data that will be displayed in the remaining columns of the top row of the table
- columns that should be blank must have the   code inserted
lead2, line2 ... leadN, lineN (Optional)
- these variable pairs determine what will be displayed in subsequent rows of the table
- N can be any whole number between 3 and 25
- the lead variable must be present, otherwise the line data will not be displayed
- if there is no matching line variable to a lead variable, the rest of the row will be blank
Features to be added
- Calculations for the expanded column in the full display, so that only raw data is entered in the variables for the table
Examples
Box Score
Code:
{{ StatsLine
| lead1 = [[Devon Kellendyne]]
| line1 = G,28.0,4,8,0,0,4,4,0,2,8,1,2,0,0,12
| lead2 = [[Shane Rufus]]
| line2 = G,39.4,16,25,2,3,13,15,4,12,2,1,1,0,6,47
| lead3 = [[Sammy Sickstra]]
| line3 = GF,31.9,3,8,0,2,4,6,4,9,7,2,5,1,3,10
| lead4 = [[Jimmy Mavis]]
| line4 = FC,29.8,4,9,0,0,1,2,2,10,3,2,2,1,6,9
| lead5 = [[Donell Macon]]
| line5 = C,24.4,4,9,0,1,5,5,1,7,0,2,0,1,4,13
| lead6 = [[Redawn Fenwatcher]]
| line6 = G,14.8,1,2,0,1,0,0,0,1,1,1,0,0,0,2
| lead7 = [[Charles Neal]]
| line7 = G,2.3,0,1,0,0,0,0,0,1,0,0,1,0,0,0
| lead8 = [[Parker Davids]]
| line8 = F,23.6,6,9,0,0,2,3,0,4,3,0,0,0,2,14
| lead9 = [[Rob Jacobs]]
| line9 = F,27.5,3,8,0,0,3,5,0,4,4,3,0,1,5,9
| lead10 = [[David Hodge]]
| line10 = C,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
| lead11 = [[Vladimir Andreiovich Zhidkov]]
| line11 = FG,2.5,0,0,0,0,0,0,0,1,1,0,0,0,0,0
| lead12 = [[Joey Juloni]]
| line12 = G,15.7,2,6,0,0,0,0,0,1,3,4,0,0,0,4
| lead13 = Total
| line13 = ,240,43,85,2,7,32,40,11,52,32,16,11,4,26,120
}}
Output:
| Name | Pos | Min | FGM | FGA | 3PtM | 3PtA | FTM | FTA | Off | Reb | Ast | TO | Stl | Blk | PF | Pts |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Devon Kellendyne | G | 28.0 | 4 | 8 | 0 | 0 | 4 | 4 | 0 | 2 | 8 | 1 | 2 | 0 | 0 | 12 |
| Shane Rufus | G | 39.4 | 16 | 25 | 2 | 3 | 13 | 15 | 4 | 12 | 2 | 1 | 1 | 0 | 6 | 47 |
| Sammy Sickstra | GF | 31.9 | 3 | 8 | 0 | 2 | 4 | 6 | 4 | 9 | 7 | 2 | 5 | 1 | 3 | 10 |
| Jimmy Mavis | FC | 29.8 | 4 | 9 | 0 | 0 | 1 | 2 | 2 | 10 | 3 | 2 | 2 | 1 | 6 | 9 |
| Donell Macon | C | 24.4 | 4 | 9 | 0 | 1 | 5 | 5 | 1 | 7 | 0 | 2 | 0 | 1 | 4 | 13 |
| Redawn Fenwatcher | G | 14.8 | 1 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 2 |
| Charles Neal | G | 2.3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 |
| Parker Davids | F | 23.6 | 6 | 9 | 0 | 0 | 2 | 3 | 0 | 4 | 3 | 0 | 0 | 0 | 2 | 14 |
| Rob Jacobs | F | 27.5 | 3 | 8 | 0 | 0 | 3 | 5 | 0 | 4 | 4 | 3 | 0 | 1 | 5 | 9 |
| David Hodge | C | 0.0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Vladimir Andreiovich Zhidkov | FG | 2.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| Joey Juloni | G | 15.7 | 2 | 6 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 4 | 0 | 0 | 0 | 4 |
| Total | 240 | 43 | 85 | 2 | 7 | 32 | 40 | 11 | 52 | 32 | 16 | 11 | 4 | 26 | 120 |
Team Stats
Code:
{{ StatsLine
| full = on
| legend = on
| lead1 = [[Douglas Smith]]
| line1 = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,--,--,--,0,0,--,0,0,--,0
| lead2 = [[Rodger Umaechi]]
| line2 = 4,173.3,37,78,3,10,14,19,4,29,35,11,7,5,7,91,43.3,47%,30%,74%,7.3,8.8,--,1.8,1.3,--,22.8
| lead3 = [[Lance Wildfyre]]
| line3 = 4,96,10,27,0,6,6,9,5,9,9,6,1,0,4,26,24.0,37%,0%,67%,2.3,2.3,--,0.3,0.0,--,6.5
}}
Output:
| Name | G | Min | FGM | FGA | 3PtM | 3PtA | FTM | FTA | Off | Reb | Ast | TO | Stl | Blk | PF | Pts | MPG | FG% | TP% | FT% | RPG | APG | TPG | SPG | BPG | FPG | PPG |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Douglas Smith | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -- | -- | -- | 0 | 0 | -- | 0 | 0 | -- | 0 |
| Rodger Umaechi | 4 | 173.3 | 37 | 78 | 3 | 10 | 14 | 19 | 4 | 29 | 35 | 11 | 7 | 5 | 7 | 91 | 43.3 | 47% | 30% | 74% | 7.3 | 8.8 | -- | 1.8 | 1.3 | -- | 22.8 |
| Lance Wildfyre | 4 | 96 | 10 | 27 | 0 | 6 | 6 | 9 | 5 | 9 | 9 | 6 | 1 | 0 | 4 | 26 | 24.0 | 37% | 0% | 67% | 2.3 | 2.3 | -- | 0.3 | 0.0 | -- | 6.5 |
| Legend: G: Games played, Min: Minutes, FGM: Field Goals Made, FGA: Field Goal Attempts, 3PtM: 3-Pointers Made, 3PtA: 3-Point Attempts, FTM: Free Throws Made, FTA: Free Throws Attempted, Off: Offensive Rebounds, Reb: Total Rebounds, Ast: Assists, TO: Turnovers, Stl: Steals, Blk: Blocks, PF: Personal Fouls, Pts: Points Scored, MPG: Minutes per game, FG%: Field Goal Percentage, TP%: Three-Point Percentage, FT%: Free Throw Percentage, RPG: Rebounds per game, APG: Assists per game, TPG: Turnovers per game, SPG: Steals per game, BPG: Blocks per game, FPG: Fouls per game, PPG: Points per game | |||||||||||||||||||||||||||