Knowledge (XXG)

Template:United States presidential election results table row

Source 📝

21: 52: 296:
changes to the template (however low a chance they may have of happening). PresFoot should not be substituted because it won't necessarily be the earliest Presidential election available (earlier data may yet be found, for example), and it leaves a "cap" to the wikitable that proves a slight inconvenience to remove.
265:
For example, a GOP win should be written exactly, without quotes, as "|Republican" and a Democratic one "|Democratic" (NOTE the "-ic" at the end). In addition, please do not put any whitespace after the vote values, though this is for aesthetic reasons rather than coding. Whitespace shouldn't matter
184:
It (PresRow) automatically calculates the percentages won from each party based on the data entered, and automatically bolds the party winner. It may also be placed at the bottom of the table in place of PresFoot, which is identical to this template (and indeed a transclusion of it) with the ending
295:
PresHead and PresFoot should NOT be substituted. The code works just the same if they are, but it is not best practice to substitute them. PresHead should not be substituted because it doesn't speed up the performance of the page appreciably and leaves it unable to automatically conform to any
361: 346: 334: 36: 373: 330: 32: 40: 356: 68: 341: 64: 208: 76: 369: 324: 28: 299:
PresRow (this particular template) may be substituted at the discretion of the editor to help avoid the transclusor (i.e., the page on which the template is transcluded) reaching the
392: 207:
This is suboptimal, however, and one is better off using PresFoot. The testcase page for all three templates is that of this one, and can be found
316: 300: 261:
The party winner field should note the party exactly as its name is written in the "Template:Party shading/" subpage,
72: 320: 104: 94: 283: 276: 90:
This is used to form the rows of United States Presidential election tables, alongside
386: 59: 214:
None of the parameters are named, and must be entered in order as follows:
15: 325:
Template:United States presidential election results table row/doc
63:
and changes may be widely noticed. Test changes in the template's
46: 350: 308: 304: 263:without any whitespace between it and the pipe. 8: 393:Presidential elections in the United States 340:Editors can experiment in this template's 236:Vote towards Republican/Whig candidate 75:. Consider discussing changes on the 7: 258:Important information on whitespace: 244:Vote towards third-party candidates 185:cap of a WikiTable attached to it: 240:Vote towards Democratic candidate 228:Year of election (by default 2020) 14: 50: 19: 60:approximately 3,300 pages 1: 110:for that purpose, like so: 409: 314: 374:Subpages of this template 79:before implementing them. 71:subpages, or in your own 58:This template is used on 217: 187: 112: 368:Add categories to the 176:PresFoot parameters... 123:PresHead parameters... 24:Template documentation 199:PresRow parameters... 163:PresRow parameters... 149:PresRow parameters... 136:PresRow parameters... 83: 82: 400: 365: 354: 338: 310: 306: 266:anywhere else. 251: 247: 243: 239: 235: 231: 227: 224: 221: 202: 198: 195: 192: 179: 175: 172: 169: 166: 162: 159: 156: 152: 148: 145: 142: 139: 135: 132: 129: 126: 122: 119: 116: 109: 103: 99: 93: 54: 53: 47: 44: 25: 23: 22: 408: 407: 403: 402: 401: 399: 398: 397: 383: 382: 380: 378: 377: 367: 359: 344: 339: 328: 313: 301:template limits 260: 256: 255: 253: 252: 249: 245: 241: 237: 233: 229: 225: 222: 219: 215: 205: 204: 200: 196: 193: 190: 183: 181: 180: 177: 173: 170: 167: 164: 160: 157: 154: 150: 146: 143: 140: 137: 133: 130: 127: 124: 120: 117: 114: 107: 101: 97: 91: 88: 51: 45: 26: 20: 18: 12: 11: 5: 406: 404: 396: 395: 385: 384: 309:{{safesubst:}} 288: 287: 280: 218: 188: 113: 87: 84: 81: 80: 55: 17: 16: 13: 10: 9: 6: 4: 3: 2: 405: 394: 391: 390: 388: 381: 375: 371: 363: 358: 352: 348: 343: 336: 332: 326: 322: 318: 317:documentation 312: 302: 297: 293: 292: 291:Substitution: 285: 281: 278: 274: 273: 272: 271: 267: 264: 259: 232:Party winner 216: 212: 210: 186: 111: 106: 96: 85: 78: 74: 70: 66: 62: 61: 56: 49: 48: 42: 38: 34: 30: 379: 298: 294: 290: 289: 269: 268: 262: 257: 254: 213: 206: 182: 108:}} 102:{{ 98:}} 92:{{ 89: 73:user subpage 57: 321:transcluded 39:] [ 35:] [ 31:] [ 315:The above 305:{{subst:}} 69:/testcases 372:subpage. 357:testcases 303:. Either 77:talk page 387:Category 270:Aliases: 171:PresFoot 118:PresHead 105:PresFoot 95:PresHead 65:/sandbox 349:| 342:sandbox 335:history 333:| 284:Presrow 277:PresRow 223:PresRow 194:PresRow 158:PresRow 144:PresRow 131:PresRow 37:history 366:pages. 311:work. 189:. . . 153:. . . 323:from 248:State 86:Usage 43:] 41:purge 27:[ 370:/doc 362:edit 355:and 351:diff 347:edit 331:edit 209:here 100:and 33:edit 29:view 319:is 307:or 203:|} 67:or 389:: 327:. 286:}} 282:{{ 279:}} 275:{{ 250:}} 220:{{ 211:. 201:}} 191:{{ 178:}} 168:{{ 165:}} 155:{{ 151:}} 141:{{ 138:}} 128:{{ 125:}} 115:{{ 376:. 364:) 360:( 353:) 345:( 337:) 329:( 246:| 242:| 238:| 234:| 230:| 226:| 197:| 174:| 161:| 147:| 134:| 121:|

Index

view
edit
history
purge
approximately 3,300 pages
/sandbox
/testcases
user subpage
talk page
PresHead
PresFoot
here
PresRow
Presrow
template limits
documentation
transcluded
Template:United States presidential election results table row/doc
edit
history
sandbox
edit
diff
testcases
edit
/doc
Subpages of this template
Category
Presidential elections in the United States

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.