Trac Plugin to pre-format parts of the Wiki page using it
Project description
WikiTemplates is a Trac plugin. This plugin will provide you a way to include parts of other wiki pages, the templates, into our current wiki page.
Why This? You could have a template that makes the text red colored with a monospace font, and use the template instead of making multiple span’s,
Some Usage Examples
The template:
{{{ #!html <span style="color: #339900; font-family: monospace;">{{1}}</span> }}}
To use that template, one would put on the wiki page being edited:
[[T(GreenText|The Green Text Passed)]]
The HTML output:
<span style="color: rgb(51, 153, 0); font-family: monospace;">The Green Text Passed</span>
Another example would be:
The template:
{{{ #!html <span style="color: #339900; font-family: monospace;">{{1}}</span> <span style="color: red;">{{2}}</span> }}}
Wiki implementation:
[[T(GreenAndRedText|The Green Text Passed|And The Red Not Monospace Text)]]
The HTML Output(with line breaks for readability):
<span style="color: rgb(51, 153, 0); font-family: monospace;">The Green Text Passed</span> <span style="color: red;">And The Red Not Monospace Text</span>
Of course this isn’t that really usefull but just imagine the possibilities, too many to name here.
As of version >=0.3.0, WikiTemplates also supports inclusion of whole wiki pages(with no arguments parsing) and even off site pages. Examples:
Include a wiki page:
[[Include(WikiPageName)]]
Include an off-site page:
[[Include(http://the.url.to.site.com/page)]]
You can find more info on the WikiTemplates site where bugs and new feature requests should go to.
Download and Installation
WikiTemplates can be installed with Easy Install by typing:
> easy_install TracWikiTemplates
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for TracWikiTemplates-0.3.0rc3.tar.bz2
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aeda5554a37bca578152920fd3f35c5f4aed6cd8ad726a78a156456db032cab |
|
MD5 | 40c6da9265480bbb3dd9ecd35de23838 |
|
BLAKE2b-256 | ab0aac149f19d97bd72ca00619374cbf4ed23ee6510919aeb62fcceb693242b7 |
Hashes for TracWikiTemplates-0.3.0rc3-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bcd1841d7ca59fb1f31625665db1beecb857546a60ea064f76314fdd63ad175 |
|
MD5 | 8cd775a0fcc77af535c67f0634605766 |
|
BLAKE2b-256 | 886132df5953e51ec527546a71ded6a13b17560cb511dec22c7578d0a843f24a |