Template:Main page image/testcases
Jump to navigation
Jump to search
These are test cases for {{main page image/sandbox}}. When editing that template, you can use this page to preview your changes.
Contents
Width and file prefix tests
|
image=File:Example-serious.jpg, width=120x120px
image=File:Example-serious.jpg, width=120x120px
|
File:Example-serious.jpg, width=120x120
File:Example-serious.jpg, width=120x120
|
width=100px
width=100px
|
width=150
width=150
|
Empty width parameter
Empty width parameter
|
No width parameter, no parameter names
No width parameter, no parameter names
|
Portrait orientation
|
width=120x120
width=120x120
|
width=100x133px
width=100x133px
|
width=x120 (this syntax is not supported)
width=x120 (this syntax is not supported)
|
Aspect ratio 1:2.54 (width=50)
Aspect ratio 1:2.54 (width=50)
|
Aspect ratio 1:2.54 (width not set)
Aspect ratio 1:2.54 (width not set)
|
Caption tests
|
link to Main Page (wikitext)
link to Main Page (wikitext)
|
Empty caption parameter |
No caption parameter |
Right-aligned
Right-aligned
|
Center-aligned
Center-aligned
|
Alt text tests
|
Caption is different from alt text
Caption is different from alt text
|
Empty alt parameter (should be same as this caption)
Empty alt parameter (should be same as this caption)
|
No alt parameter (should be same as this caption)
No alt parameter (should be same as this caption)
|
Has alt parameter, but empty caption parameter |
Empty alt parameter, empty caption parameter (alt text should be filename) |
No alt parameter, no caption parameter (alt text should be filename) |
Link tests
|
image=Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)
image=Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)
|
image=File:Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)
image=File:Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)
|
image=File:Example-serious.jpg, link=File:Example-serious.jpg (should link to Example-serious.jpg)
image=File:Example-serious.jpg, link=File:Example-serious.jpg (should link to Example-serious.jpg)
|
image=Example-serious.jpg, link=Example.svg (should link to Example.svg)
image=Example-serious.jpg, link=Example.svg (should link to Example.svg)
|
Empty link parameter (should link to Example-serious.jpg)
Empty link parameter (should link to Example-serious.jpg)
|
No link parameter (should link to Example-serious.jpg)
No link parameter (should link to Example-serious.jpg)
|
Border tests
|
border=yes
border=yes
|
border=no
border=no
|
Empty border parameter
Empty border parameter
|
No border parameter
No border parameter
|