Difference between revisions of "Template:Infobox legislature/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎Image tests: update formatting, add descriptions)
imported>Frietjes
(replace per tfm of colorbox)
 
Line 38: Line 38:
 
  {{unbulleted list |class=nowrap
 
  {{unbulleted list |class=nowrap
 
   | ''Majority'' {{smaller|(55)}}
 
   | ''Majority'' {{smaller|(55)}}
   | {{colorbox|#000090}} [[Democratic Party (United States)|Democratic]] {{smaller|(53)}}
+
   | {{color box|#000090}} [[Democratic Party (United States)|Democratic]] {{smaller|(53)}}
   | {{colorbox|#7174e0}} [[Independent politician|Independent]] {{smaller|(2)}}
+
   | {{color box|#7174e0}} [[Independent politician|Independent]] {{smaller|(2)}}
 
  }}
 
  }}
 
  {{unbulleted list |class=nowrap |style=padding-top:0.3em;
 
  {{unbulleted list |class=nowrap |style=padding-top:0.3em;
 
   | ''Minority''
 
   | ''Minority''
   | {{colorbox|#900000}} [[Republican Party (United States)|Republican]] {{smaller|(45)}}
+
   | {{color box|#900000}} [[Republican Party (United States)|Republican]] {{smaller|(45)}}
 
  }} <!---
 
  }} <!---
 
  {{unbulleted list |class=nowrap |style=padding-top:0.3em;
 
  {{unbulleted list |class=nowrap |style=padding-top:0.3em;
   | {{colorbox|#FFFFFF}} ''vacant'' {{smaller|(0)}}
+
   | {{color box|#FFFFFF}} ''vacant'' {{smaller|(0)}}
 
  }}  ---->
 
  }}  ---->
 
| term_length    = 6 years
 
| term_length    = 6 years

Latest revision as of 15:20, 29 September 2016

United States Senate

Template:Testcase table

Images test: widths without px

  • width of first two images is set to 150 by this test case
  • width of middle two images is set to 250 by this test case
  • width of last two images is set to 150 by this test case

Template:Testcase table

Images test: width not specified

  • width of first two images is 75% of default, due to upright set in template (220 * 0.75 rounded to nearest 10 = 170px, will vary if thumbnail size is changed in Special:Preferences; see Script error: No such module "Section link".)
  • width of middle two images is 120px, due a default set in template
  • width of last two images set is default (220px for users who have not changed preferences or are not logged in)

Empty width parameters

Template:Testcase table

Undefined width parameters

Template:Testcase table