Last modified: 2014-07-22 01:43:59 UTC
Hi, I am working on a simple MediaWiki skin, 'MediaWikiBootstrap' based on Bootstrap 3. You can find the source code at https://github.com/nasirkhan/mediawiki-bootstrap. The skin required to have the 'responsive' feature, Bootstrap made this a lot easy. The article page and main skin elements are added in the skin. But i am facing some issues to design the search result pages. MediaWiki loads all the contents of the page and it is not responsive at all. There is no doc on designing the 'Search result page'. I asked this question on the MediaWiki Support Desk [1] and 'User:Florianschmidtwelzow' informed me that i might need to change the mediawiki core functions for design the 'Search Result page'. Here my question is, * Is there any plan to address this issue? * Am i the first person who is facing this problem? * Can you please suggest an way to resolve this issue fast? [1] - https://www.mediawiki.org/wiki/Thread:Project:Support_desk/how_to_design_the_%27Search_result_page%27_of_a_MediaWiki_Skin%3F_ondiscussionpage:Project:Support_desk -- Nasir Khan Saikat
If you mean changing the HTML generated by MediaWiki, then that's probably not possible from a skin. If you mean changing the CSS styles, then you can mostly do this already (the <body> element has different classes on each page on the wiki, you can use '.mw-special-Search' to detect Special:Search), and overriding the default styles will become a lot easier in MediaWiki 1.24 when https://gerrit.wikimedia.org/r/#/c/141259/ (or some variant of this) is accepted.
Yes i want to change the generated HTML. i have seen that there are CSS class for each different block, but i already have a full prepared CSS and now i might have to write those again. Thanks for letting us know that, you have a plan to work on this. But i might have to wait another 6 months to get this new changes :) .
I'm not sure which problem you'd like to solve here, and if that's actually an enhancement request which is a common usecase. Proposing WONTFIX...
Yeah, changing page HTML is not really possible, nor feasible to implement. Sorry :(
Well, it is possible, that's what MobileFrontend does. It still gives me the creeps though, so pretty please don't :P