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.

NOTE: This plugin is not Trac 0.11 compatible, nor will it be untill someone submits a patch for it. My time is scarce, a lot has changed with Trac 0.11 and I simple don’t have the time to update this plugin.

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.0.zip (60.2 kB view details)

Uploaded Source

TracWikiTemplates-0.3.0.tar.bz2 (43.3 kB view details)

Uploaded Source

Built Distribution

TracWikiTemplates-0.3.0-py2.5.egg (82.3 kB view details)

Uploaded Source

File details

Details for the file TracWikiTemplates-0.3.0.zip.

File metadata

File hashes

Hashes for TracWikiTemplates-0.3.0.zip
Algorithm Hash digest
SHA256 4a48aac99c8cb425c08122d185a569bf7882062a347a53046528fd4b03286e3f
MD5 5cc73bcb825b61ec61e42a942d6e3d45
BLAKE2b-256 16939283b413e62991d6f6ca9223874cbcf9956cf5581dac9f8058c36fd02fbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for TracWikiTemplates-0.3.0.tar.bz2
Algorithm Hash digest
SHA256 7eedf4727b2ca044620fd9ddb4d50ee567750a646dee06974dc6fe31e33804b0
MD5 6b5753b012467a0aa0d6a1f45bb52fe6
BLAKE2b-256 b681911aad4491adb8c183ebf09cec240e0d231708ffcf452cdcddc341c3d2a1

See more details on using hashes here.

File details

Details for the file TracWikiTemplates-0.3.0-py2.5.egg.

File metadata

File hashes

Hashes for TracWikiTemplates-0.3.0-py2.5.egg
Algorithm Hash digest
SHA256 000d9f0742787d6c9a92035c07d2233b84c7ca8e07cd232cfc54a79739655f24
MD5 ba89983f57e348f4c039892719929a98
BLAKE2b-256 c3dc0baf0bf1e9665ef82a41d59348a56cc1265dbb36bad388240ece40d0ce90

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