Extensions:How to add images from SVN to your wiki page 21-07-2008
From SensorDataLab
All images are supposed to be maintained and provided in the SVN. An image can then be addressed via its path and filename in the SVN and the revision number used in the SVN. The revision used for the specified file is encoded in the filename directly before the file extension, which is the last dot in the complete path. As an example the floorplan available in the SVN at /pictures/vl3.jpg at the revision number 65 can be addressed with [[Image:pictures/vl3_REV_65.jpg|600px|floorplan]]
resulting in the following image:
To address the HEAD revision either use the word HEAD as revision or leave the revision out of the filename. For example the [[Image:pictures/vl3_REV_HEAD.jpg|600px|floorplan]] and [[Image:pictures/vl3.jpg|600px|floorplan]] are referring to the same entry in the SVN, i.e., the HEAD revision of the file.
pros
- The file is immediately available once it has been committed to the repository.
- The MediaWiki way of embedding images, image size and a description can be specified.
- The file is accessible in different revisions.
cons
- The file is available after the first time the [[Image:....]] has been called. Otherwise the file may not have been copied in the svntmp directory.
- The same file is accessible via the different revision numbers in case the file has not been changed in between. However, the corresponding links might be different. This may result in confusion with the linking, but does not result in any problems with displaying the files.
