= # Macros = '''''Embed dynamic lists, variables, and other commands in pages.''''' <toc> ,, ,, == * Page Redirect == Use the following command to automatically redirect viewers from one wiki page to another: <no>#REDIRECT NewPageName</no> 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 <no>NewPageName</no> 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 UseMod:PageRedirect~~ ---- == * Variable Substitution == The following variables are available for substitution. || '''Variable''' || '''Description''' || '''Example''' || || !@PAGE@ || Current page name || @PAGE@ || || @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 <no>Profile:Username</no>|| || @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 <no>User/Username</no>.)~~ ---- == * RSS Feeds == The following tag includes an RSS feed as a simple linked list.,, ~~(Quotes are optional)~~ <pre><rss url="http://deoxy.org/forum/rssforum.pl"></pre> ---- == * [[Deoxy/News]] == This tag includes a [Local:Deoxy/News deoxy news feed] as a simple linked list.,, ~~(Quotes are optional)~~ <pre><news feed="feedname"></pre> ---- == * 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 Chatter, which may co-exist on the same page with a second tag. ---- <blockquote> === * Subpage Index === For example, to embed a menu for all Wiki/ subpages: #MAGIC <no>SubpageIndex</no> id=Wiki/ To embed a menu for the current page (non-subpages): #MAGIC <no>SubpageIndex</no> 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 ---- === * [[Chatter]] === To embed chatter: #MAGIC Chatter </blockquote> ---- == * Import == Import the named page from a given site. Currently supported sites: wikipedia.,, ~~(Quotes are optional)~~ <import from="wikipedia" page="Psyche">