Difference between revisions of "Template:Main page image/testcases"
Jump to navigation
Jump to search
test>AnomieBOT m (Substing templates: {{Multicol}}. See User:AnomieBOT/docs/TemplateSubster for info.) |
m (31 revisions imported) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 5: | Line 5: | ||
{{Col-break}} | {{Col-break}} | ||
{{main page image/sandbox|image=File:Example-serious.jpg|width=120x120px|caption=image=File:Example-serious.jpg, width=120x120px}} | {{main page image/sandbox|image=File:Example-serious.jpg|width=120x120px|caption=image=File:Example-serious.jpg, width=120x120px}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=File:Example-serious.jpg|width=120x120|caption=File:Example-serious.jpg, width=120x120}} | {{main page image/sandbox|image=File:Example-serious.jpg|width=120x120|caption=File:Example-serious.jpg, width=120x120}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|width=100px|caption=width=100px}} | {{main page image/sandbox|image=Example-serious.jpg|width=100px|caption=width=100px}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|width=150|caption=width=150}} | {{main page image/sandbox|image=Example-serious.jpg|width=150|caption=width=150}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|width=|caption=Empty width parameter}} | {{main page image/sandbox|image=Example-serious.jpg|width=|caption=Empty width parameter}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|Example-serious.jpg|No width parameter, no parameter names}} | {{main page image/sandbox|Example-serious.jpg|No width parameter, no parameter names}} | ||
| − | {{ | + | {{col-end}} |
===Portrait orientation=== | ===Portrait orientation=== | ||
{{Col-begin}} | {{Col-begin}} | ||
{{Col-break}} | {{Col-break}} | ||
{{main page image/sandbox|image=Placeholder.svg|width=120x120|caption=width=120x120}} | {{main page image/sandbox|image=Placeholder.svg|width=120x120|caption=width=120x120}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Placeholder.svg|width=100x133px|caption=width=100x133px}} | {{main page image/sandbox|image=Placeholder.svg|width=100x133px|caption=width=100x133px}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Placeholder.svg|width=x120|caption=width=x120 (this syntax is not supported)}} | {{main page image/sandbox|image=Placeholder.svg|width=x120|caption=width=x120 (this syntax is not supported)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Stanley Cup no background.png|width=50|caption=Aspect ratio 1:2.54 (width=50)}} | {{main page image/sandbox|image=Stanley Cup no background.png|width=50|caption=Aspect ratio 1:2.54 (width=50)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Stanley Cup no background.png|caption=Aspect ratio 1:2.54 (width not set)}} | {{main page image/sandbox|image=Stanley Cup no background.png|caption=Aspect ratio 1:2.54 (width not set)}} | ||
| − | {{ | + | {{col-end}} |
==Caption tests== | ==Caption tests== | ||
| Line 34: | Line 34: | ||
{{Col-break}} | {{Col-break}} | ||
{{main page image/sandbox|image=Example-serious.jpg|caption=link to [[Main Page]] (wikitext)}} | {{main page image/sandbox|image=Example-serious.jpg|caption=link to [[Main Page]] (wikitext)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|caption=}} | {{main page image/sandbox|image=Example-serious.jpg|caption=}} | ||
Empty caption parameter | Empty caption parameter | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg}} | {{main page image/sandbox|image=Example-serious.jpg}} | ||
No caption parameter | No caption parameter | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|caption align=right|caption=Right-aligned}} | {{main page image/sandbox|image=Example-serious.jpg|caption align=right|caption=Right-aligned}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|caption align=center|caption=Center-aligned}} | {{main page image/sandbox|image=Example-serious.jpg|caption align=center|caption=Center-aligned}} | ||
| − | {{ | + | {{col-end}} |
==Alt text tests== | ==Alt text tests== | ||
| Line 50: | Line 50: | ||
{{Col-break}} | {{Col-break}} | ||
{{main page image/sandbox|image=Example-serious.jpg|alt=Alt text|caption=Caption is different from alt text}} | {{main page image/sandbox|image=Example-serious.jpg|alt=Alt text|caption=Caption is different from alt text}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|alt=|caption=Empty alt parameter (should be same as this caption)}} | {{main page image/sandbox|image=Example-serious.jpg|alt=|caption=Empty alt parameter (should be same as this caption)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|caption=No alt parameter (should be same as this caption)}} | {{main page image/sandbox|image=Example-serious.jpg|caption=No alt parameter (should be same as this caption)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|alt=Alt text|caption=}} | {{main page image/sandbox|image=Example-serious.jpg|alt=Alt text|caption=}} | ||
Has alt parameter, but empty caption parameter | Has alt parameter, but empty caption parameter | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|alt=|caption=}} | {{main page image/sandbox|image=Example-serious.jpg|alt=|caption=}} | ||
Empty alt parameter, empty caption parameter (alt text should be filename) | Empty alt parameter, empty caption parameter (alt text should be filename) | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg}} | {{main page image/sandbox|image=Example-serious.jpg}} | ||
No alt parameter, no caption parameter (alt text should be filename) | No alt parameter, no caption parameter (alt text should be filename) | ||
| − | {{ | + | {{col-end}} |
==Link tests== | ==Link tests== | ||
| Line 69: | Line 69: | ||
{{Col-break}} | {{Col-break}} | ||
{{main page image/sandbox|image=Example-serious.jpg|link=Example-serious.jpg|caption=image=Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)}} | {{main page image/sandbox|image=Example-serious.jpg|link=Example-serious.jpg|caption=image=Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=File:Example-serious.jpg|link=Example-serious.jpg|caption=image=File:Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)}} | {{main page image/sandbox|image=File:Example-serious.jpg|link=Example-serious.jpg|caption=image=File:Example-serious.jpg, link=Example-serious.jpg (should link to Example-serious.jpg)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=File:Example-serious.jpg|link=File:Example-serious.jpg|caption=image=File:Example-serious.jpg, link=File:Example-serious.jpg (should link to Example-serious.jpg)}} | {{main page image/sandbox|image=File:Example-serious.jpg|link=File:Example-serious.jpg|caption=image=File:Example-serious.jpg, link=File:Example-serious.jpg (should link to Example-serious.jpg)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|link=Example.svg|caption=image=Example-serious.jpg, link=Example.svg (should link to Example.svg)}} | {{main page image/sandbox|image=Example-serious.jpg|link=Example.svg|caption=image=Example-serious.jpg, link=Example.svg (should link to Example.svg)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|link=|caption=Empty link parameter (should link to Example-serious.jpg)}} | {{main page image/sandbox|image=Example-serious.jpg|link=|caption=Empty link parameter (should link to Example-serious.jpg)}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Example-serious.jpg|caption=No link parameter (should link to Example-serious.jpg)}} | {{main page image/sandbox|image=Example-serious.jpg|caption=No link parameter (should link to Example-serious.jpg)}} | ||
| − | {{ | + | {{col-end}} |
==Border tests== | ==Border tests== | ||
| Line 85: | Line 85: | ||
{{Col-break}} | {{Col-break}} | ||
{{main page image/sandbox|image=Flag of Japan.svg|border=yes|caption=border=yes}} | {{main page image/sandbox|image=Flag of Japan.svg|border=yes|caption=border=yes}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Flag of Japan.svg|border=no|caption=border=no}} | {{main page image/sandbox|image=Flag of Japan.svg|border=no|caption=border=no}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Flag of Japan.svg|border=|caption=Empty border parameter}} | {{main page image/sandbox|image=Flag of Japan.svg|border=|caption=Empty border parameter}} | ||
| − | {{ | + | {{Col-break}} |
{{main page image/sandbox|image=Flag of Japan.svg|caption=No border parameter}} | {{main page image/sandbox|image=Flag of Japan.svg|caption=No border parameter}} | ||
| − | {{ | + | {{col-end}} |
==ID float test== | ==ID float test== | ||
Latest revision as of 16:11, 7 September 2020
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
|
|
|
|
|
|
|
Portrait orientation
|
|
|
|
|
|
Caption tests
![]() link to Main Page (wikitext)
|
Empty caption parameter |
No caption parameter |
|
|
Alt text tests
|
|
|
|
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
|
|
|
|
|
|
|

