From Neqwiki, the nonlinear equations encyclopedia


Help On: Editing | Formatting | Emoticons | Headers | Linking | Macros | Processing instructions | Tables | Regular expressions
[goto Special:Help Menu]

Help on macros

Introduction

OpenWiki 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 macros that are supported by OpenWiki are described below.

Contents

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

Contents

Table of contents can be aligned to the right.
<TableOfContentsRight>

Contents

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sollicitudin hendrerit ipsum, at pharetra augue laoreet vel. Sed imperdiet est elit. Duis turpis est, dignissim semper fringilla ac, varius eget elit. Morbi a eros lorem. Quisque venenatis orci in tellus aliquam facilisis. Integer eget quam sit amet turpis faucibus porta ac et ante. Suspendisse venenatis massa quis orci molestie vitae egestas turpis euismod. Suspendisse at leo dolor. Integer in ligula mauris, nec dignissim felis. Proin id dui at arcu lobortis feugiat. Duis eget varius nibh. Pellentesque vel lorem eget leo sagittis luctus vel semper diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse venenatis felis vitae elit pulvinar ac dapibus neque mollis. Ut adipiscing imperdiet tortor, vel hendrerit leo rhoncus non. Curabitur ac odio tortor, in tristique nibh.

In non massa ac dui porttitor accumsan vitae tincidunt augue. Sed dapibus facilisis lobortis. Cras tincidunt purus eget nibh dapibus suscipit. Donec quis justo vel lectus hendrerit rutrum. Donec at nibh non urna scelerisque bibendum at in dolor. Nulla tempus, felis in ultrices semper, turpis neque suscipit odio, ut vulputate magna eros molestie sapien. Fusce non quam metus. Praesent aliquam placerat ultricies. Nam et ante ipsum, in dapibus sapien. Morbi porttitor quam non ante elementum tristique. Mauris justo libero, facilisis quis mattis ac, commodo nec arcu. Nunc placerat, mi pretium pulvinar tempor, mauris mi mollis turpis, id molestie turpis nulla eget nisi. Fusce id metus eget nulla feugiat commodo. Vivamus ac turpis aliquam dui molestie facilisis sit amet id sapien. Sed in elit eget velit mollis porta. Donec euismod tristique convallis.

Phasellus accumsan vestibulum erat nec vestibulum. Fusce sed neque risus. Maecenas felis nisl, interdum in viverra ultrices, egestas non justo. Duis in commodo augue. Pellentesque laoreet euismod euismod. Quisque ut massa arcu, convallis lacinia urna. Morbi rutrum arcu id sapien facilisis ut commodo dolor laoreet. Suspendisse feugiat pharetra nisi eu semper. Suspendisse potenti. Donec vel velit vitae libero facilisis auctor vel quis magna. Nunc eget faucibus erat. Cras eu turpis sed tellus pretium porta ac nec mauris. Ut cursus placerat leo a tristique. Phasellus faucibus vehicula nisi, ac feugiat nunc scelerisque sed.

Line Break

By default OpenWiki ignores linebreaks. Actually it's a feature of all web browsers which OpenWiki 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 macros 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 Special: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 Special: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)/>

The example below will show a maximum of 10 recently changed pages.
<RecentChanges(0,10)/>

For more information about recently changed pages and how revisions work see HelpOnRevisions.

Random Pages

To show a random page link use the macro <RandomPage>. Below a random page link is shown:
<RandomPage>
Equations By Order

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 OpenWiki. 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
Drones Under 2kg May Be Set Free Under Forthcoming FAA Rules
Researchers Claim Success In Removing HIV From Living Cells
Apple Is Said To Be Working On an iPhone Even It Can't Hack
Windows 10 Now Showing Full Screen Ads On Lock Screen
New Fast Radio Burst Discovery Finds 'Missing Matter' In the Universe
Army Researchers Patent Self-destructing Bullet Designed To Save Lives
President Obama Nominates New Librarian of Congress Who Supports Open Access
Microsoft To Acquire Xamarin
France Seeking $1.76 Billion In Back Taxes From Google
Linux Mint Hack Is an Indicator of a Larger Problem
Nissan Leaf HVAC-Hack Vulnerability Disclosed
Boston Dynamics' Next-Gen ATLAS Sheds the Tether
Japan Considers Treating Bitcoin As Conventional Currency
E-book Museum At the Library of Congress?
FTC Forces Asus To Improve Router Security
Search Slashdot:

last update: February 25, 2016 12:13
| refresh | refresh all

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

For more information about RSS see RDFSiteSummary.

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 AllTheNews and AllTheNews/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 Special:User Preferences.

Inter Wiki

To show the list of known InterWikis use the macro <InterWiki>.
<InterWiki>
Dictionary
http://www.dictionary.com/cgi-bin/dict.pl?term=
DOI
http://dx.doi.org/
EqWorld
http://eqworld.ipmnet.ru/
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=
MathWorld
http://mathworld.wolfram.com/
OpenWiki
http://openwiki.com/?
RFC
http://www.faqs.org/rfcs/rfc$1.html
Scholarpedia
http://www.scholarpedia.org/article/Special:Search?search=
Wikipedia
http://en.wikipedia.org/wiki/Special:Search?search=

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.19597
MSXML Version:6
ADO Version:6.1
Nr Of Pages:88
Nr Of Revisions:275

<PageCount>
This wiki contains 88 wiki pages.

<Date> <Time> <DateTime>
The date on this server is 7/5/2022

The time on this server is 15:29

The datetime on this server is 7/5/2022 15:29

Personal tools