# Provide a macro that prints the version name of the working version

## Description

Example for the master space:
In the 1.0 version of a Document A, user may have the following sentences in his document:
1. Go to C:\Program Files\Software\1.0\data to get the data files of the software.
2. Go to C:\Program Files\Software\1.0\install to get the installation files of the software.

When user creates version 2.0 of the Document A, he have to update the version number in these sentences as follows:
1. Go to C:\Program Files\Software\2.0\data to get the data files of the software.
2. Go to C:\Program Files\Software\2.0\install to get the installation files of the software.

If there are a lot of sentences like these, user has to find all the instances and change "1.0" to "2.0" manually, which is not convenient. The proposed macro should be aware in which version it is placed and be replaced by a version name.

1. Go to C:\Program Files\Software{macro}\data to get the data files of the software.
2. Go to C:\Program Files\Software{macro}\install to get the installation files of the software.

Then, after I save, in viewing mode of this Confluence page, the macro shows the current version number in the version picker.

After the publish, the macro should be replaced by a version name for reader (not «latest», but an actual last published version name).

With regards to the target space, the macro should print the version that was published.
In case of a fallback page, the version the user selected in thee working version dropdown should be inserted (instead of the version this fallback page was last published). Same thing applies to envisioned pages.

None

Unassigned

Sync User [K15t]

None

None

None

None

None

None