| 28 | |
| 29 | === WikiFile === |
| 30 | |
| 31 | Inserts the output of an URL/file as wiki file. The file can be written |
| 32 | in trac syntax and the macro will convert it to html. |
| 33 | |
| 34 | The macro looks at the suffix of the file and tries to interpret it |
| 35 | according to that syntax, |
| 36 | |
| 37 | html will be intrepreted as html |
| 38 | |
| 39 | rst will be interpreted Restructured Text |
| 40 | |
| 41 | cpp as c++ etc |
| 42 | |
| 43 | So you can have a file on the filesystme that is written with |
| 44 | trac syntax or restructured text and display it within the wiki. |
| 45 | The advantage is that you can use version control on file. The |
| 46 | disadvantage is that you cant click page history and see the |
| 47 | history of the page. You can also not edit the file within the |
| 48 | Wiki which takes away alot of the advantages of a Wiki. But |
| 49 | within a company it might be ok. |
| 50 | |
| 51 | Example: |
| 52 | {{{ |
| 53 | [[WikiFile(http://www.example.com/myfile.rst)]] |
| 54 | }}} |
| 55 | |
| 56 | |
| 57 | ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiFile.py |
| 58 | ''By:'' Toni Brkic -- ''Required ver'' patch for #801 must be implemented |
| 59 | |