Difference between revisions of "Template:Illinois legislator list"

From blackwiki
Jump to navigation Jump to search
imported>Visviva
(pass {{{link}}} to {{sortname}})
imported>Visviva
Line 1: Line 1:
 +
<includeonly>
 
|-
 
|-
 
| {{#ifeq:{{{district}}}|N/A| {{n/a}} | style="text-align:center;" {{!}}{{{district|}}} }}
 
| {{#ifeq:{{{district}}}|N/A| {{n/a}} | style="text-align:center;" {{!}}{{{district|}}} }}
Line 16: Line 17:
 
| {{Party shading/{{{party}}}}} | {{{party}}}
 
| {{Party shading/{{{party}}}}} | {{{party}}}
 
| style="text-align:center;" |{{{since|}}}{{{since_ref|}}}
 
| style="text-align:center;" |{{{since|}}}{{{since_ref|}}}
|{{{committees|}}}
+
|{{{committees|}}}</includeonly><noinclude>
 +
{{documentation}}
 +
<!-- Add categories in the /doc subpage, not here! -->
 +
</noinclude>

Revision as of 19:03, 30 January 2020

50px Template documentation[view] [edit] [history] [purge]

Usage

At the start of the list:

{{Illinois legislator list/start | title = }}

For each entry in the list:

{{Illinois legislator list
  | district    = 
  | county      = 
  | first       = 
  | last        = 
  | link        = 
  | party       = 
  | since       = 
  | since_ref   = 
  | committees  = 
}}

At the end of the list:

{{Illinois legislator list/end}}

Parameters

  • title - appropriate title of legislators in the list, such as "Senator" or "Representative"
  • district - number of the legislator's district
  • county - county or counties that district covers some part of
  • first - legislator's first and middle names
  • last - legislator's last name and any suffixes such as "Jr."
  • link - title (without markup) of article the legislator's name should link to, e.g. "Bill Brady (politician)".
  • party - name of legislator's party, or "Independent" if none
  • since - year of legislator's first election to this body
  • since_ref - citation supporting the year of first election, enclosed in <ref> tags
  • committees - comma-separated list of committees the legislator served on in this session
Notes

All parameters other than first and last may be freely left blank.