Changes between Version 183 and Version 184 of MacroBazaar
- Timestamp:
- Oct 11, 2006, 3:19:54 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MacroBazaar
v183 v184 45 45 Replacement that also handles the [wiki:MacroBazaar#WikiFile WikiFile] macro below. Docs are inside the module @ the top. 46 46 47 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Include.2.py47 [[BR]]''Download:'' [attachment:Include.2.py] 48 48 [[BR]]''By:'' csawyer@yumaed.org -- ''Ver:'' 0.8 49 49 50 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Include.3.py50 [[BR]]''Download:'' [attachment:Include.3.py] 51 51 [[BR]]''By:'' cbrant@gmail.com -- ''Ver:'' 0.9.3 52 52 … … 61 61 62 62 ''Version:'' >= 0.8 63 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiInclude.py63 [[BR]]''Download:'' [attachment:WikiInclude.py] 64 64 65 65 ''Version:'' >= 0.9 66 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiInclude.2.py66 [[BR]]''Download:'' [attachment:WikiInclude.2.py] 67 67 [[BR]]''By:'' Vegard Eriksen zyp at jvnv dot net 68 68 … … 97 97 98 98 99 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiFile.py99 ''Download:'' [attachment:WikiFile.py] 100 100 ''By:'' Toni Brkic toni.brkic at switchcore.com -- ''Required ver'' patch for #801 must be implemented 101 101 102 102 === !MimeInclude === 103 103 Inserts the output of an external URL, with an optional MIMEtype argument for rendering mode and colorization. See the examples in code docstring. Enjoy! 104 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/MimeInclude.py104 [[BR]]''Download:'' [attachment:MimeInclude.py] 105 105 [[BR]]''By:'' Carlo C8E Miron <carlo.miron AT gmail.com> -- ''Ver:'' >= 0.8.1 (tested on Debian versions 0.8.1-2 until 0.8.4-1) 106 106 … … 125 125 I'd really like it to default to displaying backlinks to the current page when a page name isn't supplied, but, um, I have no idea how to do that. Suggestions greatly appreciated. 126 126 [[BR]] 127 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.py127 ''Download:'' [attachment:BackLinks.py] 128 128 [[BR]]''By:'' Dan Hon <danhon+trac@gmail.com> -- ''Ver.'' >= 0.7.1 129 129 … … 133 133 }}} 134 134 135 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.2.pypatches the wikimacro to default to display backlinks to the current page if a page name is not specified.135 ''Download:'' [attachment:BackLinks.2.py] patches the wikimacro to default to display backlinks to the current page if a page name is not specified. 136 136 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> -- ''Ver.'' >= 0.8 137 137 138 138 Well, both those seem to have a bug: they will list pages for which at least one version linked to thispage, rather than just the latest version. So here's a fixed macro. 139 139 140 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks3.pypatches the wikimacro to display only pages where the latest version links to the specified or current page.140 ''Download:'' [attachment:BackLinks3.py] patches the wikimacro to display only pages where the latest version links to the specified or current page. 141 141 [[BR]] 142 142 ''By:'' Andrew Durdin <adurdin at gmail.com> -- ''Ver.'' >= 0.8 … … 146 146 Well, both those seem to have a bug: they will list pages for which at least one version linked to thispage, rather than just the latest version. So here's a fixed macro. 147 147 148 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.3.pybased on Andrew's fix displays only pages where the latest version explicitly links (i.e. no CamelCase, only {{{ [wiki:... ...]}}} links) to the specified or current page.148 ''Download:'' [attachment:BackLinks.3.py] based on Andrew's fix displays only pages where the latest version explicitly links (i.e. no CamelCase, only {{{ [wiki:... ...]}}} links) to the specified or current page. 149 149 [[BR]] 150 150 ''By:'' Muness Alrubaie <muness@gmail.com> -- ''Ver.'' >= 0.8 151 151 [[BR]] 152 152 153 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.4.pybased on Andrew's and Muness's fixes, displays pages where the latest version contains either a CamelCase link OR explicitly links (i.e. {{{ [wiki:... ...]}}} links) to the specified or current page.153 ''Download:'' [attachment:BackLinks.4.py] based on Andrew's and Muness's fixes, displays pages where the latest version contains either a CamelCase link OR explicitly links (i.e. {{{ [wiki:... ...]}}} links) to the specified or current page. 154 154 [[BR]] 155 155 ''By:'' Ed Szynaka <trac@szynaka.com> -- ''Ver.'' >= 0.8 … … 170 170 }}} 171 171 Add the Names "MyPage", "AndThisPageToo" and "WithThisPage" with the list of references to this page. 172 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/AutoNav.2.py172 ''Download:'' [attachment:AutoNav.2.py] 173 173 [[BR]]''By:'' Anders Jansson <anders dot jansson at kastanj dot net> 174 174 175 175 Fixed a small bug in the page enumeration. 176 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/AutoNav.3.py176 ''Download:'' [attachment:AutoNav.3.py] 177 177 [[BR]]''By:'' anonymous 178 178 … … 181 181 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/" 182 182 183 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SubWiki.py183 ''Download:'' [attachment:SubWiki.py] 184 184 [[BR]]''Version:'' >= 0.8 185 185 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> … … 187 187 A different version that lists the contents of the line specified in the second parameter next to the the link. 188 188 189 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SubWiki.2.py189 [[BR]]''Download:'' [attachment:SubWiki.2.py] 190 190 [[BR]]''By:'' csawyer@yumaed.org -- ''Ver:'' 0.8 191 191 192 192 A different version that lists the contents of the first heading element next to the link. The second parameter specifies the number of levels to display. Based on the version by csawyer@yumaed.org. 193 193 194 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SubWiki.3.py194 [[BR]]''Download:'' [attachment:SubWiki.3.py] 195 195 [[BR]]''By:'' muness@gmail.com -- ''Ver:'' 0.8 196 196 … … 200 200 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. 201 201 202 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ParentWiki.py202 ''Download:'' [attachment:ParentWiki.py] 203 203 [[BR]]''Version:'' >= 0.8 204 204 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> … … 209 209 Examples: ![[RelLink(deeper1)]] 210 210 211 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/RelLink.py211 ''Download:'' [attachment:RelLink.py] 212 212 [[BR]]''Version:'' >= 0.8? 213 213 [[BR]]''By:'' Thomas Richter tr+tracweb@ariva.de … … 217 217 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). 218 218 219 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ShowPath.py219 ''Download:'' [attachment:ShowPath.py] 220 220 [[BR]]''Version:'' >= 0.8 221 221 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> … … 227 227 228 228 ''Download:'' 229 * For 0.8, use http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/redirect.py229 * For 0.8, use [attachment:redirect.py] 230 230 * For 0.9, please see http://svn.ipd.uni-karlsruhe.de/trac/javaparty/wiki/TracRedirect 231 231 … … 240 240 241 241 === !TracNav === 242 {{{ 243 #!html 244 <a href="http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav"> 245 <img style="float: right;" src="http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/tracnav.png?format=raw"> 246 </a> 247 }}} 242 [[html(<a href="http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav">)]] 243 [[Image(tracnav.png, nolink)]] 244 [[html(</a>)]] 248 245 The !TracNav macro implements a fully customizable navigation bar for the Trac wiki engine (a replacement for the pure static !TracGuideToc macro). The contents of the navigation bar is a wiki page itself and can be edited like any other wiki page through the web interface. The navigation bar supports hierarchical ordering of topics. 249 246 … … 251 248 252 249 Updated version 2005-03-25: Improved look & feel, more robust parser for table of contents pages, improved page preview handling. 253 [[BR]]''Download:'' [ http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/TracNav.2.py TracNav.py] [[BR]]''By:'' Bernhard Haumacher (haui at haumacher.de), ''Version:'' = 0.8.x250 [[BR]]''Download:'' [attachment:TracNav.2.py] [[BR]]''By:'' Bernhard Haumacher (haui at haumacher.de), ''Version:'' = 0.8.x 254 251 255 252 Updated version 2005-11-26: Improved wiki syntax handling for toc entries (using Trac's parser now). More stable toc tree building. Trac 0.9 support. 256 [[BR]]''Download:'' [ http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/TracNav.3.2.py TracNav.py], [http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/tracnav.csstracnav.css]253 [[BR]]''Download:'' [attachment:TracNav.3.2.py], [attachment:tracnav.css] 257 254 [[BR]]''By:'' Thomas Moschny (moschny at ipd.uni-karlsruhe.de), ''Version:'' >= 0.9 258 255 … … 343 340 Please email me fixes and excuse any obvious errors: I've never written any python before this. 344 341 345 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/DateOffset.py342 ''Download:'' [attachment:DateOffset.py] 346 343 [[BR]]''Version:'' >= 0.8 347 344 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> … … 381 378 [[BR]]''By:'' Matthew Good <trac matt-good net> 382 379 383 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiCalendar.3.py[[br]]380 ''Download:'' [attachment:WikiCalendar.3.py] [[br]] 384 381 Added navigation links (for previous/next month) to the calendar caption. 385 382 [[BR]]''Version:'' >= 0.8 … … 406 403 407 404 ''Download:'' 408 http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Debbug.py 405 [attachment:Debbug.py] 409 406 [[BR]]''By:'' Joe Wreschnig -- ''Ver:'' >= 0.5.2 410 407 … … 421 418 See source for customizing the available Javadoc URLs. 422 419 423 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/javadoc.py420 ''Download:'' [attachment:javadoc.py] 424 421 [[BR]]''By:'' Matthew Good <matt-good.net> -- ''Ver:'' >=0.7.1 425 422 … … 463 460 }}} 464 461 465 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/downloadStats.py462 ''Download:'' [attachment:downloadStats.py] 466 463 [[BR]]''By:'' Tiago Bortoletto Vaz <tiago@debian-ba.org> 467 464 [[BR]]''Ver.'' >= 0.7.1 … … 477 474 }}} 478 475 479 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/UserChanges.py476 ''Download:'' [attachment:UserChanges.py] 480 477 [[BR]]''By:'' David Mohr <datrac@mcbf.net> -- ''Ver.'' >= 0.7.1 481 478 … … 519 516 All arguments are needed, god alone knows what happens if you leave them out. 520 517 521 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SvnFiles.py518 ''Download:'' [attachment:SvnFiles.py] 522 519 ''Version:'' 0.8 523 520 ''By:'' Simon Stapleton <simon@tufty.co.uk> 524 521 525 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SvnFiles.2.py522 ''Download:'' [attachment:SvnFiles.2.py] 526 523 ''Version:'' 0.9 527 524 ''By:'' Krachtwerk … … 538 535 }}} 539 536 540 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ReTickets.py537 ''Download:'' [attachment:ReTickets.py] 541 538 ''Version:'' 0.8 542 539 ''By:'' Simon Stapleton <simon@tufty.co.uk> … … 546 543 Build a search URL for the supplied argument or just a link to a search engine if no args are present. Set to use google. Edit the macro to modify the engine(/url). 547 544 548 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Search.py545 ''Download:'' [attachment:Search.py] 549 546 [[BR]]''Version:'' >= 0.8 550 547 [[BR]]''By:'' Muness Alrubaie <muness@gmail.com> … … 553 550 Builds a link to search for a supplied argument in any or all of the wiki, changesets, and tickets. 554 551 555 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/TracSearch.py552 ''Download:'' [attachment:TracSearch.py] 556 553 [[BR]]''Version:'' >= 0.8 557 554 [[BR]]''By:'' Andrew Durdin <adurdin at gmail.com> … … 574 571 }}} 575 572 576 [[BR]]Download: http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Blog.py573 [[BR]]Download: [attachment:Blog.py] 577 574 [[BR]]By: Walter Wong <wangzq@gmail.com> 578 575 [[BR]]Version: >=0.8 579 576 580 577 Download: 581 http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Blog.2.py 578 [attachment:Blog.2.py] 582 579 [[BR]]Adopted to work on my 0.9.3 583 580 [[BR]]''Version:'' >= 0.9.x? 584 581 [[BR]]''By:'' Christian Eberl <chexx@gmx.at> 585 582 586 [[BR]]Download: http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Blog.ByCreationDate.py583 [[BR]]Download: [attachment:Blog.ByCreationDate.py] 587 584 [[BR]]Adapted By: Dan Mahn <trac@digidescorp.com> 588 585 [[BR]]Version: 0.10 … … 600 597 }}} 601 598 602 [[BR]]Download: http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/acronym.py599 [[BR]]Download: [attachment:acronym.py] 603 600 [[BR]]By: Justin Palmer <trac at isolated-designs dot net> 604 601 [[BR]]Version: >=0.8 … … 653 650 See heading comment of source file for more detail. 654 651 655 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Image.2.py652 [[BR]]''Download:'' [attachment:Image.2.py] 656 653 [[BR]]''By:'' Shun-ichi Goto <gotoh@taiyo.co.jp> 657 654 [[BR]]''Version:'' >= 0.8 658 [[BR]]''Download:'' [ http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Image.3.pyImage.3.py]655 [[BR]]''Download:'' [attachment:Image.3.py] 659 656 [[BR]]''Version'': >= [1688] 660 657 … … 720 717 }}} 721 718 722 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/NotImplemented.py719 [[BR]]''Download:'' [attachment:NotImplemented.py] 723 720 [[BR]]''Author:'' ebrown@esolvere.com 724 721 [[BR]]''Version:'' Tested on 0.9pre … … 735 732 If no argumnent is given, a default argument of "WikiTemplates" is assumed. 736 733 737 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ChooseTemplate.1.py734 [[BR]]''Download:'' [attachment:ChooseTemplate.1.py] 738 735 [[BR]]''Author:'' spamfaenger at gmx.de 739 736 [[BR]]''Version:'' Tested on 0.9b2 … … 755 752 Although it's very small, the source can probably be improved a lot, but it's my first Python thingie 756 753 757 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ListTracProjects.py754 [[BR]]''Download:'' [attachment:ListTracProjects.py] 758 755 [[BR]]''Author:'' robert@exa-omicron.nl 759 756 [[BR]]''Version:'' Tested on 0.9.2 and 0.9.3 … … 837 834 }}} 838 835 839 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/LastModifiedVersion.py836 ''Download:'' [attachment:LastModifiedVersion.py] 840 837 [[BR]]''By:'' Matt Shin 841 838