Changes between Version 113 and Version 114 of MacroBazaar
- Timestamp:
- Aug 9, 2005, 7:40:30 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MacroBazaar
v113 v114 20 20 == Examples == 21 21 22 === HelloWorld ===22 === !HelloWorld === 23 23 A simple example macro. Distributed with Trac. 24 [[BR]]''Download:'' source:trunk/ trac/wikimacros/HelloWorld.py24 [[BR]]''Download:'' source:trunk/wiki-macros/HelloWorld.py 25 25 [[BR]]''By:'' TracTeam -- ''Ver:'' >0.5.2 26 26 … … 41 41 [[BR]]''By:'' lhl -- ''Ver:'' 0.7.1 42 42 43 Replacement that also handles the WikFilemacro below. Docs are inside the module @ the top.43 Replacement that also handles the [wiki:MacroBazaar#WikFile WikiFile] macro below. Docs are inside the module @ the top. 44 44 45 45 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Include.2.py 46 46 [[BR]]''By:'' csawyer@yumaed.org -- ''Ver:'' 0.8 47 47 48 === WikiInclude ===48 === !WikiInclude === 49 49 Inserts the contents of another wiki page. It expands arguments in the page in the form {{N}}. 50 50 … … 59 59 [[BR]]''By:'' Vegard Eriksen zyp at jvnv dot net 60 60 61 === WikiFile ===61 === !WikiFile === 62 62 63 63 Inserts the output of an URL/file as wiki file. The file can be written … … 90 90 ''By:'' Toni Brkic toni.brkic at switchcore.com -- ''Required ver'' patch for #801 must be implemented 91 91 92 === MimeInclude ===92 === !MimeInclude === 93 93 Inserts the output of an external URL, with an optional MIMEtype argument for rendering mode and colorization. See the examples in code docstring. Enjoy! 94 94 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/MimeInclude.py … … 104 104 == Site Navigation == 105 105 106 === BackLinks ===106 === !BackLinks === 107 107 First stab at a macro that displays all wiki pages linking to a specified page name. 108 108 … … 145 145 ''Question:'' Is there a chance to integrate the macro in the wiki menu like Title Index? Would be very appretiated. 146 146 147 === SubWiki ===147 === !SubWiki === 148 148 149 149 Derived from TitleIndex. Returns a list of sub-wiki entries. A sub-wiki page is a page that is is deeper in the hierarchy than the current page. e.g. if the current page is People, this will return a list of all wiki entries that start with "People/" … … 164 164 165 165 166 === ParentWiki ===166 === !ParentWiki === 167 167 168 168 Inserts a link to the "parent" wiki entry. This only applies to wikis that have a "/" in their name indicating hierarchy. e.g. an entry named Java/Introduction will have a parent of Java. All other wiki entries have a parent of WikiStart. … … 172 172 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> 173 173 174 === RelLink ===174 === !RelLink === 175 175 Creates a link relative to the current page. 176 176 … … 181 181 [[BR]]''By:'' Thomas Richter tr+tracweb@ariva.de 182 182 183 === ShowPath ===183 === !ShowPath === 184 184 185 185 Show the path to the specified wiki or the current wiki if none is specified. This is similar to the directory names at the top of the TracBrowser. This applies mainly to hierarchical wiki entries. e.g. the path to a {{{Book/Chapter/Section/Subsection}}} would be {{{WikiStart/Book/Chapter/Section/Subsection}}} (all but the current would be linked). … … 203 203 [[BR]]''By:'' Bernhard Haumacher <haui at haumacher.de> 204 204 205 === TracNav ===205 === !TracNav === 206 206 {{{ 207 207 #!html … … 285 285 === Timestamp === 286 286 Inserts current date and time. Distributed with Trac. 287 [[BR]]''Download:'' source:trunk/ trac/wikimacros/Timestamp.py287 [[BR]]''Download:'' source:trunk/wiki-macros/Timestamp.py 288 288 [[BR]]''By:'' TracTeam -- ''Ver:'' >0.5.2 289 289 290 === DateOffset ===290 === !DateOffset === 291 291 292 292 Returns the date referred to as follows: … … 309 309 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> 310 310 311 === LastModified ===311 === !LastModified === 312 312 313 313 Shows the last modification date of the specified page, or the page the macro appears in if not specified. An optional argument, {{{ delta }}}, can be given to show the time elapsed since the last modification. The output is placed in span with a title that gives the exact modification date and the author of the change. See [http://chimp.acm.uiuc.edu/cgi-bin/trac.cgi/wiki/CustomMacros examples] or [http://severinghaus.org/projects/bfgff/LastModified.py download] it! … … 326 326 327 327 328 === WikiCalendar ===328 === !WikiCalendar === 329 329 330 330 Renders a calendar of links to date-based wiki pages. Its primary use is for maintaining a calendar of meeting minutes, but it can be used in any situation where the wiki page name is based on the date. It is designed to work well with the [wiki:MacroBazaar#Blog Blog] macro, so if a previous month is selected from the Blog, the calendar will display the selected month. … … 398 398 [[BR]]''Ver.'' >= 0.7.1 399 399 400 === UserChanges ===400 === !UserChanges === 401 401 Trivial change of the RecentChanges macro that only displays the recently changed pages for a specified user. 402 402 Usage: … … 410 410 [[BR]]''By:'' David Mohr <datrac@mcbf.net> -- ''Ver.'' >= 0.7.1 411 411 412 === TracPoll ===412 === !TracPoll === 413 413 414 414 This macro adds ''polls'' to Trac. Any number of polls can be added to a page and polls are unique to each project. … … 425 425 [[BR]]''By:'' Alec Thomas <trac-form@swapoff.org> -- ''Ver.'' >= 0.7.1 426 426 427 === AddComment ===427 === !AddComment === 428 428 429 429 Adds a textarea to TracWiki pages allowing for quick ''comments'' to be added in a standard format. … … 435 435 [[BR]]''Version:'' >= 0.8 and >= [1688] 436 436 437 === SvnFiles ===437 === !SvnFiles === 438 438 439 439 This macro autogenerates a list of clickable file links referring to files in a given directory of the repository whose names match a given regular expression. We needed this for a page giving an overall view of project progress for a project broken up into a shallow hierarchy, combined with ReTickets (below) it autogenerates an overview wiki page. … … 453 453 ''By:'' Simon Stapleton <simon@tufty.co.uk> 454 454 455 === ReTickets ===455 === !ReTickets === 456 456 457 457 This macro autogenerates a list of clickable ticket links (link number and person assigned) referring to tickets whose summaries match a given regular expression. We needed this for a page giving an overall view of project progress for a project broken up into a shallow hierarchy, combined with SvnFiles (above) it autogenerates an overview wiki page. … … 476 476 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> 477 477 478 === TracSearch ===478 === !TracSearch === 479 479 Builds a link to search for a supplied argument in any or all of the wiki, changesets, and tickets. 480 480 … … 483 483 [[BR]]''By:'' Andrew Durdin <adurdin at gmail.com> 484 484 485 === Blog ===485 === !Blog === 486 486 A simple blog macro which renders matched wiki pages on one page. Only one month's wiki pages are shown at once. 487 487 … … 516 516 [[BR]]Version: >=0.8 517 517 518 === FootNote ===518 === !FootNote === 519 519 520 520 Automatically collates and generates foot-notes. … … 568 568 [[BR]]''Version'': >= [1688] 569 569 570 === TicketBox ===570 === !TicketBox === 571 571 572 572 Display list of ticket numbers in a box on the right side of the page.