OpenWiki

Help On Macros



Edit this page (last edited July 8, 2010)
Open Wiki | Sand Box | Create Page | User Preferences | Recent Changes | Title Index | Random Page | Find Page | Help
» Open Wiki/Extensions/Prettier Links » Sand Box » Open Wiki/Suggestions » Help On Macros

Help On: For Beginners | Editing | Formatting | Emoticons | Headers | Linking | Macros | Processing Instructions | Tables | Templates


[goto Help Menu]

Introduction

Open Wiki recognizes a few macro names. A macro is recognized as such if its name appears between a pair of <...>'s characters (<.../> is also accepted).
E.g. <TableOfContents> and <TableOfContents /> are macro's.

Some macro's accept one or more parameters. Parameters are given directly following the macroname and are enclosed between a pair of (...)'s characters. Mulitple parameters are separated by comma's.
E.g. <FullSearch("^Help")>, <RecentChanges(10,30)>.

All known macro's that are supported by Open Wiki are described below.

Table Of Contents

To show the table of contents of a page use the macro <TableOfContents>. This table is created by looking at all the headers used within a page.
<TableOfContents>
  • Introduction
  • Table Of Contents
  • Line Break
  • Including Pages
  • Anchors
  • Searches
  • Indexes
  • Random Pages
  • Syndication
  • Aggregation
  • User Preferences
  • Inter Wiki
  • System Info
  • Line Break

    By default Open Wiki ignores linebreaks. Actually it's a feature of all web browsers which Open Wiki simply inherits. If you want a line directly followed by a new line then you can use the macro <br>. Below you see an example which shows the difference:
    this is line one.
    is this line two?
    
    this is line one. <br>
    is this line two?
    
    this is line one. is this line two?

    this is line one.
    is this line two?

    Including Pages

    One of the more powerful macro's is the <Include> macro. Using this macro you can include another wiki page into the current wiki page. This is great if for example you want to use a common menu structure for a subset of your wiki. See for example MyProject?.

    Pass the name of the Wiki Page you want to include, e.g.:
    <Include(MyProjectMenu)>
    
    <Include(MyProjectMenu?)>

    Anchors

    You can put invisible anchors in your page by using the <Anchor> macro. Pass the name of the anchor as a parameter, e.g.:
     
    <Anchor(MyAnchor)> This piece of text is anchored.
    
    This piece of text is anchored.

    Searches

    To show an input editbox that will do a search through all the titles of the pages in this wiki use the macro <TitleSearch>. Below an example is shown:
    Title search: 
    <TitleSearch>
    
    Title search:

    The <TitleSearch> macro also accepts a parameter. Instead of showing an editbox it will then show a list of page titles that match the pattern of the parameter. E.g.:
    List of all the help page (assuming all these start with the letters "Help"):
    <TitleSearch(^Help)>
    
    List of all the help page (assuming all these start with the letters "Help"):

    To show an input editbox that will do a full text search through all the pages in this wiki use the macro <FullSearch>. Below an example is shown:
    Full text search: 
    <FullSearch>
    
    Full text search:

    The <FullSearch> macro also accepts a parameter. Instead of showing an editbox it will then do a full text search through all the pages and show a list of the pages that match the pattern of the parameter. E.g.:
    List all pages containing the word "Text Search":
    <FullSearch("Text Search")>
    
    List all pages containing the word "Text Search":

    To show an input editbox that will allow you to go to a page or create a new page by entering it's name in the editbox use the macro <GoTo>.
    <GoTo>
    

    Indexes

    To view a list of all the pages in this wiki use the macro <TitleIndex>. See Title Index for an example.

    To view a list of all the words used in the titles of wiki pages use the macro <WordIndex>. See Word Index for an example.

    To view a list of recently changed pages use the macro <RecentChanges>. When no parameters are provided all pages changed in the last 30 days will be shown. See for example the Recent Changes page.

    One or two paramterers are accepted. The first parameter is the maximum number of days that should be shown in the change list. The second parameter is the maximum number of page titles that should be shown in the change list. When a parameter is not a number or less or equal than zero, then a default value is taken.

    The example below will show all recently changed pages in the last 24 hours.
    <RecentChanges(1)/>
    
     
    August 1, 2010
    05:53[diff] [2 changesThe Warhost Of Prince Yiren new98.244.169.xxx
    05:53 The Warhost Of Prince Dawnbreaker new98.244.169.xxx
    05:52[diff] [3 changesWake Of The Storm 98.244.169.xxx
    04:27 Septic tanks new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    04:15 Septic tank murah berkualitas (0888 0370 8872 - www.bio7.co.tv) new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    04:04 Bioseven septictank (www.bio7.co.tv) new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    04:03 Bioseptic tank is Bioseven (www.bio7.co.tv) new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    04:01 Septic tank tanpa resapan (www.bio7.co.tv) new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    03:57 Septic tank Biotech & Biofilter system (www.bio7.co.tv) new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    03:54 Bio septic tank Bio Seven (www.bio7.co.tv) new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    03:52 Septic tank ramah lingkungan new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
    03:51 Bio Seven septic tank new125.164.158.xxx
     "Our BioSeven septic tank work with biotech & biofilter system, is provides little treatment and discharges tons* of solids to your soil absorption field over the life of the system.
     
    July 31, 2010
    19:59 Nashua Porsche Dealer new200.124.240.xxx
    16:50[diff] [4 changesacai berry 122.177.40.xxx
    15:31[diff] [52 changesCreate Page 195.240.109.xxx
    13:37 Save Wealth By Buying Cheap Used Cars new122.174.111.xxx
    12:40 Drinking Water And Septic Tank Water Pipelines To Be Separated For Avoiding Pollution In Water new173.208.95.xxx
    12:07 Mug Printer For Business new173.208.40.xxx

    The example below will show a maximum of 10 recently changed pages.
    <RecentChanges(0,10)/>
    
    Aug 105:53 - The Warhost Of Prince Yiren new
     05:53 - The Warhost Of Prince Dawnbreaker new
     05:52 - Wake Of The Storm 
     04:27 - Septic tanks new
     04:15 - Septic tank murah berkualitas (0888 0370 8872 - www.bio7.co.tv) new
     04:04 - Bioseven septictank (www.bio7.co.tv) new
     04:03 - Bioseptic tank is Bioseven (www.bio7.co.tv) new
     04:01 - Septic tank tanpa resapan (www.bio7.co.tv) new
     03:57 - Septic tank Biotech & Biofilter system (www.bio7.co.tv) new
     03:54 - Bio septic tank Bio Seven (www.bio7.co.tv) new

    For more information about recently changed pages and how revisions work see Help On Revisions.

    Random Pages

    To show a random page link use the macro <RandomPage>. Below a random page link is shown:
    <RandomPage>
    
    People Can Enhance The Home With Ottoman

    To show a number of random page links, pass the number as a parameter to the macro. For example, below 5 random page links are shown by using the macro <RandomPage(5)>:
    <RandomPage(5)>
    

    Syndication

    News related sites often offer a so-called RSS feed. This feed is available through a URL. For example, the latest news headlines from Slashdot are retrievable through the URL http://slashdot.org/slashdot.rdf.

    It's possible to syndicate these news headlines into Open Wiki. To do this use the macro <Syndicate>. This macro needs at least one parameter, the second parameter is optional. The first parameter must be the URL to the RSS feed enclosed by quotes. The second parameter must be a number (in minutes) which tells how often to refresh the news, where the default is 120 minutes or 2 hours. Retrieving the news headlines is a costly operation so you don't want to set the refresh rate too low.

    Example:
    <Syndicate("http://slashdot.org/slashdot.rdf", 120)> 
    
    News for nerds, stuff that matters
    First GNOME Census Results
    Alternatives To Paypal's Virtual Credit Card Service?
    Reading Terrorists' Minds About Imminent Attack
    China Pushes Real Name System For Online Games
    'I've Fallen and I Can't Get Up!' v2.0
    Microsoft Tech Can Deblur Images Automatically
    Antarctic Experiment Finds Puzzling Distribution of Cosmic Rays
    Broadway Musicians Replaced With Synthesizers
    Budapest Panorama, at 70GP, Now the World's Largest Digital Photo
    Mars Rover Spirit May Never Wake From Deep Sleep
    Silent, Easily Made Android Rootkit Released At DefCon
    Average Cellphone Data Usage Is 145.8 MB Per Month
    TI Calculator DRM Defeated
    Who Is Downloading the Torrented Facebook Files?
    Fossil Fuel Subsidies Dwarf Support For Renewables
    Search Slashdot:

    last update: August 1, 2010 12:02
    | refresh | refresh all

    Use of this macro can be disabled by the system administrator.

    For more information about RSS see RDFSite Summary.

    Aggregation

    Just as you can syndicate RSS feeds into a wiki page, it's possible to aggregate multiple RSS feeds into one list. Define all the RSS feeds you want to aggregate using the Syndicate macro, put all these definitions in one wiki page, and then use the macro Aggregate in any wiki page to aggregate the RSS feeds defined in the wiki page with the Syndicate macro's.

    This macro needs one parameter, which must be the name of the wiki page containing the Syndicate macro's.

    Example:
    <Aggregate("AllTheNews")> 
    

    To view the results of this example, see All The News and All The News/Aggregation.

    Use of this macro can be disabled by the system administrator.

    User Preferences

    To show the user preferences use the macro <UserPreferences>. See for example the page User Preferences.

    Inter Wiki

    To show the list of known Inter Wikis use the macro <InterWiki>. Interwikis are created by manually inserting them into the interwiki table in the database.
    <InterWiki>
    
  • Acronym
  •   
    http://www.acronymfinder.com/af-query.asp?String=exact&amp;Acronym=
  • Amazon
  •   
    http://www.amazon.com/exec/obidos/ASIN/
  • Artist
  •   
    http://ubl.com/ubl_search.asp?ubl_search=Artist&amp;text=
  • C2
  •   
    http://c2.com/cgi/wiki?
  • Dictionary
  •   
    http://www.dictionary.com/cgi-bin/dict.pl?term=
  • Everything
  •   
    http://www.everything2.org/?node=
  • Google
  •   
    http://www.google.com/search?q=
  • GoogleGroups
  •   
    http://groups.google.com/groups?q=
  • Groups
  •   
    http://groups.google.com/groups?oi=djq&amp;as_q=
  • HtmlHelp
  •   
    http://www.htmlhelp.com/cgi-bin/search.cgi?q=
  • IPAddress
  •   
    http://www.dnsstuff.com/tools/ipall.ch?ip=
  • MSKB
  •   
    http://support.microsoft.com/default.aspx?scid=kb;en-us;
  • OpenWiki
  •   
    http://openwiki.com/?
  • RFC
  •   
    http://www.faqs.org/rfcs/rfc$1.html
  • TWiki.Codev
  •   
    http://twiki.org/cgi-bin/view/Codev/
  • WhatIs
  •   
    http://whatis.techtarget.com/wsearchResults/1,290214,sid9,00.html?query=
  • Whois
  •   
    http://www.networksolutions.com/cgi-bin/whois/whois?STRING=
  • YouTube
  •   
    <object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/$1&amp;rel=0&amp;color1=0x5d1719&amp;color2=0xcd311b&amp;border=1&amp;fs=0"></param><param name="allowFullScreen" value="false"></param><embed src="http://www.youtube.com/v/$1&amp;rel=0&amp;color1=0x5d1719&amp;color2=0xcd311b&amp;border=1&amp;fs=0" type="application/x-shockwave-flash" width="425" height="355" allowfullscreen="false"></embed></object>

    System Info

    Below information about this system is shown:
    <SystemInfo>
    
    OpenWiki Version:0.78 rev.1.2
    XML Schema Version:0.91
    Namespace:http://openwiki.com/2001/OW/Wiki
    VBScript Version:5.8.23000
    ADO Version:2.8
    Nr Of Pages:3972
    Nr Of Revisions:4317

    <PageCount>
    
    This wiki contains 3972 Wiki Pages.

    <Date> <Time> <DateTime>
    
    The date on this server is August 1, 2010

    The time on this server is 12:02

    The datetime on this server is August 1, 2010 12:02



    Open Wiki | Sand Box | Create Page | User Preferences | Recent Changes | Title Index | Random Page | Find Page | Help
    Edit this page | View other revisions
    Print this page | View XML
    Find page by browsing, searching or an index
    Edited July 8, 2010 (diff)




    Valid XHTML 1.0!Valid CSS!

    Powered by OpenWiki.com