1
0
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:
Jermolene
2015-03-23 11:36:11 +00:00
parent 66f4faaef4
commit 5b38f2a17c
4 changed files with 39 additions and 39 deletions

View 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

View File

@@ -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