I am migrating the contents of the Trac wiki that we used for the Emacs project. Trac allowed for plain text files attached to particular pages, see for example here: <http://overlays.gentoo.org/proj/emacs/wiki/test%20plans#no1> There seems to be no equivalent functionality in wiki.gentoo.org. The main problem is not so much the lack of attachments (which could be worked around in other ways), but that it is impossible to upload anything other than images. So, including a link like [[Media:hello.c]] from a wiki page isn't possible. For the time being, I've attached the files to bugzilla (bug 451032) and link to them from the wiki page: <http://wiki.gentoo.org/wiki/Project:Emacs/Test_plans> But obviously, this isn't a good solution because it is not self-contained. (Not sure if this is a configuration issue, or a general limitation of the Mediawiki software.)
I don't believe it's possible to have plain files uploaded into the File: namespace. However, any number of arbitrary namespaces can be created (with SSH access), e.g. Code:. Subpages are likely a better solution, though, especially because you say "attached to particular pages". Remember, subpages can be nested indefinitely (or close enough, anyways) [0]. If necessary, the whole page can be enclosed in a <code> or <code><nowiki> block. [0] https://www.mediawiki.org/wiki/Help:Subpages
I see two problems with subpages: - Plain text included in <code> isn't convenient for downloading. Preferably, it should be possible to download the files with one click from the (parent) wiki page. - Not all of the files are licensed under CC-BY-SA which is required for wiki pages.
(In reply to Alex Xu from comment #1) > I don't believe it's possible to have plain files uploaded into the File: > namespace. > If configured, it is. But the whole wiki is made for images, audio and video; other file types. There are some security concerns when allowing more file types. In terms of solution, on -dev, robbat2 talked about reviving the 'project hosting' idea he had a while ago.
(In reply to Alex Legler from comment #3) > In terms of solution, on -dev, robbat2 talked about reviving the 'project > hosting' idea he had a while ago. Specifically for hosting small web resources, we have now launched a first sub-set of the service: https://wiki.gentoo.org/wiki/Project:Infrastructure/Project_File_Hosting As such, we won't allow plain-text files to be uploaded to the wiki, WONTFIX likely fits best here, as there's no RESO USEALTERNATIVE. ;)