Шаблон:Hover image

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск

{{#Widget:Custom CSS|hash=72739eaabe767e401ab875b6301e805c5e847da8|css=.hoverbox {display:inline-block; padding:0em;} .hoverbox .hoveritem {display:none; margin:0em; padding:0em;} .hoverbox .hoveritem.selected {display:inline-block;} .hoverbox:hover .hoveritem {display:inline-block;}

.hoverbox:hover .hoveritem.selected {display:none;}}}
[[File:{{{1}}}]]
[[File:{{{2}}}]]

Description[править]

This template replaces an image with another one when placing the mouse over it.

Usage[править]

{{hover image|<image1>|<image2>}}
{{hover image|<image1>|<image2>|<size>}}

Parameters[править]

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", "", "<Caption for hover image thumbnail>", 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[править]

{{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[править]