Re: [SMW-devel] New: Magic words for Factbox control

2008-03-14 Thread zehetner
Quoting Jon Lang <[EMAIL PROTECTED]>: > Gu wrote: > > So it might not be for general use (although it doesn't do any harm, it > just > > doesn't work if the class 'collapsible' is added and the JS isn't > installed. > > If installed it would of course be nicer to control that by using > somethi

Re: [SMW-devel] New: Magic words for Factbox control

2008-03-14 Thread Jon Lang
Gu wrote: > So it might not be for general use (although it doesn't do any harm, it just > doesn't work if the class 'collapsible' is added and the JS isn't installed. > If installed it would of course be nicer to control that by using something > like __HIDDENCOLLAPSEFACTBOX__ and __SHOWNCOLLA

Re: [SMW-devel] New: Magic words for Factbox control

2008-03-14 Thread zehetner
Upps sorry, I completely forgot that this is an addition to Common.js. As it is used on Wikipedia (http://en.wikipedia.org/wiki/Wikipedia:Collapsible_tables) and I must have installed it quite long ago on my wiki I thought the 'collapsible' class comes with the standard Mediawiki installation like

Re: [SMW-devel] New: Magic words for Factbox control

2008-03-13 Thread Markus Krötzsch
On Freitag, 29. Februar 2008, [EMAIL PROTECTED] wrote: > Thanks Markus - although I must admit I also like to exchange in my > installation the line > > SMWFactbox::printProperties($text); > > with > > SMWFactbox::printProperties($text = > str_replace('class="smwfacttable">','class="smwfacttable co

Re: [SMW-devel] New: Magic words for Factbox control

2008-02-29 Thread zehetner
Thanks Markus - although I must admit I also like to exchange in my installation the line SMWFactbox::printProperties($text); with SMWFactbox::printProperties($text = str_replace('class="smwfacttable">','class="smwfacttable collapsible collapsed">',$text)); to be able to toggle between showing

[SMW-devel] New: Magic words for Factbox control

2008-02-29 Thread Markus Krötzsch
Minor feature update in SVN (and in any future SMW release): __NOFACTBOX__ and __SHOWFACTBOX__ can now be used to hide or display (if nonempty) the Factbox on any page, independently of the global wiki settings. I assume that this can also be put into templates. Minor but useful. Cheers, Mar