Template:Chamber officers box position no party link
Example
[edit]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:
North Carolina House officers | ||
---|---|---|
Position | Name | Party |
Speaker pro tempore | Dale Folwell | Republican |
Majority Leader | Paul Stam | Republican |
Majority Whip | Ruth Samuelson | Republican |
Deputy Majority Whips | Pat McElraft | Republican |
Jonathan Jordan | Republican | |
Deputy Minority Leader | William L. Wainwright | Democratic |
Minority Whips | Rick Glazier | Democratic |
Larry Hall | Democratic | |
Ray Rapp | Democratic | |
Deborah K. Ross | Democratic | |
Michael H. Wray | Democratic |
Usage
[edit]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:
{{Chamber officers box begin |chamber=[[North Carolina House of Representatives|North Carolina House]] }} {{Chamber officers box position |position=[[Speaker of the North Carolina House of Representatives|Speaker]] |name= [[Thom Tillis]] |party=Republican Party (United States) }} {{Chamber officers box end}}
Will create this:
North Carolina House officers | ||
---|---|---|
Position | Name | Party |
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
[edit]Blank example without parameters shown
{{Chamber officers box begin}} {{Chamber officers box position}} {{Chamber officers box position no party link}} {{Chamber officers box position no party link}} {{Chamber officers box position}} ... {{Chamber officers box end}}
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
[edit]Blank example with basic parameters
{{Chamber officers box begin |chamber= }} {{Chamber officers box position |position= |name= |party= }} {{Chamber officers box position no party link |position= |name= |party= }} {{Chamber officers box end}}
Full Usage
[edit]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.
{{Chamber officers box begin |chamber= }} {{Chamber officers box position |position= |name= |party= |name2= |party2= |name3= |party3= |name4= |party4= |name5= |party5= |name6= |party6= |name7= |party7= |name8= |party8= |name9= |party9= |name10= |party10= }} {{Chamber officers box position no party link |position= |name= |party= |name2= |party2= |name3= |party3= |name4= |party4= |name5= |party5= |name6= |party6= |name7= |party7= |name8= |party8= |name9= |party9= |name10= |party10= }} {{Chamber officers box end}}
You only have to put in as many name/party combinations as you need.