Macros

Embed dynamic lists, variables, and other commands in pages.

Page Redirect
Variable Substitution
RSS Feeds
Deoxy/News
MAGIC
Wiki Subpage Index
Wiki Search Results
Deoxy/Video
Images
Chatter
Import


Page Redirect

Use the following command to automatically redirect viewers from one wiki page to another:

 #REDIRECT NewPageName

The command must start at the first character of the first line of the page. REDIRECT must be in FULL CAPS. When the page containing the command is viewed, the NewPageName will be viewed instead. Redirections are not recursive: only the first redirection will be used. To edit the redirected page, view the redirected page, then click the link in the redirection notice at the top of the page.—From PageRedirect


Variable Substitution

The following variables are available for substitution.

Variable Description Example
@PAGE@ Current page name Help/Macros
@DATE@ Current date 2005-02-14
@TIME@ Current time 10:22
@DATETIME@ Current date and time 2005-02-14 10:22
@ME@ Signature —Username
@SIG@ Dated Signature —Username 2005-02-14 10:22
@PRO@ Forum Profile Shortcut for InterWiki Profile:Username
@YOU@ Whoever is reading the page Username
@RAM@ See /Media Play this page as a RAM playlist
@M3U@ See /Media Play this page as an MP3 playlist

(ME and SIG are not linked to your User/ page. Use MEE and SIGG to link up User/Username.)


RSS Feeds

The following tag includes an RSS feed as a simple linked list.
(Quotes are optional)

<rss url="http://deoxy.org/forum/rssforum.pl">


Deoxy/News

This tag includes a deoxy news feed as a simple linked list.
(Quotes are optional)

<news feed="feedname">


MAGIC

The #MAGIC tag embeds a special list or object in a page. Put the tag where you want the list to appear and make sure that line contains only the MAGIC tag. One MAGIC tag per document is supported except for Deoxy/Video and Chatter, which may co-exist on the same page with a second tag.


Wiki Subpage Index

For example, to embed a menu for all Wiki/ subpages:

 #MAGIC SubpageIndex id=Wiki/

To embed a menu for the current page (non-subpages):

 #MAGIC SubpageIndex id=%%this%%

Wiki Search Results

To search for "wiki" in titles and pages:

 #MAGIC Search q=wiki
Search for "wiki" in page titles:
 #MAGIC Search in=title q=wiki
Search for "wiki" in pages only:
 #MAGIC Search in=page q=wiki


Deoxy/Video

Embed a frame with deoxy video index, search results or image grid.

Search results

Single keyword:

 #MAGIC Videx q=DNA

Multiple terms:

 #MAGIC Videx q="DNA OR biology OR cell"

Use single quotes to contain a query with double quotes:

 #MAGIC Videx q='DNA OR "cell biology" OR RNA'

Index

Embed the video index (videx) default lists.

Recently added videos:

 #MAGIC Videx

Recently watched:

 #MAGIC Videx show=seen

Random:

 #MAGIC Videx show=rand

Images

Our image-based video index (vidimg) can also be embedded.

Recently added videos:

 #MAGIC Vidimg

Recently watched:

 #MAGIC Vidimg show=seen

Random:

 #MAGIC Vidimg show=rand

Extra Display Options

    Line

    Limit the height to a single image with horizontal scroll (example):

     #MAGIC Vidimg line=h
    

    Limit the width to a single image with vertical scroll. The height is fixed at 3 images. The align option described below is useful here:

     #MAGIC Vidimg line=v align=right
    

    Cols

    Limit the width of the embed to 3 or 4 images, both 3 images high, producing either a 3x3 box of 9 images or a 4x3 box of 12 images.

     #MAGIC Vidimg cols=3 align=right
    

    Align

     Left, right, center.
    

Combine

Options can be combined:

 #MAGIC Vidimg line=v show=rand align=right


Chatter

To embed chatter:

 #MAGIC Chatter

Import

Import the named page from a given site. Currently supported sites: wikipedia.
(Quotes are optional)

 <import from="wikipedia" page="Psyche">