Difference between revisions of "Template:Infobox cabinet members/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
imported>Frietjes
Line 2: Line 2:
 
__notoc__
 
__notoc__
 
==First testcase==
 
==First testcase==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column=true |name_style=font-weight:bold;
{{Generic template demo
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
|above |topimage |topcaption |image |caption |party_column=true |name_style=font-weight:bold;
+
  |office2={{{office2}}}|name2a={{{name2a}}}|party2a={{{party2a}}}|term2a={{{term2a}}}|name2b={{{name2b}}}|party2b={{{party2b}}}|term2b={{{term2b}}}
  |office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
+
  |office3={{{office3}}}|name3a={{{name3a}}}|party3a={{{party3a}}}|term3a={{{term3a}}}|name3b={{{name3b}}}|party3b={{{party3b}}}|term3b={{{term3b}}}|name3c={{{name3c}}}|party3c={{{party3c}}}|term3c={{{term3c}}}|name3d={{{name3d}}}|party3d={{{party3d}}}|term3d={{{term3d}}}
  |office2 |name2a |party2a |term2a |name2b |party2b |term2b  
+
  |below={{{below}}}
  |office3 |name3a |party3a |term3a |name3b |party3b |term3b |name3c |party3c |term3c |name3d |party3d |term3d  
 
  | below  
 
 
}}
 
}}
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
|above |topimage |topcaption |image |caption |party_column=true |name_style=font-weight:bold;
 
|office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
|office2 |name2a |party2a |term2a |name2b |party2b |term2b
 
|office3 |name3a |party3a |term3a |name3b |party3b |term3b |name3c |party3c |term3c |name3d |party3d |term3d
 
| below
 
}}
 
{{col-end}}
 
  
 
==Override labels==
 
==Override labels==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column=true |name_style=font-weight:bold;
{{Generic template demo
+
  |office_label={{{office_label}}}|name_label={{{name_label}}}|party_label={{{party_label}}}|term_label={{{term_label}}}
|above |topimage |topcaption |image |caption |party_column=true |name_style=font-weight:bold;
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
  | office_label | name_label | party_label| term_label
+
  |below={{{below}}}
  | office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
  | below  
 
 
}}
 
}}
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
| above |topimage |topcaption |image |caption |party_column=true |name_style=font-weight:bold;
 
| office_label | name_label | party_label| term_label
 
| office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
| below
 
}}
 
{{col-end}}
 
  
 
==No party column ==
 
==No party column ==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column =|name_style=font-weight:bold;
{{Generic template demo
+
  |office_label={{{office_label}}}|name_label={{{name_label}}}|party_label={{{party_label}}}|term_label={{{term_label}}}
|above |topimage |topcaption |image |caption |party_column =|name_style=font-weight:bold;
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
  | office_label | name_label | party_label| term_label
+
  |below={{{below}}}
  | office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
  | below  
 
 
}}
 
}}
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
| above |topimage |topcaption |image |caption |party_column= |name_style=font-weight:bold;
 
| office_label | name_label | party_label| term_label
 
| office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
| below
 
}}
 
{{col-end}}
 
 
{{Collapse top|title= Alignment}}
 
{{Collapse top|title= Alignment}}
 
==Align left==
 
==Align left==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column =|name_style=font-weight:bold; | float=left
{{Generic template demo
+
  |office_label={{{office_label}}}|name_label={{{name_label}}}|party_label={{{party_label}}}|term_label={{{term_label}}}
|above |topimage |topcaption |image |caption |party_column =|name_style=font-weight:bold; | float=left
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
  | office_label | name_label | party_label| term_label
+
  |below={{{below}}}
  | office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
  | below  
 
 
}}
 
}}
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
| above |topimage |topcaption |image |caption |party_column= |name_style=font-weight:bold; | float=left
 
| office_label | name_label | party_label| term_label
 
| office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
| below
 
}}
 
{{col-end}}
 
 
==Align center==
 
==Align center==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column =|name_style=font-weight:bold; | float=center
{{Generic template demo
+
  |office_label={{{office_label}}}|name_label={{{name_label}}}|party_label={{{party_label}}}|term_label={{{term_label}}}
|above |topimage |topcaption |image |caption |party_column =|name_style=font-weight:bold; | float=center
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
  | office_label | name_label | party_label| term_label
+
  |below={{{below}}}
  | office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
  | below  
 
 
}}
 
}}
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
| above |topimage |topcaption |image |caption |party_column= |name_style=font-weight:bold; | float=center
 
