Template:PopupImage/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:PopupImage. It contains usage information, categories, and other content that is not part of the original template page. |
For the annoying popup images which occasionally show up in articles, giving you a jumpscare where you once thought was a link. Feel free to add this to every article on this site, rendering the entire place unreadable.
Usage
{{PopupImage|Everything was beautiful and nothing hurt|image=Everythingwasbeautifulandnothinghurt.png}}
The above code will produce this:
Everything was beautiful and nothing hurt
.
All parameters
text
– You can also use thetext
parameter, very helpful for when your text contains an=
sign, i.e.{{PopupImage|text=2+2=4|image=Einstein-pipe.jpg}}
image
– The image which will popup, do NOT include theFile:
part of the image name.width
– Changes the image's width, defaults to 200px, has a hard limit of 600px, so any value larger will just go to 600px.link
– Will change the image's link, does not change the text!alt
– Mouseover text, for the "joke-to-pixel" ratio maximizers.color
– Changes the text color, from "default link blue" to whatever you want.
Putting it all together:
{{PopupImage|text='''If you can solve this problem, you might have an IQ > 300: 2+2=?'''|image=Einstein-pipe.jpg|width=333px|link=Albert Einstein|alt=Here is some alt text you animal|color=green}}
The above code will produce this monstrosity:
If you can solve this problem, you might have an IQ > 300: 2+2=?
Note: You may see pages which specify a height
parameter for this template. This is no longer needed, and will do nothing if used now.
See also
- {{Show on hover}}
- {{Popout}} - Popout text
- {{Image hover}} - Image hover