wiki:PageVariableMacro

Version 23 (modified by Ryan J Ollos, 7 years ago) (diff)

Added pageoutline.

Declare and use variables in wiki pages

Notice: This plugin is unmaintained and available for adoption.

Description

This Macro allows you declare and use pagewide variables as shown in the examples below (more will be added soon, after I tested some more). Embedding variables in other macros is currently not working yet.

I tested it with trac 0.10, it should also work with 0.9 and 0.8.

The 0.11 version is not working yet.

Bugs/Feature Requests

Existing bugs and feature requests for PageVariableMacro are here.

If you have any issues, create a new ticket.

Download and Source

Download the [download:pagevariablemacro zipped source], check out using Subversion, or browse the source with Trac.

Example

[[PageVariable(milestone,Proj5M3)]]
Our current milestone is [[Variable(milestone)]]
...
In milestone [[PageVariable(milestone)]] we will ...

This will show up as:

Our current milestone is Proj5M3
...
In milestone Proj5M3 we will ...

Recent Changes

16298 by rjollos on 2017-03-07 17:22:48
Avoid collisions between page variables and request arguments
16297 by rjollos on 2017-03-07 04:50:38
Make compatible with Trac 1.0 and later

Fixes #12719.

3448 by pmonnaie on 2008-04-02 19:09:47
The other part of the macro to set the variable
(more)

Author/Contributors

Author: pmonnaie
Maintainer: pmonnaie
Contributors: