Changes

Jump to navigation Jump to search
894 bytes removed ,  10:08, 19 July 2016
updates info on how to make your own skin by referring to Daniel Friesen's tutorials and the manual
== How to make your own skin ==
A skin generally has it's own directory, plus two setup files.If you wanted to create [[mw:User:Dantman|Daniel Friesen]] offers a skin called 'Happy' you would have<pre>happyHappy[https://blog.phpHappyredwerks.deps.php<org/2012/02/28/mediawiki-subskin-tutorial/pre>in good tutorial] on how to subclass the 'skins' directory. The easiest way to create your [[mw:Skin:Vector|Vector skin is ]] to copy the monobook skin and start from there. You can create a new derivative skin all by yourself by following the steps provided below: # Go to your mediawiki 'skins' directory;# Copy the monobook directory and name it with the name of your skin: happy;# Copy the MonoBook.php file and name it with the name of your skinAnd his [https: Happy//blog.php;# Edit Happyredwerks.php and change the class name to SkinHappy: <source lang="php">class SkinHappy extends SkinTemplate;<org/source># In Happy.php, change the template class to have your skin name together with the word 'Template': <source lang="php">class HappyTemplate extends QuickTemplate;<2012/source># Also in Happy.php, make the references to the skin match the names:<source lang="php">$this->skinname = 'happy'; 02/08/ matches the physical directory name$thismediawiki->stylename = 'happy'; // matches the physical directory name$thisskinning->template = 'HappyTemplate'; tutorial// matches MediaWiki skinning tutorial] is the template class name</source># In your happy directory edit basis for the image and CSS files until your heart is content;# Edit and customise Happy[[mw:Manual:Skinning Part 1|official manual on skinning]].php as you please;
== Making your Skin Available ==
4,558

edits

Navigation menu