mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-07-03 18:53:28 +00:00
25 lines
613 B
Plaintext
25 lines
613 B
Plaintext
title: $:/core/macros/thumbails
|
|
tags: $:/tags/Macro
|
|
|
|
\define thumbnail(link,width:"280",height:"157",image,caption)
|
|
<$link to="""$link$""">
|
|
<div class="tc-thumbnail-wrapper">
|
|
<div class="tc-thumbnail-image">
|
|
[img width="$width$" height="$height$" [$image$]]
|
|
</div>
|
|
<div class="tc-thumbnail-symbol">
|
|
{{$:/core/images/video}}
|
|
</div>
|
|
<div class="tc-thumbnail-caption">
|
|
$caption$
|
|
</div>
|
|
</div>
|
|
</$link>
|
|
\end
|
|
|
|
\define thumbnail-right(link,width:"280",height:"157",image,caption)
|
|
<div class="tc-thumbnail-right-wrapper">
|
|
<<thumbnail """$link$""" """$width$""" """$height$""" """$image$""" """$caption$""">>
|
|
</div>
|
|
\end
|