mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-18 06:00:29 +00:00
70e419824f
This is just an idea really. The help plugin is only included in the tw5.com wiki; the idea is to also include it in the empty.html wiki, either as a plugin or as part of the core. If it stays as a plugin, the idea would be to have different help plugins for different languages.
25 lines
775 B
Plaintext
25 lines
775 B
Plaintext
title: $:/plugins/tiddlywiki/help/HelpPanel/Videos
|
|
tags: $:/tags/HelpPanel
|
|
caption: Videos
|
|
|
|
\define show-video-inner(embed)
|
|
<iframe width="280" height="157" src="""http://www.youtube.com/embed/$embed$?autoplay=0&showinfo=0&theme=light&rel=0&modestbranding=1&autohide=1""" frameborder="0" allowfullscreen></iframe>
|
|
\end
|
|
|
|
\define show-video(title)
|
|
<$macrocall $name="show-video-inner" embed={{$title$!!embed}}/>
|
|
<p>{{$title$!!text}}</p>
|
|
\end
|
|
|
|
<div class="tc-help-panel-inner">
|
|
|
|
Choose video: <$select tiddler="$:/config/Help/CurrentVideo">
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/HelpPanel/Videos]]">
|
|
<option value=<<currentTiddler>>><$view field="caption"/></option>
|
|
</$list>
|
|
</$select>
|
|
|
|
<$macrocall $name="show-video" title={{$:/config/Help/CurrentVideo}}>>
|
|
|
|
</div>
|