Mediawiki

m
m
Line 4: Line 4:
 
<div align=justify>Everyone of us would like to have a site. The reasons may differ: just to try yourself in site creation; create a site for your family or friends; start business on-line. Nowadays there is a huge variety of software, programs, tools to create a site. Some of them require basic knowledge of site building technologies, others can be used by anyone without any difficulties.  
 
<div align=justify>Everyone of us would like to have a site. The reasons may differ: just to try yourself in site creation; create a site for your family or friends; start business on-line. Nowadays there is a huge variety of software, programs, tools to create a site. Some of them require basic knowledge of site building technologies, others can be used by anyone without any difficulties.  
  
I have also run into the difficulty of choosing a tool that would be easy in use and wouldn't require any complicated actions to create a nice-looking and proper functional site. After making a list of possible site building tools and considering a great number of pros and cons I have chosen wiki (also known as MediaWiki). The reason for my choice were as follows:
+
I have also run into the difficulty of choosing a tool that would be easy in use and wouldn't require any complicated actions to create a nice-looking and proper functional site. After making a list of possible site building tools and considering a great number of pros and cons I have chosen wiki (also known as MediaWiki). The reason for our choice were as follows:
 +
 
 
- it allows to create a database-driven site, which is useful to keep the data properly organized;
 
- it allows to create a database-driven site, which is useful to keep the data properly organized;
 +
 
- it is easy to install and manage;
 
- it is easy to install and manage;
 
- you can choose the desired skin and easily change it to another one when needed;
 
- you can choose the desired skin and easily change it to another one when needed;
Line 12: Line 14:
 
To start working with wiki, you need to have a registered domain name and sign up for hosting. Domain name is needed to create a site for it and hosting provides the space on a web server for your site to be available to all Internet users.
 
To start working with wiki, you need to have a registered domain name and sign up for hosting. Domain name is needed to create a site for it and hosting provides the space on a web server for your site to be available to all Internet users.
  
Frankly speaking, when I started working with wiki I doubted my original choice. But gradually I've made sure that it was the best decision made.
+
Frankly speaking, when I started working with wiki I doubted our original choice. But gradually I've made sure that it was the best decision made.
 
First of all you need to download the wiki installation from the net. The best source of mediawiki installation is http://www.mediawiki.org/wiki/Download
 
First of all you need to download the wiki installation from the net. The best source of mediawiki installation is http://www.mediawiki.org/wiki/Download
  
Line 22: Line 24:
  
 
Let's take some examples for you to see how easy mediawiki is.  
 
Let's take some examples for you to see how easy mediawiki is.  
To center a wiki skin you need to edit the file called 'main.css' located in skins/your_skin/ folder and replace the code:
+
To center a wiki skin you need to edit the file called '' 'main.css' '' located in ''skins/your_skin/'' folder and replace the code:
  
#globalWrapper {
+
#globalWrapper {
font-size: 127%;
+
font-size: 127%;
width: 100%;
+
width: 100%;
margin: 0; padding: 0;}
+
margin: 0; padding: 0;}
  
  
Line 33: Line 35:
  
  
#globalWrapper {
+
#globalWrapper {
position:relative;
+
position:relative;
font-size: 127%;
+
font-size: 127%;
width: 900px;
+
width: 900px;
margin-left:auto;
+
margin-left:auto;
margin-right:auto;
+
margin-right:auto;
padding: 0;
+
padding: 0;
}
+
}
  
 
This will set the width of your site to 900px. This can be replaced with the proper value for each particular site.
 
This will set the width of your site to 900px. This can be replaced with the proper value for each particular site.
 +
 +
'''''Note: replace 'your_skin' with your actual skin name (e.g. MonoBook)'''''
  
  
 
Another example is how to hide/remove the toolbox. By default the mediawiki sites have two blocks called 'navigation' and 'toolbar'. Numerous forums are dedicated to the issue with toolbar removal. You are the luckiest as I will provide you with fast and simple solution.
 
Another example is how to hide/remove the toolbox. By default the mediawiki sites have two blocks called 'navigation' and 'toolbar'. Numerous forums are dedicated to the issue with toolbar removal. You are the luckiest as I will provide you with fast and simple solution.
 
So, to remove the toolbox from a mediwiki site you need to complete the below steps:
 
So, to remove the toolbox from a mediwiki site you need to complete the below steps:
1. add the following line to your main.css file:
 
  
#p-tb { display: none !important; }
+
'''1.''' add the following line to your main.css file:
 +
 
 +
#p-tb { display: none !important; }
  
2. Remove the following line from your_skin.php file located within 'skins' folder:
+
'''2.''' Remove the following line from your_skin.php file located within 'skins' folder:
  
if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;
+
if ( !isset( $sidebar['TOOLBOX'] ) ) $sidebar['TOOLBOX'] = true;
  
Note: replace 'your_skin' with your actual skin name (e.g. MonoBook.php)
+
'''''Note: replace 'your_skin' with your actual skin name (e.g. MonoBook.php)'''''
  
 
That's it! Quite easy, isn't it?
 
That's it! Quite easy, isn't it?

Revision as of 13:35, 23 November 2011

rss feed for my website