wiki:KeywordReplacePlugin

Replace keywords with their associated values

Description

This plugin allows you to replace keywords with any wiki format from a table in a Wiki page (Default as KeywordReplace). It can be time consuming to input units, links, etc. where a mapping would be easier to use. This plugin makes typewriting simpler.

For the following keyword definition table, the first column has defined keywords and the second column contains its associated values. Any wiki format could be input in the second column.

||= keywords =||= replace =||
||CO2       ||CO,,2,,                         ||
||m-2_s-1   ||m^-2^ s^-1^                     ||
||Google    ||[http://www.google.com Google]  ||
||oC        ||^o^C                            ||
||m-2       ||m^-2^                           ||
||Wheat     ||[wiki:Wheat Wheat]              ||
||wheat     ||[wiki:Wheat wheat]              ||
||C3        ||C,,3,,                          ||
||t_ha-1    ||t ha^-1^                        ||

The keywords in the first column would be replaced by the values in the second column.

This plugin is based on the AcronymsPlugin. Furthermore, this plugin is an accompaniment to TagsPlugin.

Bugs/Feature Requests

Existing bugs and feature requests for KeywordReplacePlugin are here.

If you have any issues, create a new ticket.

defect

1 / 1

Download

Download the zipped source from here.

Source

You can check out KeywordReplacePlugin from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Configuration

Create a Wiki page holding your keyword definitions (default as KeywordReplace).

In your trac.ini add the following section to make the plugin aware of this storage page:

[replace]
page = KeywordReplace

The storage page is KeywordReplace by default if not specified in trac.ini.

Recent Changes

17654 by rjollos on 2020-01-11 07:26:54
TracKeywordReplace 1.0dev: Make compatible with Trac 1.0+

Refs #13726.

17653 by rjollos on 2020-01-11 07:24:28
TracKeywordReplace 1.0dev: Branch for Trac 1.0

Refs #13726.

17652 by rjollos on 2020-01-11 07:23:35
TracKeywordReplace 0.1dev: Conform to PEP8
(more)

Author/Contributors

Author: helend
Maintainer: Bangyou Zheng
Contributors:

Last modified 6 years ago Last modified on Oct 27, 2017, 6:49:46 PM

Attachments (1)

Download all attachments as: .zip