Difference between revisions of "Template:Current U.S. senators/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Bsherr
(replacing with div col)
imported>Bsherr
(converting to div columns)
Line 1: Line 1:
{{Navbox with columns
+
{{Navbox
 
|name=U.S. Senators
 
|name=U.S. Senators
 
|title=[[List of members of the United States Senate|United States Senators]]
 
|title=[[List of members of the United States Senate|United States Senators]]
 
|state= {{{state|autocollapse}}}
 
|state= {{{state|autocollapse}}}
|image= [[File:Seal of the United States Senate.svg|100px]]
+
|image= [[File:Seal of the United States Senate.svg|100px|alt=Seal of the United States Senate]]
 
|abovestyle = background:transparent;
 
|abovestyle = background:transparent;
 +
|liststyle = background:transparent;
 
|above = '''[[Vice President of the United States|President]]:''' [[Mike Pence|Pence]] (R) — '''[[President pro tempore of the United States Senate|President Pro Tempore]]:''' [[Chuck Grassley|Grassley]] (R)
 
|above = '''[[Vice President of the United States|President]]:''' [[Mike Pence|Pence]] (R) — '''[[President pro tempore of the United States Senate|President Pro Tempore]]:''' [[Chuck Grassley|Grassley]] (R)
 
|list1=
 
|list1=
{{div col}}
+
{{div col|rules=yes|content=
 +
<table>
 
{{U.S. Senators/row|Alabama|AL|R|[[Richard Shelby|Shelby]]|D|[[Doug Jones (politician)|Jones]]}}
 
{{U.S. Senators/row|Alabama|AL|R|[[Richard Shelby|Shelby]]|D|[[Doug Jones (politician)|Jones]]}}
 
{{U.S. Senators/row|Alaska|AK|R|[[Lisa Murkowski|Murkowski]]|R|[[Dan Sullivan (U.S. senator)|Sullivan]]}}
 
{{U.S. Senators/row|Alaska|AK|R|[[Lisa Murkowski|Murkowski]]|R|[[Dan Sullivan (U.S. senator)|Sullivan]]}}
Line 58: Line 60:
 
{{U.S. Senators/row|Wisconsin|WI|R|[[Ron Johnson (Wisconsin politician)|Johnson]]|D|[[Tammy Baldwin|Baldwin]]}}
 
{{U.S. Senators/row|Wisconsin|WI|R|[[Ron Johnson (Wisconsin politician)|Johnson]]|D|[[Tammy Baldwin|Baldwin]]}}
 
{{U.S. Senators/row|Wyoming|WY|R|[[Mike Enzi|Enzi]]|R|[[John Barrasso|Barrasso]]}}
 
{{U.S. Senators/row|Wyoming|WY|R|[[Mike Enzi|Enzi]]|R|[[John Barrasso|Barrasso]]}}
{{div col end}}
+
</table>
 
+
}}
 
|belowclass = hlist
 
|belowclass = hlist
 
|below=
 
|below=
Line 66: Line 68:
 
* {{Party shading/Independent (United States)/block}} [[Independent politician|Independent (2)]]
 
* {{Party shading/Independent (United States)/block}} [[Independent politician|Independent (2)]]
 
* Vacant (1)
 
* Vacant (1)
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 22:37, 3 January 2019

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

Usage

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Current U.S. senators|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Current U.S. senators|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Current U.S. senators|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

See also