On Fri, 24 Apr 2015 16:44:52 +0200, Nasir Khan nasir8891@gmail.com wrote:
I am sorry that i used the word "Vecor Style" but i wanted to mention the "core style". In few pages and page sections i am getting formatted content and i do not have idea how to change that content. For example the search page[3]. I do not want to use the Mediawiki UI button style on that page, how can i do that?
If you're using reasonably recent MediaWiki version (since https://phabricator.wikimedia.org/T72351), you can override some built-in styles using $wgResourceModuleSkinStyles. https://www.mediawiki.org/wiki/Manual:$wgResourceModuleSkinStyles
For example, to get rid of everything related to MediaWiki UI (replace 'yourskinname' with the name of your skin):
$wgResourceModuleSkinStyles['yourskinname'] = array( 'mediawiki.ui' => array(), 'mediawiki.ui.checkbox' => array(), 'mediawiki.ui.radio' => array(), 'mediawiki.ui.anchor' => array(), 'mediawiki.ui.button' => array(), 'mediawiki.ui.input' => array(), 'mediawiki.ui.icon' => array(), 'mediawiki.ui.text' => array(), );
(It is a bit silly that there are this many modules to override, but oh well.)
Is there any way to use the same form style in all the pages, like Search, Allpages, Contact page, Login, Registration and so on? There is way to enable vFrom but if i want to develop my own style then what are the steps?
Current situation is pretty bad, because we have both "MediaWiki UI" (which is just a bunch of CSS) and the "MediaWiki theme" for "OOjs UI" (which is also a PHP and JS library; https://www.mediawiki.org/wiki/OOjs_UI). We're phasing out the former in favor of the latter; they implement similar but slightly different designs.
You could override OOjs UI styling with $wgResourceModuleSkinStyles too if you really wanted to, but it wouldn't be maintainable (it's in active development). OOjs UI supports creating multiple themes (and one more exists, called "Apex"), but right now there isn't a good way to switch between them in MediaWiki. :( I suggest subscribing to https://phabricator.wikimedia.org/T78367 and staying tuned.
I have a plan to build other few skins for mediawiki but the documentation are not helping me to do that fast.
There is also https://www.mediawiki.org/wiki/Manual:Skinning , I don't think it was mentioned in this thread before.