diff --git a/editions/tw5.com/tiddlers/widgets/GridWidget.tid b/editions/tw5.com/tiddlers/widgets/GridWidget.tid index 956947584..bdd15f822 100644 --- a/editions/tw5.com/tiddlers/widgets/GridWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/GridWidget.tid @@ -1,11 +1,12 @@ title: GridWidget tags: widget -The grid widget assembles tiddlers into a tabular grid based on their titles. For example: +The video widget is not yet (re)implemented. ``` +The grid widget assembles tiddlers into a tabular grid based on their titles. For example: + <$grid prefix="GridDemo" rows=3 cols=3/> -``` In this case, the following tiddlers will be rendered: @@ -16,3 +17,4 @@ In this case, the following tiddlers will be rendered: The result is: <$grid prefix="GridDemo" rows=3 cols=3/> +``` diff --git a/editions/tw5.com/tiddlers/widgets/LinkWidget.tid b/editions/tw5.com/tiddlers/widgets/LinkWidget.tid index 3640a71ce..9f167e493 100644 --- a/editions/tw5.com/tiddlers/widgets/LinkWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/LinkWidget.tid @@ -1,47 +1,14 @@ title: LinkWidget tags: widget -The `link` widget generates links to tiddlers and external URIs. Optionally, hovering over a link can trigger the display of another tiddler as a popup. +The `link` widget generates links to tiddlers. -! Attributes +! Content and Attributes -* `to` - link target can be a URL -* `hover` - the title of a tiddler containing the popup state to set when hovering over the link -* `qualifyHoverTitles` - if this attribute is present then the title of the hover state tiddler is qualified as described in the PopupMechanism +|!Attribute |!Description | +|to |The title of the target tiddler for the link | -The `to` attribute is interpreted as an external link if it matches this regular expression: - -``` -/(?:file|http|https|mailto|ftp|irc|news|data):[^\s'"]+(?:\/|\b)/i -``` - -! Examples - -The `hover` attribute is part of the PopupMechanism. - -For example: - -``` -`$:/MyHover` is {{$:/MyHover}} - -<$link to="HelloThere" hover="$:/MyHover">Hover me to see ~HelloThere! -<$reveal state="$:/MyHover" type="popup"> -
-{{HelloThere}} -
- -``` - -Renders as: - -`$:/MyHover` is {{$:/MyHover}} - -<$link to="HelloThere" hover="$:/MyHover">Hover me to see ~HelloThere! -<$reveal state="$:/MyHover" type="popup"> -
-{{HelloThere}} -
- +The content of the link widget is rendered within the `` tag. ! CSS Classes @@ -70,3 +37,5 @@ Link targets default to the URL encoded title of the tiddler. The `href` can be ``` \define tw-wikilink-template() http://tiddlywiki.com/#$uri_encoded$ ``` + +Note that in the browser the `` element generated by the link widget has a JavaScript event handler that navigates directly to the target tiddler, ignoring the `href` attribute. diff --git a/editions/tw5.com/tiddlers/widgets/VideoWidget.tid b/editions/tw5.com/tiddlers/widgets/VideoWidget.tid index aab5eb1e3..17a21e702 100644 --- a/editions/tw5.com/tiddlers/widgets/VideoWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/VideoWidget.tid @@ -1,6 +1,9 @@ title: VideoWidget tags: widget +The video widget is not yet (re)implemented. + +``` Here is a collection of embedded videos. Try opening and closing tiddlers while the videos are playing; they should not be affected. <$video src="32001208" type="vimeo" /> @@ -8,3 +11,4 @@ Here is a collection of embedded videos. Try opening and closing tiddlers while <$video src="wvWHnK2FiCk" type="youtube" /> <$video src="santa_claus_conquers_the_martians_ipod" type="archiveorg" /> +``` \ No newline at end of file