Jump to content

User:Zinnober9/sandbox2

From Wikipedia, the free encyclopedia

Known cases of "PresTable" usage

[edit]

Expected usage with Head > Row > (Empty)Foot,
unexpected display (note the stray 2020 row with 3 votes displaying):

United States presidential election results for Brazoria County, Texas[1]
Year Republican Democratic Third party(ies)
No.  % No.  % No.  %
2024 18,077 68.66% 7,192 27.32% 1,060 4.03%
2020 1 33.33% 1 33.33% 1 33.33%

Expected display, Unexpected table ending
(Code using Head>Row>(Filled)Foot):

United States presidential election results for Brazoria County, Texas[2]
Year Republican Democratic Third party(ies)
No.  % No.  % No.  %
2020 7,192 25.39% 20,077 70.87% 1,060 3.74%
2024 18,077 68.66% 7,192 27.32% 1,060 4.03%

A semi-common "Macgyver" alternate, likely due to first example's unexpected final row behavior.
(Code is using Head > Row > table closer bracket) It works, but is not a clean uniform style):

United States presidential election results for Brazoria County, Texas[3]
Year Republican Democratic Third party(ies)
No.  % No.  % No.  %
2020 7,192 25.39% 20,077 70.87% 1,060 3.74%
2024 18,077 68.66% 7,192 27.32% 1,060 4.03%

Edge case, unexpected code usage with expected display when only using a single year's data
(Note the code is only using Head with (filled)Foot, no Row):

United States presidential election results for Brazoria County, Texas[4]
Year Republican Democratic Third party(ies)
No.  % No.  % No.  %
2024 18,077 68.66% 7,192 27.32% 1,060 4.03%

Ref

[edit]
  1. ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.
  2. ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.
  3. ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.
  4. ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.