Template:Hover: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
[[Image:{{{2}}}{{#if:{{{link|}}}|{{!}}link={{{link}}}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}{{#if:{{{8|}}}|{{!}}{{{8}}}}}{{#if:{{{9|}}}|{{!}}{{{9}}}}}{{#if:{{{10|}}}|{{!}}{{{10}}}}}]] | [[Image:{{{2}}}{{#if:{{{link|}}}|{{!}}link={{{link}}}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}{{#if:{{{8|}}}|{{!}}{{{8}}}}}{{#if:{{{9|}}}|{{!}}{{{9}}}}}{{#if:{{{10|}}}|{{!}}{{{10}}}}}]] | ||
</div> | </div> | ||
</div></includeonly><noinclude>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). | </div></includeonly><noinclude>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. | ||
<pre>{{hover|Roster-blank.jpg|Roster-rahman.jpg}}</pre> | |||
{{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.) | |||
<pre>{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}}</pre> | |||
{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 20:47, 11 January 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.)
{{hover|Roster-blank.jpg|Roster-rahman.jpg|link=Roshanara Rahman}}