Template:Chamber members box begin/doc

Example
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:

Usage
There are four templates currently:


 * Chamber members box begin
 * Chamber members box listing
 * Chamber members box listing no party link
 * Chamber members box end

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:

Will create this:

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
Blank example without parameters shown ...

Simple Usage
Blank example with basic parameters

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

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