Difference between revisions of "Template:Infobox legislature/testcases"
Jump to navigation
Jump to search
imported>Zyxw (additional image tests) |
imported>Zyxw (→Image tests: update formatting, add descriptions) |
||
Line 57: | Line 57: | ||
}} | }} | ||
− | == | + | == 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 | ||
− | |||
{{Testcase table | {{Testcase table | ||
| name = image test | | name = image test | ||
Line 85: | Line 88: | ||
| meeting_place2 = second session room image | | meeting_place2 = second session room image | ||
}} | }} | ||
+ | |||
+ | == 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 {{section link|Wikipedia:Extended image syntax|Size}}) | ||
+ | * 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 === | === Empty width parameters === | ||
+ | |||
{{Testcase table | {{Testcase table | ||
| name = image test | | name = image test | ||
Line 114: | Line 124: | ||
=== Undefined width parameters=== | === Undefined width parameters=== | ||
+ | |||
{{Testcase table | {{Testcase table | ||
| name = image test | | name = image test |
Revision as of 12:48, 3 September 2015
![]() | This is the template test cases page for the sandbox of Template:Infobox legislature. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
United States Senate
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
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)