Platform Variables is the term used in GeoHazardWatch for dynamic values that can be inserted into pages. These are also known as WikiVariables (the JSPWiki term).
GeoHazardWatch supports three categories of variables:
Configuration Values come from the system configuration and are accessed using the ConfigAccessorPlugin. These are static values set by administrators.
Syntax: [{ConfigAccessor property='ngdpbase.property.name'}] will show:
Examples:
See Configuration System for details on available configuration properties.
Contextual Variables are dynamic values that depend on the current user session or page being viewed.
Syntax: [{$variablename}]
Examples:
| Variable | Description | Example Output |
|---|---|---|
[{$pagename}] | Current page title | Platform Variables |
[{$username}] | Current user | Anonymous |
[{$requestcontext}] | Current action | {$requestcontext} |
System Variables are dynamic values about the platform itself, independent of user or page context.
Syntax: [{$variablename}]
Examples:
| Variable | Description | Example Output |
|---|---|---|
[{$applicationname}] | Platform name | GeoHazardWatch |
[{$totalpages}] | Total page count | 133 |
[{$uptime}] | Server uptime | 21h 51m 13s |
[{$timestamp}] | Current timestamp | 2026-06-06T02:55:42.961Z |
Variables are inserted into pages using the JSPWiki syntax:
The current page is [{$pagename}] and you are logged in as [{$username}].
This platform ([{$applicationname}]) has [{$totalpages}] pages.
Several plugins provide variable functionality:
| Plugin | Purpose |
|---|---|
| Using VariablesPlugin | Display all available variables |
| ConfigAccessorPlugin | Access configuration values |
| Current Time Plugin | Display formatted date/time |
| Using UptimePlugin | Display server uptime |
| Using TotalPagesPlugin | Display page count |
Use the Using VariablesPlugin to see all available variables:
[{VariablesPlugin}]