Template:Show on hover
Jump to navigation
Jump to search
Hello.
[edit] []
Template documentation
Usage
Similar to {{PopupImage}}, except more barebones and not inline by default. Used to show a hidden object when cursor is hovering over an initially shown object.
{{Show on hover
|show = I'm shown initially.
|hide = I'm shown when the cursor hovers over the other text.
}}
Also works with pictures. Pretty flexible. The following code produces the image hover you see.
{{Show on hover
|show = [[File:PM1.jpg|right|110px]]
|hide = [[File:Manningface.jpg|right|110px]]
}}
You can also customize the template with the style parameter
{{Show on hover
|show = foo
|hide = bar
|style = display:inline; color:red; font-size:100em;
}}
See also
- {{PopupImage}} - Popup image
- {{Popout}} - Popout text
- {{Image hover}} - Image hover