Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

TracWikiTemplates-0.3.0rc1.zip (58.2 kB view details)

Uploaded Source

TracWikiTemplates-0.3.0rc1.tar.bz2 (42.9 kB view details)

Uploaded Source

Built Distribution

TracWikiTemplates-0.3.0rc1-py2.4.egg (81.1 kB view details)

Uploaded Source

File details

Details for the file TracWikiTemplates-0.3.0rc1.zip.

File metadata

File hashes

Hashes for TracWikiTemplates-0.3.0rc1.zip
Algorithm Hash digest
SHA256 37e2fe6fbc9b7eb3fe5e69b843f691f6651d5e7e6e28432085a762b0e9660f27
MD5 c9f539fb252fa6ca77b5ee514b6bc985
BLAKE2b-256 901b7500ff60e4cc25b63f0f53ff6737b19f62ecddd80541d08b650e91a665fe

See more details on using hashes here.

File details

Details for the file TracWikiTemplates-0.3.0rc1.tar.bz2.

File metadata

File hashes

Hashes for TracWikiTemplates-0.3.0rc1.tar.bz2
Algorithm Hash digest
SHA256 da369e25e45bec55a8f916a268c9a27e75f874b8a94f63e2bcb86c346d12f8b3
MD5 afcdd6b938ccabf3bd66765949ba27c4
BLAKE2b-256 d399ab79ee1bf533bdef45bce3b75fe7bcf1c7713373b14ae0ab51027ebc8b4b

See more details on using hashes here.

File details

Details for the file TracWikiTemplates-0.3.0rc1-py2.4.egg.

File metadata

File hashes

Hashes for TracWikiTemplates-0.3.0rc1-py2.4.egg
Algorithm Hash digest
SHA256 808a5eb0b7db5f6238ba6de53723cfd0d33b3005d44e1a4bc45aba7734186c85
MD5 cac148923cb33ac5423fd45b9f74899b
BLAKE2b-256 204650ff494a410b715c1e4a9b06dfb220eab9c538e09aba9e4268472ca8f030

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page