FrontPage › HelpOnMacros
No older revisions available
1. Macros ¶
Macros allow the insertion of system features into normal wiki pages; the only thing that makes those pages special is that they contain macros. If you edit pages like RecentChanges or SystemInfo, you'll see what that means.
For more information on the possible markup, see HelpOnEditing.
1.2. Navigation ¶
Macro | Description | Example |
[[RecentChanges]] | a list of recently edited pages | RecentChanges |
[[TitleIndex]] | an index of all page titles | TitleIndex |
[[WordIndex]] | an index of all words in page titles | WordIndex |
[[RandomPage]] | a link to a random page | VgaComparison |
[[RandomPage(#)]] | links to a number of random pages | |
[[TableOfContents]] | display a local table of contents | see below |
1.3. System information ¶
Macro | Description | Example |
[[InterWiki]] | a list of all known InterWiki names | InterWiki |
[[SystemInfo]] | info on the wiki, the python interpreter and the host system | SystemInfo |
[[PageCount]] | current page count | 571 pages |
1.4. Others ¶
Macro | Description | Example |
[[Icon(image)]] | display system icons | HelpOnNavigation |
[[UserPreferences]] | display a user preferences dialog | UserPreferences |
[[BR]] | insert a line break | 1st line 2nd line |
[[Include(HelloWorld[,heading[,level]])]] | include contents of another page | HelloWorld |
2. Example Display ¶
We don't show examples for all macros here, because that would make this page quite long. Here is is the replacement text for the [[SystemInfo]] macro:
PHP Version | 4.4.9p2 (Linux ws64-023.cafe24.com 2.6.32-696.18.7.el6.x86_64 #1 SMP Thu Jan 4 17:31:22 UTC 2018 x86_64) |
---|---|
MoniWiki Version | Release 1.2.3 [Revision: 1.1120 ] |
HTTP Server Version | Apache |
Number of Pages | 571 |