Template talk:United States presidential election results table row

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconElections and Referendums Template‑class
WikiProject iconThis template is within the scope of WikiProject Elections and Referendums, an ongoing effort to improve the quality of, expand upon and create new articles relating to elections, electoral reform and other aspects of democratic decision-making. For more information, visit our project page.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconPolitics Template‑class Mid‑importance
WikiProject iconThis template is within the scope of WikiProject Politics, a collaborative effort to improve the coverage of politics 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.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
MidThis template has been rated as Mid-importance on the project's importance scale.

Errors[edit]

@John M Wolfson, there are some errors that I'm unsure how to resolve (revert 1, 2). One is caused by ? given as a parameter (for vote count). The other is caused when all values are 0. Qwerfjkltalk 16:41, 22 April 2022 (UTC)[reply]

  • @Qwerfjkl: Both of those are unexpected behaviors that should not be in the table in the first place, so should be removed and replaced with more detailed explanations if need be, or simply omitted if all values are zero. – John M Wolfson (talk • contribs) 00:44, 23 April 2022 (UTC)[reply]
    @John M Wolfson, could you fix these errors? ― Qwerfjkltalk 09:15, 23 April 2022 (UTC)[reply]
    (I've managed to run the bot on most of the articles it can convert without errors. However, the header is harder to match, so it doesn't always get converted. Currently, I'm working on the list at User:Qwerfjkl/UScounties/check - I could run the bot on these pages, and it might almost properly convert them, but there will probably be some error. Instead, I'll check through them manually, and improve the regex.) ― Qwerfjkltalk 09:26, 23 April 2022 (UTC)[reply]

Generates gap[edit]

I've noticed that this template (along with the Head/Foot templates) causes an unattractive gap in an article's text, as if there's an extra line break in the source. Is there any way this template can be tweaked to remove the gap? (IMHO, I feel like this template should sit nicely in articles the same way images do.)--Gen. Quon[Talk] 16:40, 15 November 2022 (UTC)[reply]

  • I noticed you tweaked this template quite a bit in experimentation; I haven't looked through all your edits, but have you tried {{clear}} for PresFoot? Use the testcases subpage to try it out, but it might be what you're after. – John M Wolfson (talk • contribs) 23:59, 15 November 2022 (UTC) (Although, granted, that might do the opposite of what you want. – John M Wolfson (talk • contribs) 00:00, 16 November 2022 (UTC))[reply]

Ties without bolding[edit]

Is there a way to mark an election as being tied without bolding the "Third party" section? For example, in the 1992 election in Ware County, Georgia, both Bush and Clinton received the same amount of votes; the year is accurately colored as purple (as the "winner" section reads "Tie"), but only the third party percentage is bolded (suggesting Perot won the county that year). Is there any way to get around or remove the bolding? Thanks! - Chaidantalk 00:08, 28 December 2023 (UTC)[reply]

text-align[edit]

@John M Wolfson: Since you seem to be the most active editor on this template, there seems to be an error with the formatting (text-alignment). The template seems to include "text-align:center" for all cells, but that only seems to be getting expressed on the "other party" cells. All the Dem and Rep cells seem to be expressing default (left) alignment. Personally, I think all of these cells should be right-aligned because they're numbers, but at the very least I think all these cells should have identical alignment. -- Asdasdasdff (talk) 18:17, 25 May 2024 (UTC)[reply]