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.
Search macros
Macro | Description | Example |
[[TitleSearch]] | search the page titles | See the FindPage |
[[FullSearch]] | search the page contents | See the FindPage |
[[FullSearch()]] | search for the current title in all pages (like clicking on the page title) | See the CategoryCategory page |
[[FullSearch('text')]] | search for "text" in all pages |
Search for FullSearch:
|
[[GoTo]] | directly go to the page you enter | See the FindPage |
[[PageList(regex)]] | list of pages whose title matches the regex | See the HelpIndex |
Navigation
Macro | Description | Example |
[[RecentChanges]] | a list of recently edited pages | See RecentChanges |
[[TitleIndex]] | an index of all page titles | See TitleIndex |
[[WordIndex]] | an index of all words in page titles | See WordIndex |
[[WantedPages]] | list links to non-existent pages | See WantedPages |
[[OrphanedPages]] | list pages no other page links to | See OrphanedPages |
[[AbandonedPages]] | list pages that were not edited for the longest time | See AbandonedPages |
[[RandomPage]] | a link to a random page | --> --> |
| Please include this information in your bug reports!: Python Python 2.7.1: /usr/local/bin/python Linux argon.sabren.com 2.6.18-238.9.1.el5 #1 SMP Tue Apr 12 18:10:13 EDT 2011 x86_64 MoinMoin Release 1.2.1 [Revision 1.184] Tue Feb 14 13:46:21 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/rubys/web/intertwingly.net/moin-1.2.1/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI instance>) |
491 |
492 if config.allow_extended_names: |
493 Page(query).send_page(self, count_hit=1) |
494 else: |
495 from MoinMoin.parser.wiki import Parser |
Page = <class MoinMoin.Page.Page>, query = 'HelpOnMacros', ).send_page undefined, self = <MoinMoin.request.RequestCGI instance>, count_hit undefined |
/home/rubys/web/intertwingly.net/moin-1.2.1/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>, msg='', **keywords={'count_hit': 1}) |
609 else: |
610 # parse the text and send the page content |
611 self.send_page_content(request, Parser, body) |
612 |
613 # check for pending footnotes |
self = <MoinMoin.Page.Page instance>, self.send_page_content = <bound method Page.send_page_content of <MoinMoin.Page.Page instance>>, request = <MoinMoin.request.RequestCGI instance>, Parser = <class MoinMoin.parser.wiki.Parser>, body = '\n[[TableOfContents]]\n\n== Macros ==\nMacros allow ... the {{{[[SystemInfo]]}}} macro:\n [[SystemInfo]]\n' |
/home/rubys/web/intertwingly.net/moin-1.2.1/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>, Parser=<class MoinMoin.parser.wiki.Parser>, body='\n[[TableOfContents]]\n\n== Macros ==\nMacros allow ... the {{{[[SystemInfo]]}}} macro:\n [[SystemInfo]]\n', needsupdate=0) |
709 |
710 try: |
711 exec code |
712 except 'CacheNeedsUpdate': # if something goes wrong, try without caching |
713 self.send_page_content(request, Parser, body, needsupdate=1) |
code = <code object <module> at 0x720f030, file "HelpOnMacros", line 2> |
/web/script/rubys/intertwingly.net/moin-1.2.1/wiki/cgi-bin/HelpOnMacros in |
/home/rubys/web/intertwingly.net/moin-1.2.1/MoinMoin/formatter/base.py in macro(self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name='RandomPage', args=None) |
160 def macro(self, macro_obj, name, args): |
161 # call the macro |
162 return macro_obj.execute(name, args) |
163 |
164 def processor(self, processor_name, lines): |
macro_obj = <MoinMoin.wikimacro.Macro instance>, macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>, name = 'RandomPage', args = None |
/home/rubys/web/intertwingly.net/moin-1.2.1/MoinMoin/wikimacro.py in execute(self=<MoinMoin.wikimacro.Macro instance>, macro_name='RandomPage', args=None) |
110 return self._m_lang(macro_name, args) |
111 |
112 raise ImportError("Cannot load macro %s" % macro_name) |
113 |
114 def _m_lang(self, lang_name, text): |
ImportError undefined, macro_name = 'RandomPage' |