User:Zinnober9/sandbox2
Appearance
Known cases of "PresTable" usage
[edit]Expected usage with Head > Row > (Empty)Foot,
unexpected display (note the stray 2020 row with 3 votes displaying):
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):
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):
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):
Year | Republican | Democratic | Third party(ies) | |||
---|---|---|---|---|---|---|
No. | % | No. | % | No. | % | |
2024 | 18,077 | 68.66% | 7,192 | 27.32% | 1,060 | 4.03% |
Ref
[edit]- ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.
- ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.
- ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.
- ^ Leip, David. "Dave Leip's Atlas of U.S. Presidential Elections". uselectionatlas.org. Retrieved July 19, 2018.