Template:Hover: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Protected "Template:Hover" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
==Additional Options== | ==Additional Options== | ||
Usual image options are supported (link=, custom pixel width or height, alt text, etc.) | Usual image options are supported (link=, custom pixel width or height, alt text, etc.). Just separate each additional option with a pipe character like you would normally. | ||
===Link=== | |||
<pre>{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}}</pre> | <pre>{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}}</pre> | ||
{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}} | {{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}} | ||
===Width=== | |||
<pre>{{hover|Roster-blank.jpg|Roster-rahman.jpg|60px|link=Roshanara Rahman}}</pre> | |||
{{hover|Roster-blank.jpg|Roster-rahman.jpg|60px|link=Roshanara Rahman}} | |||
===Overlay=== | |||
You can also have the first image appear as an overlay over the second image by adding OVERLAY=Yes to your wiki code. | |||
<pre>{{hover|Awards-glass.png|Awards-dutypost.jpg|OVERLAY=Yes|link=duty post award}}</pre> | |||
{{hover|Awards-glass.png|Awards-dutypost.jpg|OVERLAY=Yes|link=duty post award}} | |||
==Questions/Comments== | |||
[[User:Rich|'''♫ Rich''']] ([[User_talk:Rich|talk]]) | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 20:25, 30 April 2016
This template displays a default image, then substitutes another image when the reader hovers over it (e.g. if visual users place their mouse over the image). Works best when the images are the same size, but they don't have to be.
{{hover|Roster-blank.jpg|Roster-rahman.jpg}}
(Place pointer over image to see effect.)
Additional Options
Usual image options are supported (link=, custom pixel width or height, alt text, etc.). Just separate each additional option with a pipe character like you would normally.
Link
{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}}
Width
{{hover|Roster-blank.jpg|Roster-rahman.jpg|60px|link=Roshanara Rahman}}
Overlay
You can also have the first image appear as an overlay over the second image by adding OVERLAY=Yes to your wiki code.
{{hover|Awards-glass.png|Awards-dutypost.jpg|OVERLAY=Yes|link=duty post award}}