Local Wiki Installation Notes
From GTALUG
Sitemap > Meta > Local Wiki Installation Notes
Contents |
[edit]
Installing Wiki
Software: MediaWiki 1.4.4 (See Special:Version)
[edit]
Configuring Wiki
[edit]
Changing the pretty pictures
| Top background picture for the monobook theme | /skins/monobook/headbg.jpg |
| Site logo in left hand upper corner* | /skins/common/images/wiki.png |
* currently disabled in LocalSettings.php
[edit]
Moving the main content and actions tabs
edit skins/monobook/main.css
Moving content down a bit to allow for background image to show more
#content {
margin: 6.2em 0 0 12.2em; /* changed to move content down a bit for tlug graphic */
ipadding: 0em 1em 1.5em 1em;
background: White;
border: 1px solid #aaaaaa;
border-right: none;
line-height: 1.5em;
position: relative;
z-index: 2;
Beinging the tabs down to where the content is (current setting)
/*
** the page-related actions- page/talk, edit etc
*/
#p-cactions {
position:absolute;
top: 4.3em; /* changed to being tabs down number not important as long as big enough */
[edit]
Changing navigation menu
Example to add say, a Documentation menu:
- copy the wiki.heinous.org/htdocs/includes/DefaultSettings.php section that looks like:
/** Navigation links for the user sidebar.
* 'text' is the name of the MediaWiki message that contains the label of this link
* 'href' is the name of the MediaWiki message that contains the link target of this link.
* Link targets starting with http are considered remote links. Ones not starting with
* http are considered as names of local wiki pages.
*/
$wgNavigationLinks = array (
array( 'text'=>'mainpage', 'href'=>'mainpage' ),
array( 'text'=>'portal', 'href'=>'portal-url' ),
array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
array( 'text'=>'randompage', 'href'=>'randompage-url' ),
array( 'text'=>'help', 'href'=>'helppage' ),
array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
);
to the end of wiki.heinous.org/htdocs/LocalSettings.php
- edit wiki.heinous.org/htdocs/LocalSettings.php and modify for the new menu:
$wgNavigationLinks = array (
array( 'text'=>'mainpage', 'href'=>'mainpage' ),
array( 'text'=>'documentation', 'href'=>'documentation-url' ),
array( 'text'=>'portal', 'href'=>'portal-url' ),
array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
array( 'text'=>'randompage', 'href'=>'randompage-url' ),
array( 'text'=>'help', 'href'=>'helppage' ),
array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
);
- Try not to panic when the menu looks to be a mess at first
- edit as Sysop MediaWiki:Documentation and add what you want the title text in the new navigation menu to be:
Documentation
- edit as Sysop [pMediaWiki:Documentation-url]] and add what the name of the page to actually be (http://wiki.heinous.org/index.php/Documentation):
Documentation
[edit]
IntraWiki Linking
For the truly lazy:
mysql -u root -p
use wikidb;
INSERT INTO interwiki VALUES ('tlug','http://tlug.ss.org/wiki/$1','1');
Create links then like:
[[tlug:Main_Page]]
[edit]
Administration
[edit]
Give user Sysop
Sysop should go to: Special:Makesysop

