3 | | More information available at the [http://dev.ufsoft.org/TracWikiTemplates Trac WikiTemplates Plugin Support Site] |
| 7 | WikiTemplates is a `Trac <http://trac.edgewall.org>`_ plugin. |
| 8 | This plugin will provide you a way to include parts of other wiki pages, |
| 9 | the templates, into our current wiki page. |
| 10 | |
| 11 | **Why This?** |
| 12 | You could have a template that makes the text red colored with a monospace |
| 13 | font, and use the template instead of making multiple span's, |
| 14 | |
| 15 | Some Usage Examples |
| 16 | ------------------- |
| 17 | The template: |
| 18 | :: |
| 19 | |
| 20 | {{{ |
| 21 | #!html |
| 22 | <span style="color: #339900; font-family: monospace;">{{1}}</span> |
| 23 | }}} |
| 24 | |
| 25 | To use that template, one would put on the wiki page being edited: |
| 26 | :: |
| 27 | |
| 28 | [[T(GreenText|The Green Text Passed)]] |
| 29 | |
| 30 | The HTML output: |
| 31 | :: |
| 32 | |
| 33 | <span style="color: rgb(51, 153, 0); font-family: monospace;">The Green Text Passed</span> |
| 34 | |
| 35 | Another example would be: |
| 36 | |
| 37 | The template: |
| 38 | :: |
| 39 | |
| 40 | {{{ |
| 41 | #!html |
| 42 | <span style="color: #339900; font-family: monospace;">{{1}}</span> <span style="color: red;">{{2}}</span |
| 43 | }}} |
| 44 | |
| 45 | Wiki implementation: |
| 46 | :: |
| 47 | |
| 48 | [[T(GreenAndRedText|The Green Text Passed|And The Red Not Monospace Text)]] |
| 49 | |
| 50 | The HTML Output(with line breaks for readability): |
| 51 | :: |
| 52 | |
| 53 | <span style="color: rgb(51, 153, 0); font-family: monospace;">The Green Text Passed</span> |
| 54 | <span style="color: red;">And The Red Not Monospace Text</span> |
| 55 | |
| 56 | Of course this isn't that really usefull but just imagine the possibilities, |
| 57 | too many to name here. |
| 58 | |
| 59 | As of version >=0.3.0, WikiTemplates also supports inclusion of whole wiki |
| 60 | pages(with no arguments parsing) and even off site pages. Examples: |
| 61 | |
| 62 | Include a wiki page: |
| 63 | :: |
| 64 | |
| 65 | [[Include(WikiPageName)]] |
| 66 | |
| 67 | Include an off-site page: |
| 68 | :: |
| 69 | |
| 70 | [[Include(http://the.url.to.site.com/page)]] |
| 71 | |
| 72 | You can find more info on the |
| 73 | `WikiTemplates <http://wikitemplates.ufsoft.org/>`_ site where bugs and new |
| 74 | feature requests should go to. |
| 75 | |
| 76 | Download and Installation |
| 77 | ------------------------- |
| 78 | |
| 79 | WikiTemplates can be installed with `Easy Install |
| 80 | <http://peak.telecommunity.com/DevCenter/EasyInstall>`_ by typing:: |
| 81 | |
| 82 | > easy_install TracWikiTemplates |
| 83 | }}} |
| 84 | |
| 85 | |
| 86 | This plugin is hosted at [http://wikitemplates.ufsoft.org WikiTemplates.UfSoft.org] where all bug/new feature requests should also go. |