mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-10 10:48:05 +00:00
Remove youtube specificity from thumbnail macros
This commit is contained in:
24
core/wiki/macros/thumbnails.tid
Normal file
24
core/wiki/macros/thumbnails.tid
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
@@ -1,24 +0,0 @@
|
||||
title: $:/core/macros/youtube
|
||||
tags: $:/tags/Macro
|
||||
|
||||
\define youtube-thumbnail(link,width:"280",height:"157",image,caption)
|
||||
<$link to="""$link$""">
|
||||
<div class="tc-youtube-wrapper">
|
||||
<div class="tc-youtube-thumbnail">
|
||||
[img width="$width$" height="$height$" [$image$]]
|
||||
</div>
|
||||
<div class="tc-youtube-play-symbol">
|
||||
{{$:/core/images/video}}
|
||||
</div>
|
||||
<div class="tc-youtube-caption">
|
||||
$caption$
|
||||
</div>
|
||||
</div>
|
||||
</$link>
|
||||
\end
|
||||
|
||||
\define youtube-right-thumbnail(link,width:"280",height:"157",image,caption)
|
||||
<div class="tc-youtube-right-wrapper">
|
||||
<<youtube-thumbnail """$link$""" """$width$""" """$height$""" """$image$""" """$caption$""">>
|
||||
</div>
|
||||
\end
|
||||
Reference in New Issue
Block a user