| Help On Macros | UserPreferences |
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.
| Macro | Description | Example |
| [[TitleSearch]] | search the page titles | FindPage |
| [[FullSearch]] | search the page contents | FindPage |
| [[FullSearch()]] | search for the current title in all pages (like clicking on the page title) | ºÐ·ùºÐ·ù? |
| [[FullSearch('text')]] | search for "text" in all pages | Search for HelpOnMacros:
|
| [[GoTo]] | directly go to the page you enter | FindPage |
| [[PageList(regex)]] | list of pages whose title matches the regex | HelpIndex? |
| 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 | RandomPage? |
| [[RandomPage(#)]] | links to a number of random pages | Two random pages: |
| [[TableOfContents]] | display a local table of contents | see below |
| 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 | 310 pages |
| 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(HelloWorldConsideredHarmful[,heading[,level]])]] | include contents of another page | [goto HelloWorldConsideredHarmful]? |
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:
Python Version 2.2.1 (#1, Aug 5 2002, 11:20:35)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] MoinMoin Version Release 0.10 [Revision 1.129] Number of pages 310 Number of backup versions 973 Installed extension macros AttentionPages, BR, FullSearch, HTML, ISBN, Include, Include2, NewWindow, OrphanedPages, PlayMusic, RandomPage, RecentChanges, TableOfContents, TableOfContents2, UploadedFiles, WantedPages, uploadFileDeprecated Installed extension actions DeletePage, DeleteUploadedFile, LikePages, SpellCheck, UploadFile, titleindex
EditText
of this page
(last modified 2008-11-05 11:00:58)
FindPage
by browsing, searching, or an index
Or try one of these actions:
DeletePage,
DeleteUploadedFile,
LikePages,
SpellCheck,
UploadFile