Thread:Project:Support desk/Should I use MediaWiki for my project?/reply (4)

For the sake of help, and for confessing such an idiot I am, I am gonna write here how I included page specific tabs in Vector skin. I dug up around the net to find a solution, instead of just going to Vector.php and understanding the code.

firstly add this line to the Vector.php, above the html code:

$this->data['title'] = $this->getSkin->getTitle;//helps you get the title of the current page, i.e. MainPage

then, add this code to the div "mw-navigation". I changed the left-navigation's code, you can add it whereever you like:

data['title'] == "Page-Title" ) { ?> write html code here 

Generally, sounds like a bad solutions since case specific code is not favored in vector.php, like everything is automated with a lot of variables thus ( x == "page-title") seems funny. However, there may be some cases where this solution suits just well.