Category talk:Lists of college football statistical leaders by team

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconLists Category‑class
WikiProject iconThis category is within the scope of WikiProject Lists, an attempt to structure and organize all list pages on Wikipedia. If you wish to help, please visit the project page, where you can join the project and/or contribute to the discussion.
CategoryThis category does not require a rating on the project's quality scale.
WikiProject iconCollege football Category‑class
WikiProject iconThis category is within the scope of WikiProject College football, a collaborative effort to improve the coverage of college football on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
CategoryThis category does not require a rating on Wikipedia's content assessment scale.

improved header formatting[edit]

@Corkythehornetfan and Frietjes: and others

We don't have articles for every FBS team, but many/most of these articles appear to clone a flawed implementation. Many articles are using inline formating and hard-coded colors, and not using Template:CollegePrimaryStyle or Module:College color. If anyone cares to provide some guidance on improving these table headers, I'm sure it is appreciated -and will save future cleanup work.

See USC Trojans football statistical leaders#Passing yards for example:

===Passing yards===
{|
|
|- valign="top"
|
{| class="wikitable"
|+ Career
|-
! style="background: #990000; color: #FFCC00" | '''Rank''' !! style="background: #990000; color: #FFCC00" | '''Player''' !! style="background: #990000; color: #FFCC00" | '''Yards''' !! style="background: #990000; color: #FFCC00" | '''Years'''
|-

Cheers, UW Dawgs (talk) 04:55, 18 August 2016 (UTC)[reply]

@UW Dawgs: The module colors can be included by replacing style="background: #990000; color: #FFCC00" with style="{{CollegePrimaryStyle|USC Trojans|border=0|color=white}}". As long as the font color is compliant with the background, the secondary color can be used. Otherwise, another color (usually white, sometimes black) will need to be used. USC's gold with Cardinal is compliant for the most part, except the "WCAG 2 AAA Compliant" (See here). IMO, USC's should be using white font. Corkythehornetfan (ping me) 21:32, 18 August 2016 (UTC)[reply]
@UW Dawgs and Corkythehornetfan: two things. (1) we could create a template which generates the colored headings for you, the syntax could be something like
{{CollegePrimaryTableTop|team=USC Trojans|caption=Career|Rank|Player|Yards|Years}}
|-
|1||[[Matt Barkley]]||12,327|| style="font-size:80%;" |[[2009 USC Trojans football team|2009]] [[2010 USC Trojans football team|2010]] [[2011 USC Trojans football team|2011]] [[2012 USC Trojans football team|2012]] 
|-
...
{{end}}

or say

{| class="wikitable"
|+ Career
{{CollegePrimaryHeader|team=USC Trojans|Rank|Player|Yards|Years}}
|-
|1||[[Matt Barkley]]||12,327|| style="font-size:80%;" |[[2009 USC Trojans football team|2009]] [[2010 USC Trojans football team|2010]] [[2011 USC Trojans football team|2011]] [[2012 USC Trojans football team|2012]] 
|-
...
|}
either works for me, but the second option is the least invasive as far as coding goes. (2) it would be great if we could replace the
{|
|
|- valign="top"
|

with

{{col-begin|width=auto}}
{{col-break}}

since the col templates correctly mark the outer tables as presentation and not content for WP:ACCESIBILITY. Frietjes (talk) 22:43, 18 August 2016 (UTC)[reply]

lol... Frietjes, I was thinking the exact same thing about the {{Col-break}}! In my opinion, an automatic table like option 2 would be best. Corkythehornetfan (ping me) 04:13, 19 August 2016 (UTC)[reply]
UW Dawgs, I'm not sure who's the main editor creating these articles (Mister Cake?), but should we get their opinion too? Corkythehornetfan (ping me) 04:14, 19 August 2016 (UTC)[reply]
@Jhn31: A brief check shows Jhn31 is building/has built many of these. I do like the idea of an extensible table header template leveraging the centralized schools color, which obviously would support table formatting in any type of college athletics article. We might want to move that more generalized discussion to Template talk:CollegePrimaryStyle. UW Dawgs (talk) 23:06, 20 August 2016 (UTC)[reply]

RESOLVED[edit]

So for those interested in leveraging the centralized college colors (you should be) which will automatically pick up the school's infrequent and slight color changes done every few years re branding, here is how you can do that. See USC Trojans for example.

Inline below is the "default" header seen in many of these articles, for example if you're going to cut and paste as a starting point to creating a new article. Note the tables alternate between the school's primary and seconday colors, via:

! style="background: #990000; color: #FFCC00" | '''Rk''' !! style="background: #990000; color: #FFCC00" | '''Player''' !! style="background: #990000; color: #FFCC00" | '''Yards''' !! style="background: #990000; color: #FFCC00" | '''Years'''
|-
|1
...
...
! style="background: #FFCC00; color: #990000" | '''Rk''' !! style="background: #FFCC00; color: #990000" | '''Player''' !! style="background: #FFCC00; color: #990000" | '''Yards''' !! style="background: #FFCC00; color: #990000" | '''Year'''
|-
|1

You can swap out that format like so (be sure to replace "USC Trojans" with your school):

! style="{{CollegePrimaryStyle|USC Trojans|border=0|color=white}} | '''Rk''' !! style="{{CollegePrimaryStyle|USC Trojans|border=0|color=white}} | '''Player''' !! style="{{CollegePrimaryStyle|USC Trojans|border=0|color=white}} | '''Yards''' !! style="{{CollegePrimaryStyle|USC Trojans|border=0|color=white}} | '''Years'''
|-
|1
...
...
! style="{{CollegeSecondaryStyle|USC Trojans|border=0|color=black}} | '''Rk''' !! style="{{CollegeSecondaryStyle|USC Trojans|border=0|color=black}} | '''Player''' !! style="{{CollegeSecondaryStyle|USC Trojans|border=0|color=black}} | '''Yards''' !! style="{{CollegeSecondaryStyle|USC Trojans|border=0|color=black}} | '''Year'''
|-
|1

This will ensure the tables are always getting the current and correct shades of the Primary and Secondary colors. Hope that helps someone else, thanks to folks above! UW Dawgs (talk) 23:30, 20 August 2016 (UTC)[reply]

I'm cool with all of this. I'll change over the existing pages to use this more efficient code. Jhn31 (talk) 00:44, 21 August 2016 (UTC)[reply]
See work-in-progress Template:CollegePrimaryHeader and Template:CollegeSecondaryHeader which are awesome and can be used on any type of college athletics article! See here for as implemented at USC.
@Frietjes: nicely done! When appropriate, can you note these on both Wikipedia talk:WikiProject College football and Wikipedia:WikiProject College Basketball for broad awareness? UW Dawgs (talk) 19:47, 29 August 2016 (UTC)[reply]
UW Dawgs, sure, notices posted. Frietjes (talk) 19:55, 29 August 2016 (UTC)[reply]