Fullscreen
[Show/Hide Right Column]

Plugin Versions

If you are documenting software, you will run into the situation where most of a page is similar for more than one version, but there could be a small difference. Making several pages could lead to duplicating content and that it be out of sync.

Use this Wiki Plugin to divide a wiki page into separate "versions." Tiki will display a navigation box that allows users to display each version of the page.

For example, you can use this plugin to separate a single wiki page into Release 1, Release 2, and Release 3 information.


Usage

To display a module in a wiki page, use the syntax:
{VERSIONS(nav=>y,title=>y)}

This is the default text

---(version 3)-----------------------------

This is version 3 info

---(version 2)-----------------------------

This is version 2 info

---(version 1)-----------------------------

This is version 1 info

{VERSIONS}



ParameterAccepted valuesEffectSince
nav y, n Displays a navigation box that allows users to select a specific version to display.
If nav=y, only the default text will display and users will not be able to display other versions.
title y, n Display the current version name as the title. Note: Do not work when nav=>y
default Specifies which version to show when displaying the page for the first time.


To separate different versions of text use: 3 dashes (hyphens), followed by the version label in parenthesis, followed by at least 3 other dashes or hypens. For example:
---(version 3)-----------------------------


Notes

  • If you use Wiki Config wiki page caching, this plugin may not render properly.
  • The "versions" used for this plugin are different than the "versions" stored in the wiki page history.



Example

This code,
{VERSIONS(nav=>y,title=>y)}

This is the default text

---(version 3)-----------------------------

This is version 3 info

---(version 2)-----------------------------

This is version 2 info

---(version 1)-----------------------------

This is version 1 info

{VERSIONS}


Would produce:


This is the default text






More Examples


Sample usage in conjunction with PluginTracker and PluginTrackerList:

Default text: Formulari, using PluginTracker
Default text: Formulari, using PluginTracker


Alternate version: Mostra les pre-inscripcions ja realitzades, , using PluginTrackerList
Alternate version: Mostra les pre-inscripcions ja realitzades, , using PluginTrackerList






Related pages

Alias


Contributors to this page: Marc Laporte9140 points  , lindon132 points  , Vypero5 points  , Rick22958 points  , xavidp1213 points  , dthacker1483 points  and mlpvolt4388 points  .
Page last modified on Saturday 10 March, 2012 22:13:19 UTC by Marc Laporte9140 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki