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

Материал из Аэроскан Сервис
Перейти к: навигация, поиск
(Documentation)
Строка 8: Строка 8:
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>
 +
<!-- Note that 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}}
 
{{clear}}
 
== Documentation ==
 
== Documentation ==

Версия 00:55, 26 февраля 2009

[[Image:{{{1}}}]]

[[Image:{{{2}}}]]

Шаблон: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

{{HoverImage|Gerbera_pink.jpg|Nymphaea tetragona.jpg|200px}}

[[File:Gerbera_pink.jpgШаблон:!200px]]

Captioned

{{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 image options
  • This template my need updating if the image syntax changes (e.g. more named parameters allowed)