Wiki Tips and Tricks
From MesoscopicWiki
This is a repository of various esoteric tricks that William has come across in his extensive travels of the wiki-universe.
Contents |
Transclusion
To transclude a page means simply to dynamically include it in the text of another page, think templates. However, this works for any page, not just templates.
To transclude a page, just put "{{Name of page}}" where you want the text of the page "Name of Page" to be included. This is dynamic, so whenever someone views the page, they see the latest version of the transcluded page.
Editing the navigation bar on the left
Go to MediaWiki:Sidebar and hit "edit". Gotchas:
- Preview does not work
- The syntax is not normal wiki syntax
- You need admin rights
See this mediawiki manual section for the syntax. Note how links are different.
Syntax Highlighting
The Highlighting extension is installed. It provides the tag
<source lang="xxx">
... your code in language xxx here
</source>
See /var/www/mediawiki/extensions/Highlight/geshi/geshi for supported languages. See also the Highlight homepage.
Name of the Main Page
This is the page that comes up if you just ask for http://...../mediawiki.
Edit /mediawiki/index.php/MediaWiki:Mainpage
Also check /mediawiki/index.php/MediaWiki:Sidebar
