Template:Chamber members box begin/doc

From Wikipedia, the free encyclopedia

Example[edit]

These Chamber members box templates are for displaying a list of house/chamber members whether it be State House or Senate listings. Created primarily for chamber member/representative positions of U.S. state legislative houses, this could possibly be used for other houses/governing bodies. They produce tables like this:


North Carolina House members 2011-2012
District Representative Party Residence Counties represented
1 Bill Owens Democratic Elizabeth City Camden, Currituck, Gates, Pasquotank
2 Timothy Spear Democratic Creswell Chowan, Dare, Hyde, Washington
3 Norman W. Sanderson Republican Arapahoe Craven, Pamlico
4 Jimmy Dixon Republican Warsaw Duplin, Onslow
5 Annie Mobley Democratic Ahoskie Bertie, Gates, Hertford, Perquimans

Usage[edit]

There are four templates currently:

The begin and end templates start and end a table with appropriate columns and formatting. The position template is used once for each district listing and contributes one row to the table. When, because of resignations, deaths, etc., you have more than one member for a district, you can either add them after the other input in the member_name box, or you can create another listing where you would have two or more listings using the same district number.

When using this template please use the Chamber members box end template rather than simply inserting |} at the end of the election box. If you do place the |} it will be detected as an error by syntax-checking bots and will then be placed in the syntax cleanup project queue and will need to be fixed by someone.

The county field is sortable, but only sorts based on the first county listed in the row.

The region= parameter is available to input whatever area the district covers. For instance, in many U.S. states, this will be Counties (which is partly why I left the parameter name in each row as county=), but Louisiana has Parishes and Alaska uses Boroughs. Apart from State Legislatures (and maybe even with them), this could be used for Cities, Precincts or any other district you need.

Also note that the party name needs to be the full correct party name. For instance, if member is a Republican, the party= field needs to be Republican Party (United States); if member is a Democrat, the party= field needs to be Democratic Party (United States); or if another party or unaffiliated, use the appropriate listing for this or the shading and cell coloring won't show up correctly.

For example:

 {{Chamber members box begin
  |chamber=[[North Carolina House of Representatives|North Carolina House]]
  |member_type = Representative
  |region=Counties
 }}
 {{Chamber members box listing
  |district = 1
  |member_name = [[William C. Owens, Jr.|Bill Owens]]
  |party = Democratic Party (United States)
  |residence = [[Elizabeth City, North Carolina|Elizabeth City]]
  |county =[[Camden County, North Carolina|Camden]]
  |county2 = [[Currituck County, North Carolina|Currituck]]
  |county3 = [[Gates County, North Carolina|Gates]]
  |county4 = [[Pasquotank County, North Carolina|Pasquotank]]
 }}
 {{Chamber members box listing
  |district = 10
  |member_name = [[Stephen LaRoque]]
  |party = Republican Party (United States)
  |residence = [[Kinston, North Carolina|Kinston]]
  |county = [[Greene County, North Carolina|Greene]]
  |county2 = [[Lenoir County|Lenoir]]
  |county3 = [[Wayne County, North Carolina|Wayne]]
 }}
 {{Chamber members box end}}
 

Will create this:


North Carolina House members
District Representative Party Residence Counties represented
1 Bill Owens Democratic Elizabeth City Camden, Currituck, Gates, Pasquotank
10 Stephen LaRoque Republican Kinston Greene, Lenoir, Wayne

Note that most of the fields are wikilinkable. The chamber, member_type, district, member_name, residence and county fields can all have wikilinked inputs. The template does not add or take away wikilinking.

For the party field, though, you can choose between having it wikilinked or not by choosing the appropriate template. {{Chamber members box listing}} will produce a row where the party name is wikilinked. {{Chamber members box listing no party link}} will produce a row where the party name is not wikilinked. Do not put wikilinks in the party= parameters. This will allow you to better highlight the first instance of the party name and not every single instance as you would get if you just used the {{Chamber members box listing}} alone.

Of course, having the table sortable will cause the first instance of the wikilink to possibly not be first in the listings, but the option is there for you to use, if deemed necessary.

Basic Structure[edit]

Blank example without parameters shown

 {{Chamber members box begin}}
 {{Chamber members box listing}}
 {{Chamber members box listing no party link}}
 {{Chamber members box listing no party link}}
 {{Chamber members box listing}}
 ...
 {{Chamber members box end}}
 

Simple Usage[edit]

Blank example with basic parameters

 {{Chamber members box begin
 |chamber =
 |member_type =
 |years =
 |region= 
 }}
 {{Chamber members box listing
 |district =
 |member_name =
 |party =
 |residence=
 |county=
 }}
 {{Chamber members box listing no party link
 |district =
 |member_name =
 |party =
 |residence=
 |county=
 }}
 {{Chamber members box end}}
 

Full Usage[edit]

Blank example with all parameters Notice how multiple counties are added by adding number after county up to ten counties.

 {{Chamber members box begin
 |chamber =
 |member_type = 
 |years = 
 |region= 
 }}
 {{Chamber members box listing
 |district =
 |member_name =
 |party =
 |residence=
 |county=
 |county2=
 |county3=
 |county4=
 |county5=
 |county6=
 |county7=
 |county8=
 |county9=
 |county10=
 }}
 {{Chamber members box listing no party link
 |district =
 |member_name =
 |party =
 |residence=
 |county=
 |county2=
 |county3=
 |county4=
 |county5=
 |county6=
 |county7=
 |county8=
 |county9=
 |county10=
 }}
 {{Chamber members box end}}
 

You only have to put in as many county listings as you need.