Template:Chamber officers box begin/doc

Example
These Chamber officers box templates are for displaying a list of house/chamber leadership positions and parties. Created primarily for leadership positions of U.S. state legislative houses, this could possibly be used for other houses. They produce tables like this:

Usage
There are four templates currently:


 * Chamber officers box begin
 * Chamber officers box position
 * Chamber officers box position no party link
 * Chamber officers 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 leadership position and contributes at least one row to the table. There can be multiple names for each position listed, up to ten, as shown in the majority and minority whips positions above. Each name, though, can only have one party assigned. See Full Usage section below for more information about multi-officer positions.

When using this template please use the Chamber officers 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.

Also note that the party name needs to be the full correct party name. For instance, if officer is a Republican, the party= field needs to be Republican Party (United States) or if officer is a Democrat, the party= field needs to be Democratic Party (United States).

For example:

Will create this:

Note that the fields are wikilinkable. For the party field, you can choose between having it wikilinked or not by choosing the appropriate template. Chamber officers box position will produce a row where the party name is wikilinked. Chamber officers box position no party link will produce a row where the party name is not wikilinked. Do not put wikilinks in the party= parameters. Though not perfect, 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 officers box position alone.

Basic Structure
Blank example without parameters shown ...

Note that the structure and usage of the Chamber officers box position and Chamber officers box position no party link templates are the same. If you use Chamber officers box position for a position listing that has multiple names, it will produce party wikilinks for all parties listed. It is preferable to use Chamber officers box position no party link unless the row includes the first instance of the party name (which should be wikilinked).

Simple Usage
Blank example with basic parameters

Full Usage
Blank example with all parameters Notice how multiple positions are added by adding number after name or party, but only one position name per position box.

You only have to put in as many name/party combinations as you need.