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
File details
Details for the file TracWikiTemplates-0.3.0rc2.zip
.
File metadata
- Download URL: TracWikiTemplates-0.3.0rc2.zip
- Upload date:
- Size: 58.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a15573be6870cc2ae85cc048c47240a02baa4201e39fb369d79e0bcf18aa5edb |
|
MD5 | 3969fa330de1c07ae0472619bc4993f5 |
|
BLAKE2b-256 | 3c30f8f6d96dd7a062a13c98469bb1989c4f5922e13aa38119f68d2787280f47 |
File details
Details for the file TracWikiTemplates-0.3.0rc2.tar.bz2
.
File metadata
- Download URL: TracWikiTemplates-0.3.0rc2.tar.bz2
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fb237565bc90e5fd3a46135b15bdeac6a364dc9e3f1bdeb94c220b310664724 |
|
MD5 | e3de683e95d0a733c6cba03b31cb7bc6 |
|
BLAKE2b-256 | a05dcddaed2f2afcac68b0f8ebe419375c4cd1dbe7b57f34287c28fab32d688d |
File details
Details for the file TracWikiTemplates-0.3.0rc2-py2.4.egg
.
File metadata
- Download URL: TracWikiTemplates-0.3.0rc2-py2.4.egg
- Upload date:
- Size: 80.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b06af275cf3b08530844bc8934a6dcb49e2247321d894967887f0af2805c8140 |
|
MD5 | 60e6f566c945dac70cdd62cfcdbe3ec4 |
|
BLAKE2b-256 | a9bee9aca5f5722463fead2e21d46c5fae18c0184db9fec9519311170b8cb732 |