Шаблон:HoverImage — различия между версиями

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(Examples)
 
(не показано 38 промежуточных версии 7 участников)
Строка 1: Строка 1:
 
<div class="hoverbox">
 
<div class="hoverbox">
<div class="hoveritem selected">
+
<div {{#if:{{{style|}}}|style="{{{style}}}"&nbsp;|}}class="hoveritem selected">
[[Image:{{{1}}}{{#if:{{{link|}}}|{{!}}link={{{link}}}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}{{#if:{{{10|}}}|{{!}}{{{10}}}}}{{#if:{{{9|}}}|{{!}}{{{9}}}}}{{#if:{{{8|}}}|{{!}}{{{8}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]
+
[[File:{{{1}}}{{#if:{{{link|}}}|{{!}}link={{{link}}}}}{{#if:{{{alt|}}}|{{!}}alt={{{alt}}}}}{{#if:{{{10|}}}|{{!}}{{{10}}}}}{{#if:{{{9|}}}|{{!}}{{{9}}}}}{{#if:{{{8|}}}|{{!}}{{{8}}}}}{{#if:{{{7|}}}|{{!}}{{{7}}}}}{{#if:{{{6|}}}|{{!}}{{{6}}}}}{{#if:{{{5|}}}|{{!}}{{{5}}}}}{{#if:{{{4|}}}|{{!}}{{{4}}}}}{{#if:{{{3|}}}|{{!}}{{{3}}}}}]]
 
</div>
 
</div>
<div class="hoveritem">
+
<div {{#if:{{{style|}}}|style="{{{style}}}"&nbsp;|}}class="hoveritem">
[[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}}}}}]]
+
[[File:{{{2}}}|link={{{L}}}{{#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>
 
</div>
<noinclude>
 
 
<!-- Note for template editors: The order of parameters is reversed when calling the first image so that if there are two captions given, the first is placed after the second in the parameter list. This is a trick to force to the first caption to be associated with the first image, and the second with the second -->
 
 
 
{{clear}}
 
== Documentation ==
 
This template generates an image which changes when you hover over it (e.g. if visual users place their mouse over the image).
 
 
=== Examples ===
 
A simple example
 
<pre>{{HoverImage|Gerbera_pink.jpg|Nymphaea tetragona.jpg|200px}}</pre>
 
{{HoverImage|Gerbera_pink.jpg|Nymphaea tetragona.jpg|200px}}
 
 
Captioned
 
<pre>{{HoverImage|Gerbera_pink.jpg|Nymphaea tetragona.jpg|200px|Pink|Waterlily|thumb}}</pre>
 
{{HoverImage|Gerbera_pink.jpg|Nymphaea tetragona.jpg|200px|Pink|Waterlily|thumb}}
 
 
 
==== Limitations ====
 
* No more than 8 additional parameters after the image names. This should be enough for all the [[Help:images|image options]]
 
* This template my need updating if the image syntax changes (e.g. more named parameters allowed)
 
 
</noinclude>
 

Текущая версия на 20:33, 25 мая 2015

[[File:{{{1}}}]]

[[File:{{{2}}}|link={{{L}}}]]