SnipSnap Macro Tutorial
warning macro
Description
This macro prints a warning note to the user.
Parameter
| Parameter | Description |
|---|
| title | (optional) the title of the warning. |
| icon | (optional) if "false", dont display the icon. |
Example
Syntax
{warning:title=Warning}
Insert warning message here!
{warning}
info macro
Description
This macro prints an informational note to the user.
Parameter
| Parameter | Description |
|---|
| title | (optional) the title of the information box. |
| icon | (optional) if "false", dont display the icon. |
Example
Syntax
{info:title=Useful Information}
This macro is useful for including helpful information in your snipsnap pages
{info}
note macro
Description
This macro prints a simple note to the user.
Parameter
| Parameter | Description |
|---|
| title | (optional) the title of the note. |
| icon | (optional) if "false", dont display the icon. |
Example
Syntax
{note:title=Be Careful}
The body of the note here.. /space/snipsnap-portlet-1/warning.gif
{note}
tip macro
Description
This macro prints a helpful tip for the user.
Parameter
| Parameter | Description |
|---|
| title | (optional) the title of the tip. |
| icon | (optional) if "false", dont display the icon. |
Example
Syntax
{tip:title=Handy Hint}
Join the SnipSnap Mailing-List!
{tip}
color macro
Description
This macro get text with specific color.
Parameter
| Parameter | Description |
|---|
| 1 | (optional) color as name or in hexa decimal like (#cc0000 or red) |
Example
This is a red sentinece.
Syntax
{color:#cc0000}This is a red sentinece.{color}
quote macro
Description
This macro display the text as citation.
Parameter
no parameter
Example
here is quoteable
content to be quoted
Syntax
{quote}
here is quoteable
content to be quoted
{quote}
marker macro
Description
This macro marks text with specific color like a text marker.
Parameter
| Parameter | Description |
|---|
| 1 | (optional) color as name or in hexa decimal like (#cc0000 or red) |
Example
This
Text is marked like a text marker.
Syntax
This {marker:#faf108}Text is marked like a text{marker} marker.
big macro
Description
This macro represents text with larger letters.
Parameter
no parameter
Example
This is a
little bigger text as the normal.
Syntax
This is a {big}little bigger text{big} as the normal.
popup macro
Description
This macro links to a page or URL, popping it up into a new window.
Parameter
| Parameter | Description |
|---|
| 1/href | The name of the page, or the URL. |
| width | (optional) The width of the new window. |
| height | (optional) The height of the new window. |
| scrollbars | (optional) If false, the scrollbar will be hidden. |
| menubar | (optional) If false, the menubar will be hidden. |
| location | (optional) If false, the location bar will be hidden. |
| statusbar | (optional) If false, the status bar will be hidden. |
| resizable | (optional) If false, the window will not be resizable. |
| target | (optional) The title of the target window. Use this to open multiple links in the same popup window. |
| tip | (optional) The tip to display while the mouse is hovering over the link. |
| icon | (optional) If false, the link will not have an 'open new window' icon. |
Example
Das ist ein Link zu
google.de
im neuen Fenster. Und das ist ein Link zur Installation von
SnipSnap Software
im neuen Fenster.
Syntax
Das ist ein Link zu {popup:http://www.google.de|width=600}google.de{popup} im neuen Fenster.
Und das ist ein Link zur Installation von {popup:installation/Install SnipSnap Software|width=850|height=800}SnipSnap Software{popup} im neuen Fenster.
redirect macro
Description
This macro redirect to an url or a snip.
Parameter
| Parameter | Description |
|---|
| href | snip page or url |
| timeout | (optional) timeout in seconds |
Example
Got to
start page.
Syntax
{redirect:href=mainpage|timeout=3}
thumbnail macro
Description
Display a thumbnails of an images that's attached to a page.
Parameter
| Parameter | Description |
|---|
| 1/image | Specify the image that should be display as thumbnail. |
| width | (optional) Specify the width in pixel of the thumbnail. |
| height | (optional) Specify the height in pixel of the thumbnail. |
| border | (optional) Display a border around the thumbnail (true|false). |
Example
Syntax
{thumbnail:image=ibmx401.jpg|width=100|height=68|border=false}