-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160
Dear list,
we are using a MediaWiki for internal documentation. Sometimes we would like to upload text files (automatically generated equipment logs).
Ideally they should be displayed as preformatted text, with no interpretation at all (the files can contain "<", ">", ...).
Is there an easy and comfortable way to do this?
Best, Andreas
- --------------------------------------------------------------------- Dr. Andreas K. Huettel tel. +31 15 27 88102 (univ.) Molecular Electronics and Devices Kavli Institute of Nanoscience Delft Delft University of Technology PO Box 5046, 2600 GA Delft The Netherlands http://www.akhuettel.de/research/ - --------------------------------------------------------------------- Please use GNUPG or PGP for signed and encrypted email. My public key can be found at http://www.akhuettel.de/pgp_key.php
On 16/09/2007, Andreas K. Huettel A.K.Huettel@tudelft.nl wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160
Dear list,
we are using a MediaWiki for internal documentation. Sometimes we would like to upload text files (automatically generated equipment logs).
Ideally they should be displayed as preformatted text, with no interpretation at all (the files can contain "<", ">", ...).
Is there an easy and comfortable way to do this?
Well, you can use the "file upload" feature to actually upload the file, and MediaWiki will treat it as an actual file, which users will be able to download, etc. However, given that you're uploading text, this sucks, since it won't be searchable, and it won't be so convenient to link to it, etc.
I'd probably recommend adopting maintenance/importTextFile.php - copy it, and change things so that before it saves the text, it wraps it in "<pre></pre>" - MediaWiki will then leave the text alone when displaying, and you'll get all the benefits of searching and in-wiki display and other goodies such as may be available.
Rob Church
mediawiki-l@lists.wikimedia.org