This box includes basic usage information for this template. When calling the template, this documentation will not appear. Functional template code should be placed outside the dotted box.
| Description | Embed a thumbnail of a website using websnapr.com |
| Requirements | MindTouch 10.0 or later |
| Documentation URL | |
| Discussion URL |
Make sure to place newest version at the top of the table. Update the table regularly to make it easy to track changes and improvements.
| Version | Date | Author | Description |
|---|---|---|---|
| 0.1 | 08-Dec-2010 | SteveB | first version |
List each parameter of the template in order they are expected. For each parameter, state the set of expected types (bool, num, str, list, map, or xml). Specify if a default value is used when the parameter is omitted.
| Name | Type | Default | Description |
| url | str | URI of the website thumbnail. | |
| title | str | same as url | Title for site link to show. |
var url = $0 ?? $uri;
var title = $1 ?? $title ?? url;
if(!#url) {
"Missing URL";
return;
}
<div style="width: 225px;">
<div align="center">
<div style="border: 1px solid black; width: 202px">
web.link(url, web.image('http://images.websnapr.com/?size=s&nocache=42' & { url: url }));
<br/>
</div>
<small>
web.link(url, title);
</small>
</div>
</div>| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by