This library contains functions for using Digg.com. 関連リンク: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2007/06/digg
Functions:
- digg.news
- digg.this
digg.news(max : num, width : num, height : num, border : bool, theme : str) : xml
Embed the Digg News widget.
Parameters:
| Name | Type | Description |
max
| num
| Optional. Max items to display (default: 10) |
width
| num
| Optional. Widget width (default: 300) |
height
| num
| Optional. Widget height (default: 350) |
border
| bool
| Optional. Show border (default: true) |
theme
| str
| Optional. Widget color theme (default: "digg-widget-theme1") |
Remarks: Refer here for more information about the Digg News widget.
Samples:
| Output |
| To embed the Digg News widget using the defaults: {{ digg.news() }} | |  |
| To embed the Digg News widget using the defaults, except for the theme "digg-widget-theme4":
{{ digg.news{ theme: "digg-widget-theme4"} }} | |
|
digg.this(uri : uri, compact : bool, bgcolor : str) : xml
Embed the 'Digg It' badge.
Parameters:
| Name | Type | Description |
uri
| uri
| Optional. URI to digg (default: current page) |
compact
| bool
| Optional. Use compact visual style for button (default: false) |
bgcolor
| str
| Optional. CSS style for background color (default: white) |
Samples:
| Output |
| To embed the "Digg It" badge using the defaults: {{ digg.this() }} | |
|
| To embed the "Digg It" badge using the defaults, except for a green background color: {{ digg.this{ bgcolor: "#0f0" } }} | |
|