Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a29fc0f43cb62a7e

Jump to content

Template talk:Sports rivalry series table

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Module talk:Sports rivalry series table/sandbox)
Latest comment: 7 months ago by Frietjes in topic Cancelled games support?

Vacated wins

[edit]

@Frietjes: What is the encoding to indicated that a win was vacated? Thanks.—Bagumba (talk) 09:10, 19 November 2017 (UTC)Reply

Bagumba, see the 2010 game in the Michigan–Ohio State football rivalry#Game results. this should probably documented in the documentation (now added something here). Frietjes (talk) 13:26, 19 November 2017 (UTC)Reply

Sortable tables

[edit]

@Frietjes: Is there any way to make these tables sortable by certain stats? (ex. sorting games in order of highest or lowest score, venues, wins by team, etc.) Thanks.—WuTang94 (talk) 18:43, 10 August 2018 (UTC)Reply

WuTang94, certainly possible. can you provide an example where you would like to have it sortable, and what the sort key would be? Frietjes (talk) 18:46, 10 August 2018 (UTC)Reply
@Frietjes: Sure thing. One example is Giants–Jets_rivalry#Regular_season_results. I re-created that table using one of your templates but realized the old version (commented out) was able to sort games by statistics—WuTang94 (talk) 18:50, 10 August 2018 (UTC)Reply
WuTang94, okay, |sortable=y works. the old table wasn't using any special sort keys, but I can add something better for any of the columns if the default sort isn't useful. Frietjes (talk) 18:55, 10 August 2018 (UTC)Reply

Overriding a "tie" to award a win

[edit]

@Frietjes:

re 1881 Harvard–Yale football rivalry. Game "result" was 0-0 tie, but both Harvard "^Won by Yale with 4 fewer safeties"pg 7, 8 and Yale "*Yale declared winner on fewer safety TD's" pg3 reflect as victory for Yale. Harvard (same cite) claims series record of "Harvard trails, 67-59-8," and Yale also states "67-59-8" while this template auto-computes as "Yale leads 66–60–8" -presuming I've made no transcription errors, which I am still re-reviewing.

Overriding a tie seems extraordinarily uncommon and perhaps functionally limited to 1800s era, but technically similar to the existing "vacated wins" support. More looking for a second set of eyes and feedback at this point, rather than implementation of new support. UW Dawgs (talk) 20:53, 11 September 2018 (UTC)Reply

UW Dawgs, at the very bottom of that table you will see |win6=Harvard. if you change this to |win6=Yale you will get a different accounting. Frietjes (talk) 21:06, 11 September 2018 (UTC)Reply
Thank you, as always. User error! Fixed now. UW Dawgs (talk) 21:25, 11 September 2018 (UTC)Reply

'Date' background color and playoff series summary

[edit]

Hi, can we add custom background color for Date to distinguish playoffs from regular games?

Sample article could be La Salle–UST rivalry, with two types of playoffs: (1) Classification round/semifinals, and (2) Finals.

Also on series summary, can we add option to display head-to-head record for playoffs?  McVahl  Talk  03:33, 3 December 2019 (UTC)Reply

Cancelled games support?

[edit]

@Frietjes:

I'm not sure if this is a good idea or not. So surfacing it here for visibility.

Both historically and in specifically in 2020, games get cancelled. The game era in which I am working has conflicting sources on such games (A says forfeit, B says cancelled, C says victory by forfeit, etc). So I'm trying to include the (unplayed) game within the table as some (but not all) sources treat it as a W or a L.

If you try something like "|win123=none" and "note=2020 game cancelled[1]", the game row is still looking for and will report a score. And absent an explicit score, it reports as "TIE". And the TIE string becomes the problem in this scenario.

Clearly this content callout could exist only in the "|notes=" parameter or outside of the table.

Thoughts? UW Dawgs (talk) 17:15, 5 September 2020 (UTC)Reply

UW Dawgs, can you provide a specific example? if you enter no score, it should not say tie, but there could be a bug. Frietjes (talk) 18:09, 5 September 2020 (UTC)Reply
@Frietjes: Here and here. UW Dawgs (talk) 18:18, 5 September 2020 (UTC)Reply
UW Dawgs, and over 5 years later, I have implemented |win8=none for you. note that in your examples, you didn't properly format the HTML comment (forgot the !) but if you do, it will work now. Frietjes (talk) 16:56, 2 January 2026 (UTC)Reply
For some long running competitions there may be series breaks during wars (e.g., the Big Game between Stanford and Berkeley had breaks in World War 1 and 2) or, as we've seen, pandemics. I suspect a table wide single column for a note such as "The rivalry was suspended in 1943–1945 for World War II" between the years 1942 and 1946. Whether this is possible is reasonably easy to do is another matter. --Erp (talk) 04:08, 26 October 2021 (UTC)Reply

References

  1. reason

Eskimos/Elks

[edit]

When using this template in Labour Day Classic, we have to use "Edmonton" to get the automatic colours to work, but we would rather use "Eskimos" or "Elks", whichever is appropriate for the row. This must be possible, because in the same article "Rough Riders" and "Redblacks" get the autocolour. Could anybody help in suggesting the edits needed to the template data to make this work correctly? Indefatigable (talk) 23:47, 5 September 2022 (UTC)Reply

Accessibility issues and potential solution

[edit]

Hi. I'm coming here after looking at the template as used on Florida–Tennessee football rivalry where it has been flagged as creating accessibility issues. There's no issue with color being the only way meaning is shown, but at least in some cases the bright background colors can be distracting and hard to read. One way I could see that would make it less distracting/hard to read would be to have the color of the winning team in a separate box rather than as a text background. This way someonecould see streaks/overall wins at a glance but you would also be able to read the text. Unfortunately I do not know how to work with the template to do that. Would this be doable and accomplish what the template is trying to accomplish? SomeoneDreaming (talk) 02:25, 16 August 2023 (UTC)Reply

[edit]

@Frietjes:

Inquiring about ties. In the compact version (only winning team is shown), having the word "tie" displayed makes sense. However in other versions with both teams showing, it still shows "tie" over both teams. I think I might rather see both teams so you can see their respective rankings coming into the tie game, while keeping the darker gray color. Are there any such versions where that's the case and if not could we consider adding the feature? Garrettcarrot12 (talk) 05:25, 31 December 2025 (UTC)Reply

Garrettcarrot12, can you point me to an example for testing? one potential problem is if the heading says "winning team" and "losing team" or "Winner". Frietjes (talk) 16:11, 2 January 2026 (UTC)Reply