قالب:United States presidential election results table header/doc

This is used to start the table of the results of United States presidential elections in a given area, such as a county, city, etc. It is used alongside {{PresRow}} and {{PresFoot}} for that purpose, like so:

{{PresHead|PresHead parameters...}}
{{PresRow|PresRow parameters...}}
{{PresRow|PresRow parameters...}}
.
.
.
{{PresRow|PresRow parameters...}}
{{PresFoot|PresFoot parameters...}}

It has the following parameters:

  • whig=yes - If activated, will change the GOP header to read "Republican / Whig"
  • place - Gives the name of the place
  • source, source1, source2, source3, and source4 - For sources. Ref tags, if used, will need to be defined within these parameters. Please do not try to place inline refs in the table itself, as the code does not allow for that.

Test cases can be found at the test page for PresRow here.

Aliases

Substitution

PresHead (this particular template) 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 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.

PresRow 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 template limits.