Showing revision 8

Macros

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

Page Redirect
Variable Substitution
RSS Feeds
Deoxy/News
MAGIC
Subpage Index
Search Results
Deoxy/Video
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.


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%%

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

To embed a video index:

 #MAGIC Videx q="DNA"

Include multiple terms:

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


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">