Hello, I'm creating a extension that show a list of articles included in two categories. The problem is that some ones have a lot of results and i can't paginate with ordynary methods because the wiki dont get my vars across the urls bar.
Someone knows how i can paginate a mysql query like the pagination in the Categories in mediawiki with a extension? Thankyou
I'm not sure if this occurs for anybody else, but Monobook seems to have very large spacing between lines compared to actual paragraph spacing. It doesn't seem to occur for any other template, but I really enjoy everything else about Monobook... any ideas?
I'm sure it's a simple change in the skin, but I don't know what to change to reduce the line spacing.
Brett O'Donnell wrote:
I'm sure it's a simple change in the skin, but I don't know what to change to reduce the line spacing.
In main.css, look for:
#content { background: white; color: black; border: 1px solid #aaa; border-right: none; line-height: 1.5em; }
Change line-height to something else. If you don't know CSS, an em is a wide space for a font. So the line height shown is one and a half times the widest character (IIRC). You could just use a number without em and it should choose the height to be that number times the font height rather than the font width.
Mike
In main.css [...] Change
I would recommend using [[MediaWiki:Monobook.css]] (or [[MediaWiki:Common.css]]) instead.
-- F.
Can I just paste that section right into Mediawiki:Monobook.css inside Mediawiki?
I'm sorry if the question seems dumb, I'm learning as fast as I can... but there's always that big jump from "able to read/use code" to "master of teh LAMP, lord of CSS!"
On Sep 3, 2007, at 2:39 AM, Frederik Dohr wrote:
In main.css [...] Change
I would recommend using [[MediaWiki:Monobook.css]] (or [[MediaWiki:Common.css]]) instead.
-- F.
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Can I just paste that section right into Mediawiki:Monobook.css inside Mediawiki?
Yup, that should work. If it doesn't, you could take a look at other wikis*; that should give you a clue.
-- F.
* e.g. http://www.mediawiki.org/wiki/MediaWiki:Monobook.css and http://www.mediawiki.org/wiki/MediaWiki:Common.css
Sweet! Thanks, I got it all figured out. Our site has a lot of content sourced from instructional materials, and it was pretty hard to read 5 paragraphs if you can't see when the paragraphs end!
If you want to see, check out www.springboarddentistry.com/wiki
On Sep 3, 2007, at 7:13 AM, Frederik Dohr wrote:
Can I just paste that section right into Mediawiki:Monobook.css inside Mediawiki?
Yup, that should work. If it doesn't, you could take a look at other wikis*; that should give you a clue.
-- F.
http://www.mediawiki.org/wiki/MediaWiki:Common.css
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Sweet! Thanks, I got it all figured out.
Glad we could help.
Though, looking at your wiki, I would recommend not to decrease the line height (it looks pretty cramped otherwise) but to increase the paragraph spacing instead - e.g. like this:
#content p { margin-bottom: 1em; }
As an aside, please take a look at the following excerpt from the weekly posting "Welcome to mediawiki-l":
When creating a new thread, do not reply to an existing message and change the subject. This will confuse peoples' mail readers, and will people reading your mail. Instead, compose a new message for your result in fewer post.
(I don't mean to offend, only to inform.)
-- F.
On Sep 3, 2007, at 9:25 AM, Frederik Dohr wrote:
Sweet! Thanks, I got it all figured out.
Glad we could help.
Though, looking at your wiki, I would recommend not to decrease the line height (it looks pretty cramped otherwise) but to increase the paragraph spacing instead - e.g. like this:
#content p { margin-bottom: 1em; }
As an aside, please take a look at the following excerpt from the weekly posting "Welcome to mediawiki-l":
When creating a new thread, do not reply to an existing message and change the subject. This will confuse peoples' mail readers, and will people reading your mail. Instead, compose a new message for your result in fewer post.
(I don't mean to offend, only to inform.)
I 100% agree, in reality, I tried sending it as a new thread first... but for some reason it didn't go through. I hit reply to double check that it was the correct address, and it was sent fine the second time.
I think my email client might have chosen a "non-subscribed" email addy to send from the first time.
Thanks for the idea! While I hate having to learn ANOTHER new syntax this week (on top of php, wiki, and sql), CSS is definitely pretty cool when implemented as well as MediaWiki does it.
I'll play back and forth between the different line heights. I think I like the spacing a little tighter than Wikipedia's, but that might just be a Mac thing. Having a paragraph margin will give me a bit more room to play with... literally!
Thanks, Brett
On Sep 2, 2007, at 5:16 PM, VicHaunter wrote:
Hello, I'm creating a extension that show a list of articles included in two categories. The problem is that some ones have a lot of results and i can't paginate with ordynary methods because the wiki dont get my vars across the urls bar.
Look at wfViewPrevNext in GlobalFunctions.php To do paging in my UserRightsList Extension, this is what I did:
function navLinks(){ global $wgContLang; $atend = $this->num < $this->limit; $params = array(); if( isset($this->yearfrom) ) $params['yearfrom'] = $this->yearfrom; if( isset($this->monthfrom) ) $params['monthfrom'] = $this-
monthfrom;
if( isset($this->yearto) ) $params['yearto'] = $this->yearto; if( isset($this->monthto) ) $params['monthto'] = $this->monthto; if( isset($this->username) ) $params['username'] = $this->username; if( isset($this->group) ) $params['group'] = $this->group; return wfViewPrevNext( $this->offset, $this->limit , $wgContLang->specialPage( $this->getName() ), wfArrayToCGI( $params ), $atend ); }
The $params lets you pass your vars to the paging system. The parameters I used were all set elsewhere in the script from $wgRequest. Hope this helps.
Jim
Someone knows how i can paginate a mysql query like the pagination in the Categories in mediawiki with a extension? Thankyou _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
mediawiki-l@lists.wikimedia.org