Template talk:Infobox game score
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Template-protected edit request on 23 October 2021
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I'd like to add support for eighth and ninth overtimes (for example, at 2021 Illinois vs. Penn State football game, a nine-overtime game) by adding the following.
After
{{
#if:{{{teama_OT7period|}}}{{{teamb_OT7period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT7period|}}}|{{{label_OT7period}}}|7OT}}</th>
}}
Add
{{
#if:{{{teama_OT8period|}}}{{{teamb_OT8period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT8period|}}}|{{{label_OT8period}}}|8OT}}</th>
}}
{{
#if:{{{teama_OT9period|}}}{{{teamb_OT9period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT9period|}}}|{{{label_OT9period}}}|9OT}}</th>
}}
After
{{
#if:{{{teama_OT7period|}}}{{{teamb_OT7period|}}}|
<td style="text-align:center; background:#efefef">{{#if:{{{teama_OT7period|}}}|{{{teama_OT7period}}}|0}}</td>
}}
Add
{{
#if:{{{teama_OT8period|}}}{{{teamb_OT8period|}}}|
<td style="text-align:center; background:#efefef">{{#if:{{{teama_OT8period|}}}|{{{teama_OT8period}}}|0}}</td>
}}
{{
#if:{{{teama_OT9period|}}}{{{teamb_OT9period|}}}|
<td style="text-align:center; background:#efefef">{{#if:{{{teama_OT9period|}}}|{{{teama_OT9period}}}|0}}</td>
}}
Change
{{#if:{{{teama_total|}}}
|{{{teama_total|}}}
|{{#expr:{{#if:{{{teama_1period|}}}|{{{teama_1period}}}|0}}+{{#if:{{{teama_2period|}}}|{{{teama_2period}}}|0}}+{{#if:{{{teama_3period|}}}|{{{teama_3period}}}|0}}+{{#if:{{{teama_4period|}}}|{{{teama_4period}}}|0}}+{{#if:{{{teama_OTperiod|}}}|{{{teama_OTperiod}}}|0}}+{{#if:{{{teama_OT2period|}}}|{{{teama_OT2period}}}|0}}+{{#if:{{{teama_OT3period|}}}|{{{teama_OT3period}}}|0}}+{{#if:{{{teama_OT4period|}}}|{{{teama_OT4period}}}|0}}+{{#if:{{{teama_OT5period|}}}|{{{teama_OT5period}}}|0}}+{{#if:{{{teama_OT6period|}}}|{{{teama_OT6period}}}|0}}+{{#if:{{{teama_OT7period|}}}|{{{teama_OT7period}}}|0}} }}
}}
to
{{#if:{{{teama_total|}}}
|{{{teama_total|}}}
|{{#expr:{{#if:{{{teama_1period|}}}|{{{teama_1period}}}|0}}+{{#if:{{{teama_2period|}}}|{{{teama_2period}}}|0}}+{{#if:{{{teama_3period|}}}|{{{teama_3period}}}|0}}+{{#if:{{{teama_4period|}}}|{{{teama_4period}}}|0}}+{{#if:{{{teama_OTperiod|}}}|{{{teama_OTperiod}}}|0}}+{{#if:{{{teama_OT2period|}}}|{{{teama_OT2period}}}|0}}+{{#if:{{{teama_OT3period|}}}|{{{teama_OT3period}}}|0}}+{{#if:{{{teama_OT4period|}}}|{{{teama_OT4period}}}|0}}+{{#if:{{{teama_OT5period|}}}|{{{teama_OT5period}}}|0}}+{{#if:{{{teama_OT6period|}}}|{{{teama_OT6period}}}|0}}+{{#if:{{{teama_OT7period|}}}|{{{teama_OT7period}}}|0}}+{{#if:{{{teama_OT8period|}}}|{{{teama_OT8period}}}|0}}+{{#if:{{{teama_OT9period|}}}|{{{teama_OT9period}}}|0}} }}
}}
After
{{
#if:{{{teama_OT7period|}}}{{{teamb_OT7period|}}}|
<td style="text-align:center; background:#efefef">{{#if:{{{teamb_OT7period|}}}|{{{teamb_OT7period}}}|0}}</td>
}}
Add
After
{{
#if:{{{teama_OT8period|}}}{{{teamb_OT8period|}}}|
<td style="text-align:center; background:#efefef">{{#if:{{{teamb_OT8period|}}}|{{{teamb_OT8period}}}|0}}</td>
}}
{{
#if:{{{teama_OT7period|}}}{{{teamb_OT9period|}}}|
<td style="text-align:center; background:#efefef">{{#if:{{{teamb_OT9period|}}}|{{{teamb_OT9period}}}|0}}</td>
}}
Change
{{#if:{{{teamb_total|}}}
|{{{teamb_total|}}}
|{{#expr:{{#if:{{{teamb_1period|}}}|{{{teamb_1period}}}|0}}+{{#if:{{{teamb_2period|}}}|{{{teamb_2period}}}|0}}+{{#if:{{{teamb_3period|}}}|{{{teamb_3period}}}|0}}+{{#if:{{{teamb_4period|}}}|{{{teamb_4period}}}|0}}+{{#if:{{{teamb_OTperiod|}}}|{{{teamb_OTperiod}}}|0}}+{{#if:{{{teamb_OT2period|}}}|{{{teamb_OT2period}}}|0}}+{{#if:{{{teamb_OT3period|}}}|{{{teamb_OT3period}}}|0}}+{{#if:{{{teamb_OT4period|}}}|{{{teamb_OT4period}}}|0}}+{{#if:{{{teamb_OT5period|}}}|{{{teamb_OT5period}}}|0}}+{{#if:{{{teamb_OT6period|}}}|{{{teamb_OT6period}}}|0}}+{{#if:{{{teamb_OT7period|}}}|{{{teamb_OT7period}}}|0}} }}
}}
to
{{#if:{{{teamb_total|}}}
|{{{teamb_total|}}}
|{{#expr:{{#if:{{{teamb_1period|}}}|{{{teamb_1period}}}|0}}+{{#if:{{{teamb_2period|}}}|{{{teamb_2period}}}|0}}+{{#if:{{{teamb_3period|}}}|{{{teamb_3period}}}|0}}+{{#if:{{{teamb_4period|}}}|{{{teamb_4period}}}|0}}+{{#if:{{{teamb_OTperiod|}}}|{{{teamb_OTperiod}}}|0}}+{{#if:{{{teamb_OT2period|}}}|{{{teamb_OT2period}}}|0}}+{{#if:{{{teamb_OT3period|}}}|{{{teamb_OT3period}}}|0}}+{{#if:{{{teamb_OT4period|}}}|{{{teamb_OT4period}}}|0}}+{{#if:{{{teamb_OT5period|}}}|{{{teamb_OT5period}}}|0}}+{{#if:{{{teamb_OT6period|}}}|{{{teamb_OT6period}}}|0}}+{{#if:{{{teamb_OT7period|}}}|{{{teamb_OT7period}}}|0}}+{{#if:{{{teamb_OT8period|}}}|{{{teamb_OT8period}}}|0}}+{{#if:{{{teamb_OT9period|}}}|{{{teamb_OT9period}}}|0}} }}
}}
As far as I can tell, this would change the template to support 8OT and 9OT games. Thank you. PCN02WPS (talk | contribs) 22:03, 23 October 2021 (UTC)
Template-protected edit request on 23 October 2021 (2)
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add 8OT and 9OT per the recent 2021 Illinois vs. Penn State football game. KingSkyLord (talk | contribs) 22:31, 23 October 2021 (UTC)
- Not done Duplicate request * Pppery * it has begun... 22:58, 23 October 2021 (UTC)
Text not visible in dark mode
[edit]The text colour does not invert to white when using dark mode so the score box appears blank when used with templates such as Template:Infobox American football game and Template:Infobox rugby league football match. Bbb2007 (talk) 19:08, 18 August 2024 (UTC)
Add tooltips to the table headings
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I would like to request to add the tooltips to the headings corresponding to the quarters and the overtimes.
Change
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_1period|}}}|{{{label_1period}}}|1}}</th>{{
#if:{{{teama_2period|}}}{{{teamb_2period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_2period|}}}|{{{label_2period}}}|2}}</th>
}}{{
#if:{{{teama_3period|}}}{{{teamb_3period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_3period|}}}|{{{label_3period}}}|3}}</th>
}}{{
#if:{{{teama_4period|}}}{{{teamb_4period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_4period|}}}|{{{label_4period}}}|4}}</th>
}}{{
#if:{{{teama_OTperiod|}}}{{{teamb_OTperiod|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OTperiod|}}}|{{{label_OTperiod}}}|OT}}</th>
}}{{
#if:{{{teama_OT2period|}}}{{{teamb_OT2period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT2period|}}}|{{{label_OT2period}}}|2OT}}</th>
}}{{
#if:{{{teama_OT3period|}}}{{{teamb_OT3period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT3period|}}}|{{{label_OT3period}}}|3OT}}</th>
}}{{
#if:{{{teama_OT4period|}}}{{{teamb_OT4period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT4period|}}}|{{{label_OT4period}}}|4OT}}</th>
}}{{
#if:{{{teama_OT5period|}}}{{{teamb_OT5period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT5period|}}}|{{{label_OT5period}}}|5OT}}</th>
}}{{
#if:{{{teama_OT6period|}}}{{{teamb_OT6period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT6period|}}}|{{{label_OT6period}}}|6OT}}</th>
}}{{
#if:{{{teama_OT7period|}}}{{{teamb_OT7period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT7period|}}}|{{{label_OT7period}}}|7OT}}</th>
}}{{
#if:{{{teama_OT8period|}}}{{{teamb_OT8period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT8period|}}}|{{{label_OT8period}}}|8OT}}</th>
}}{{
#if:{{{teama_OT9period|}}}{{{teamb_OT9period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT9period|}}}|{{{label_OT9period}}}|9OT}}</th>
}}{{
to
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_1period|}}}|{{{label_1period}}}|{{Tooltip|1|First quarter}}}}</th>{{
#if:{{{teama_2period|}}}{{{teamb_2period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_2period|}}}|{{{label_2period}}}|{{Tooltip|2|Second quarter}}}}</th>
}}{{
#if:{{{teama_3period|}}}{{{teamb_3period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_3period|}}}|{{{label_3period}}}|{{Tooltip|3|Third quarter}}}}</th>
}}{{
#if:{{{teama_4period|}}}{{{teamb_4period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_4period|}}}|{{{label_4period}}}|{{Tooltip|4|Fourth quarter}}}}</th>
}}{{
#if:{{{teama_OTperiod|}}}{{{teamb_OTperiod|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OTperiod|}}}|{{{label_OTperiod}}}|{{Tooltip|OT|Overtime}}}}</th>
}}{{
#if:{{{teama_OT2period|}}}{{{teamb_OT2period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT2period|}}}|{{{label_OT2period}}}|{{Tooltip|2OT|Second overtime}}}}</th>
}}{{
#if:{{{teama_OT3period|}}}{{{teamb_OT3period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT3period|}}}|{{{label_OT3period}}}|{{Tooltip|3OT|Third overtime}}}}</th>
}}{{
#if:{{{teama_OT4period|}}}{{{teamb_OT4period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT4period|}}}|{{{label_OT4period}}}|{{Tooltip|4OT|Fourth overtime}}}}</th>
}}{{
#if:{{{teama_OT5period|}}}{{{teamb_OT5period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT5period|}}}|{{{label_OT5period}}}|{{Tooltip|5OT|Fifth overtime}}}}</th>
}}{{
#if:{{{teama_OT6period|}}}{{{teamb_OT6period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT6period|}}}|{{{label_OT6period}}}|{{Tooltip|6OT|Sixth overtime}}}}</th>
}}{{
#if:{{{teama_OT7period|}}}{{{teamb_OT7period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT7period|}}}|{{{label_OT7period}}}|{{Tooltip|7OT|Seventh overtime}}}}</th>
}}{{
#if:{{{teama_OT8period|}}}{{{teamb_OT8period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT8period|}}}|{{{label_OT8period}}}|{{Tooltip|8OT|Eighth overtime}}}}</th>
}}{{
#if:{{{teama_OT9period|}}}{{{teamb_OT9period|}}}|
<th style="text-align:center; width: {{{width|25px}}}; vertical-align: bottom">{{#if:{{{label_OT9period|}}}|{{{label_OT9period}}}|{{Tooltip|9OT|Ninth overtime}}}}</th>
}}{{
Abhiramakella (talk) 02:14, 26 December 2024 (UTC)
- I have no objections, but {{Abbr}} might be more appropriate. – Jonesey95 (talk) 15:34, 30 December 2024 (UTC)
- However, the document says to only use
{{Abbr}}
when "marking up abbreviations (including acronyms and initialisms)". Abhiramakella (talk) 18:45, 31 December 2024 (UTC)
- However, the document says to only use
- Done Primefac (talk) 10:08, 2 January 2025 (UTC)