Help us fill in this page with the macros that you use.
Macros allow the insertion of system features or functionality into normal wiki pages. There are numerous other macros listed on the MoinMoin Wiki HelpOnMacros page1, but not all of them work here. A number of them look like CPU hogs too. We might try to test out and selectively transfer the useful and light-load ones to this page.
Most (all?) of the following are case-sensitive, so [[SuperMacro]] is not the same as [[supermacro]]. (Are they really case sensitive nowadays? If they aren't, delete this line.)
Info and Functionality Macros
-
[[Address("valid_address")]] — echoes the text valid_address, creates a Map button at the top of the page which opens a Google map to valid_address, and adds it to the Maps of nearby locations. Also outputs a link to the nearest bus stops, courtesy of RGRTA.
-
[[Address("valid_address","description")]] — instead of valid_address, it will echo description, but will otherwise work the same as above.
-
[[Address("valid_address","latitude.decimal","longitude.decimal"]] — overrides the Google geocoder and uses the latitude and longitude you provide instead. For example, [[Address("1 Garbanzo Place, Not Yet GeocodedVille, NY", "43.1234", "-74.4321")]].
-
The Address macro is nonfunctional as of 2013/09/10 due to Google no longer supporting the old API version it uses: https://github.com/rtucker/sycamore/issues/16.
-
[[Anchor(anchorname)]] — defines an anchor. Use [#anchorname Link Text] to jump to said anchor. Note that everything is case sensitive and that the anchor is defined with double brackets [[]] but called with single [] brackets.
-
[[Comments]] — comments box that just says "Comments"
-
[[Comments(Leave your comments here)]] — makes a comments box, but with text other than "Comments", like at the bottom of this page.
-
[[Flickr(image id, thumbnail, noborder, left/right, medium, "caption")]] — like Image, but for Flickr. image id is the last big number in the URL.
-
[[FootNote(This is the footnote text)]] — creates a Footnote 2
-
[[FootNote]] — lists the page's footnotes (footnotes appear at the bottom of the page if [[FootNote]] isn't used)
-
[[heart]] — creates a ♥
-
[[Image(image_name.jpg, thumbnail, noborder, left/right, "Caption including ["Wiki" links]")]] — see Help with Images
-
[[Include(pagename)]] — Includes the contents of page pagename into the current page.3 People have been using the following, as well:
-
[[Include(Stub)]] to mark the page as a Stub with a link to edit the page.
-
[[Include(NPOV)]] to mark the page as possibly containing biased content.
-
[[Include(Troll)]] to mark the page as possibly containing trolling.
-
[[IncludePages(pattern,level,sort=order,items=limit)]] — Includes the contents of multiple pages where the name matches pattern, which is a regular expression. Each page is included with the page name and a link to edit it. Level is a number between 1 and 5, inclusive, to define the formatting of the page titles as headers 1 through 5. Sort can be set equal to either ascending or descending. Items specifies the limit, or how many pages may be included. Generally this is set to 1.4
-
[[LinksHere]] provides a list of pages that link to the current page
-
[[LinksHere(pagename)]] provides a list of pages that link to pagename
-
[[LinksHere(pagename1,pagename2,...)]] provides a list of pages that link to pagename1 AND pagename2 AND ...
-
[[LinksHere(or,pagename1,pagename2,...)]] provides a list of pages that link to pagename1 OR pagename2 OR ...
-
[[MailTo(somebody AT yahoo DOT com)]] — obscures an email address (sort of) from people who aren't logged in (like those harvesting email addresses for spam), looks like <somebody AT yahoo DOT com> to you. See MoinMoin's page on MailTo.
-
[[PageCount]] How many pages are in the wiki? 16990; that's how many.
-
[[paypal]] — "Make a Donation" paypal button
-
[[RandomPage(n)]] — where n is a number of links to randomly selected wiki pages
-
[[RandomQuote(pagename)]] — also works for random images. The page that this references should just be a list of whatever you want to randomly select. See Random Thumbnails for an example.
-
[[Stats(Username)]]
-
[[stop]] — creates a box to link it to a "/Talk" page. Used when there is a big dispute among users on the content of a page.
-
[[SystemInfo]] is disabled.
-
[[TableOfContents]] creates a table of contents based on the = title = headers on the page. It indents based on the number of equal signs.
Style and Formatting "Macros"
-
[[BR]] — force a hard return (but trouble when formatting near images and thumbnails)
-
--> text <-- — Centering
-
[[nbsp]] — adds a single blank space.
-
--X text X-- — Strikethrough previously accomplished with [[s(begin)]] and [[s(end)]]
See Also
-
Help On Macros from MoinMoin!
-
Wiki Sand Box to play with your new-found macro-y goodness
-
Tags Cheat-Sheet for more general tags
Leave your comments here
Note: You must be logged in to add comments
- 1It should be noted that moinmoin macros use << and >> and RocWiki macros use [[ and ]] .
- 2This is the footnote text
- 3The Restaurants page is a great example of the Include macro. More documentation for this macro can be found on the MoinMoin wiki, from whence RocWiki is derived.
- 4See Front Page for an example of IncludePages at work.