1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-10 11:59:58 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/macros/thumbnail Macro.tid

29 lines
867 B
Plaintext
Raw Normal View History

caption: thumbnail
created: 20150325172203603
2024-06-06 16:15:41 +00:00
modified: 20230803033450805
tags: Macros [[Core Macros]]
title: thumbnail Macro
type: text/vnd.tiddlywiki
2024-06-06 16:15:41 +00:00
The <<.def thumbnail>> [[macro|Macros]] is used to create linkable thumbnail panels. An alternative <<.def thumbnail-right>> macro uses the same parameters, but floats to the right of its container.
!! Parameters
2024-06-06 16:15:41 +00:00
;link
: The tiddler to link to
;icon
: An icon to place in the center of the thumbnail. Must be enclosed in curly brackets
;color
: A color for the icon
;background-color
: A background color if there is no image. Does not show if the image has transparency
;image
: A background image for the thumbnail
;caption
: A caption for the element
;width
: A width in px for the thumbnail, defaulting to `280`
;height
: A height in px for the thumbnail, defaulting to `157`
2024-06-06 16:15:41 +00:00
<<.macro-examples "thumbnail">>