| office_label | name_label | party_label| term_label
 
| office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
| below
 
}}
 
{{col-end}}
 
 
==Align right==
 
==Align right==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column =|name_style=font-weight:bold; | float=right
{{Generic template demo
+
  |office_label={{{office_label}}}|name_label={{{name_label}}}|party_label={{{party_label}}}|term_label={{{term_label}}}
|above |topimage |topcaption |image |caption |party_column =|name_style=font-weight:bold; | float=right
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
  | office_label | name_label | party_label| term_label
+
  |below={{{below}}}
  | office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
  | below  
 
 
}}
 
}}
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
| above |topimage |topcaption |image |caption |party_column= |name_style=font-weight:bold; | float=right
 
| office_label | name_label | party_label| term_label
 
| office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
| below
 
}}
 
{{col-end}}
 
 
 
==Align none==
 
==Align none==
{{Col-begin}}
+
{{testcase table|_style=width:100%
{{Col-2}}
+
|above={{{above}}}|topimage={{{topimage}}}|topcaption={{{topcaption}}}|image={{{image}}}|caption={{{caption}}}|party_column =|name_style=font-weight:bold; | float=none
{{Generic template demo
+
  |office_label={{{office_label}}}|name_label={{{name_label}}}|party_label={{{party_label}}}|term_label={{{term_label}}}
|above |topimage |topcaption |image |caption |party_column =|name_style=font-weight:bold; | float=none
+
  |office1={{{office1}}}|name1a={{{name1a}}}|party1a={{{party1a}}}|term1a={{{term1a}}}|name1b={{{name1b}}}|party1b={{{party1b}}}|term1b={{{term1b}}}|name1c={{{name1c}}}|party1c={{{party1c}}}|term1c={{{term1c}}}|name1d={{{name1d}}}|party1d={{{party1d}}}|term1d={{{term1d}}}|name1e={{{name1e}}}|party1e={{{party1e}}}|term1e={{{term1e}}}
| office_label | name_label | party_label| term_label
+
  |below={{{below}}}
| office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
| below
 
}}
 
{{col-2}}
 
{{Generic template demo
 
|_template = Infobox cabinet members/sandbox
 
| above |topimage |topcaption |image |caption |party_column= |name_style=font-weight:bold; | float=none
 
  | office_label | name_label | party_label| term_label
 
  | office1 |name1a |party1a |term1a |name1b |party1b |term1b |name1c |party1c |term1c |name1d |party1d |term1d |name1e |party1e |term1e
 
  | below  
 
 
}}
 
}}
{{col-end}}
+
{{Collapse bottom}}
{{Collapse bottom|title= Alignment}}
 
 
==U.S. Cabinet ==
 
==U.S. Cabinet ==
{{Col-begin}}
+
{{testcase table|_style=width:100%|_template=Infobox U.S. Cabinet|_template2=Infobox U.S. Cabinet/sandbox
{{Col-2}}
 
{{Infobox U.S. Cabinet
 
|align=none
 
|Name=Adams
 
|President=John Quincy Adams
 
|President start=1825
 
|President end=1829
 
|Vice President=[[John C. Calhoun]]
 
|Vice President start=1825
 
|Vice President end=1829
 
|State=[[Henry Clay]]
 
|State start=1825
 
|State end=1829
 
|War=[[James Barbour]]
 
|War start=1825
 
|War end=1828
 
|War 2=[[Peter Buell Porter|Peter B. Porter]]
 
|War start 2=1828
 
|War end 2=1829
 
|Treasury=[[Richard Rush]]
 
|Treasury start=1825
 
|Treasury end=1829
 
|Justice=[[William Wirt (Attorney General)|William Wirt]]
 
|Justice start=1825
 
|Justice end=1829
 
|Navy=[[Samuel L. Southard]]
 
|Navy start=1825
 
|Navy end=1829
 
}}
 
{{Col-2}}
 
{{Infobox U.S. Cabinet/sandbox
 
 
|align=none
 
|align=none
 
|Name=Adams
 
|Name=Adams
Line 194: Line 84:
 
|Navy end=1829
 
|Navy end=1829
 
}}
 
}}
{{col-end}}
 

Revision as of 23:16, 21 September 2018

First testcase

Template:Testcase table

Override labels

Template:Testcase table

No party column

Template:Testcase table

Alignment

Align left

Template:Testcase table

Align center

Template:Testcase table

Align right

Template:Testcase table

Align none

Template:Testcase table

U.S. Cabinet

Template:Testcase table