Edgewall Software

Changes between Version 1 and Version 2 of TracWikiTemplates


Ignore:
Timestamp:
Sep 28, 2006, 2:45:16 PM (13 years ago)
Author:
Pedro Algarvio, aka, s0undt3ch <ufs@…>
Comment:

Explanation Extended

Legend:

Unmodified
Added
Removed
Modified
  • TracWikiTemplates

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