Template:USHRseats/doc
From HandWiki
< Template:USHRseats
Revision as of 16:53, 9 July 2021 by imported>Jworkorg (Created page with "{{Documentation subpage}} {{lua|Module:USHRseats}} Returns the number of voting seats a given US state had in the United States House of Representatives in a given year, p...")
This is a documentation subpage for Template:USHRseats It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Returns the number of voting seats a given US state had in the United States House of Representatives in a given year, per the most recent congressional apportionment. If no year is given, the present date is used. State may be specified by full name or US postal abbreviation. (The District of Columbia returns zero, as its delegate to Congress is a non-voting member.)
Important: Reapportionment is assumed to take place at the end of the Census year – so, for example, 2011 will return the result of the 2010 reapportionment, and 2010 will return the result of the 2000 reapportionment.
Examples:
{{USHRseats|California}}
→ 52{{USHRseats|CA|1937}}
→ Error: given year is prior to the first census of this state{{USHRseats|CA|1800}}
→ Error: given year is prior to the first census of this state{{USHRseats|XX}}
→ Error: state not recognized{{USHRseats|DC}}
→ 0