Wiki-Quellcode von thumbnail macro
Zuletzt geändert von Sarah Groeneveld am 2026/07/13 15:00
Verstecke letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
![]() |
1.1 | 1 | ==Description== |
| 2 | A replacement of ~[~[image~]~] that displays an image as thumbnail with link to the full image. | ||
| 3 | |||
| 4 | ==Usages== | ||
| 5 | It is created for syntax 2.0 and 2.1 and can be used in wysiwyg editor. | ||
| 6 | |||
| 7 | {{code}} | ||
| 8 | {{thumbnail image='404.png' height="50" keepAspectRatio="true"/}} | ||
| 9 | {{/code}} | ||
| 10 | |||
| 11 | |=Param|=Description | ||
| 12 | |image (required)|The image is in format ~{~{~{wikiName:~} space.~} page@~} (imageName) just like it used in image syntax. [[http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HImages]] | ||
| 13 | |width|parameter that defines the width of the displayed image. | ||
| 14 | |height|parameter that defines the height of the displayed image. | ||
| 15 | |keepAspectRatio|parameter to be used when only width or height is specified and not both to keep the same aspect of the original image. |
