Difference between revisions of "MediaWiki/Theming"
Jump to navigation
Jump to search
(Add section on OOUI) |
|||
(32 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
or just dive into all the [http://meta.wikimedia.org/wiki/Gallery_of_user_styles examples of user styles] | or just dive into all the [http://meta.wikimedia.org/wiki/Gallery_of_user_styles examples of user styles] | ||
− | ==How to | + | |
+ | == How to chage the Logo == | ||
+ | |||
You can change the Logo of the wiki by altering the $wgLogo variable in LocalSettings.php to the name of the image you want to use as a logo. | You can change the Logo of the wiki by altering the $wgLogo variable in LocalSettings.php to the name of the image you want to use as a logo. | ||
Please note that this logo should be placed in the /skins/common/images/ folder. | Please note that this logo should be placed in the /skins/common/images/ folder. | ||
Line 12: | Line 14: | ||
</pre> | </pre> | ||
− | ==How to change the favicon== | + | |
+ | == How to change the favicon == | ||
You can change the icon that is displayed in the address bar of your browser by setting a value for $wgFavicon in the LocalSettings.php file | You can change the icon that is displayed in the address bar of your browser by setting a value for $wgFavicon in the LocalSettings.php file | ||
<pre> | <pre> | ||
Line 18: | Line 21: | ||
</pre> | </pre> | ||
+ | == How to make your own skin == | ||
+ | You can create a skin all by yourself by following the steps provided below: | ||
− | + | # Go to your mediawiki directory; | |
− | + | # Copy the monobook directory and name it with the name of your skin, exempli gratia: mywikiskin; | |
− | + | # Copy the MonoBook.php file and name it with the name of your skin, exempli gratia: MyWikiSkin.php; | |
− | + | # Edit MyWikiSkin.php and change the class name to SkinMyWikiSkin, exempli gratia: class SkinMyWikiSkin extends SkinTemplate; | |
− | + | # In MyWikiSkin.php, change make the other class to have your skin name together with the word Template, exempli gratia: class MyWikiSkinTemplate extends QuickTemplate; | |
− | + | # In MyWikiSkin.php, make $this->skinname to have a string value of your skin name, exempli gratia: 'mywikiskin'; | |
− | + | # In MyWikiSkin.php, make $this->stylename to have a string value of your skin name, exempli gratia: 'mywikiskin'; | |
− | + | # In MyWikiSkin.php, make $this->template to have a string value of your skin name properly capitalised with the word Template, exempli gratia: 'MyWikiSkinTemplate'; | |
− | + | # In your mywikiskin directory edit the image and CSS files; | |
− | + | # Edit and customise MyWikiSkin.php as you please; | |
− | + | # In LocalSettings.php set $wgDefaultSkin = 'mywikiskin'. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | # | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | In | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | In | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 20:56, 29 May 2007
You can change the look and layout of your Mediawiki site. The place to start is the wikimedia groups' meta pages.
There is the design document and the info on skins or just dive into all the examples of user styles
How to chage the Logo[edit | edit source]
You can change the Logo of the wiki by altering the $wgLogo variable in LocalSettings.php to the name of the image you want to use as a logo. Please note that this logo should be placed in the /skins/common/images/ folder.
$wgLogo = "$wgStylePath/common/images/freephile_sm_logo.gif";
How to change the favicon[edit | edit source]
You can change the icon that is displayed in the address bar of your browser by setting a value for $wgFavicon in the LocalSettings.php file
$wgFavicon = "http://www.freephile.com/images/logos/favicon.ico";
How to make your own skin[edit | edit source]
You can create a skin all by yourself by following the steps provided below:
- Go to your mediawiki directory;
- Copy the monobook directory and name it with the name of your skin, exempli gratia: mywikiskin;
- Copy the MonoBook.php file and name it with the name of your skin, exempli gratia: MyWikiSkin.php;
- Edit MyWikiSkin.php and change the class name to SkinMyWikiSkin, exempli gratia: class SkinMyWikiSkin extends SkinTemplate;
- In MyWikiSkin.php, change make the other class to have your skin name together with the word Template, exempli gratia: class MyWikiSkinTemplate extends QuickTemplate;
- In MyWikiSkin.php, make $this->skinname to have a string value of your skin name, exempli gratia: 'mywikiskin';
- In MyWikiSkin.php, make $this->stylename to have a string value of your skin name, exempli gratia: 'mywikiskin';
- In MyWikiSkin.php, make $this->template to have a string value of your skin name properly capitalised with the word Template, exempli gratia: 'MyWikiSkinTemplate';
- In your mywikiskin directory edit the image and CSS files;
- Edit and customise MyWikiSkin.php as you please;
- In LocalSettings.php set $wgDefaultSkin = 'mywikiskin'.