Template:Hover image
From Guild Wars 2 Wiki
Jump to navigationJump to search
[[File:{{{1}}}|link=]]
[[File:{{{2}}}|link=]]
Description[edit]
This template replaces an image with another one when placing the mouse over it.
Usage[edit]
{{hover image|<image1>|<image2>}}
{{hover image|<image1>|<image2>|<size>}}
Parameters[edit]
- 1 (unnamed parameter)
- Default image shown. Exclude the "File:" prefix.
- 2 (unnamed parameter)
- The hover image shown. Exclude the "File:" prefix.
- 3 ... 10 (unnamed parameters)
- Allows additional information to be appended to each of the files per normal wiki image syntax, e.g. "250px", "thumb", "left", "right", "", "", etc.
- link
- The page that the images should link to when clicked.
- alt
- The text that should be displayed when hovering over the image, if different to the link target.
- style
- Allows specification of additional html style rules that can be applied to the div around each of the images.
Examples[edit]
{{hover image|Diamond Reward Closed.png|Diamond Reward Open.png|250px}}
{{hover image|Diamond Reward Closed.png|Diamond Reward Open.png|250px|thumb|Closed Chest|Opened Chest}}
See also[edit]
- For the original template, see Template:HoverImage (en.wikibooks)