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 the class="sortable" but it
does not (http://meta.wikimedia.org/wiki/Help:Collapsing).

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 useing something
like __HIDDENCOLLAPSEFACTBOX__ and __SHOWNCOLLAPSEFACTBOX__ for initially hidden
resp. shown collapsible factboxes).

Cheers,
Gu

 
* MediaWiki: 1.11.1 (r30349)
* PHP: 5.2.1 (apache2handler)
* MySQL: 4.0.14 
* Semantic MediaWiki (version 1.0.1SVN)


Quoting Markus Krötzsch <[EMAIL PROTECTED]>:

> 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 collapsible
> > collapsed"><tr><th colspan=2></th></tr>',$text));
> >
> > to be able to toggle between showing and hiding the factbox :)
> 
> Could you elabortate? I tried inserting that HTML in serveral ways now and it
> 
> did not work as desired. Is any further configuration needed? Which version 
> of MW/SMW are you on?
> 
> Regards,
> 
> Markus
> 
> >
> > Cheers,
> > Gu
> >
> > Quoting Markus Krötzsch <[EMAIL PROTECTED]>:
> > > 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,
> > >
> > > Markus
> > >
> > > --
> > > Markus Krötzsch
> > > Institut AIFB, Universität Karlsruhe (TH), 76128 Karlsruhe
> > > phone +49 (0)721 608 7362          fax +49 (0)721 608 5998
> > > [EMAIL PROTECTED]          www  http://korrekt.org
> 
> 
> 
> -- 
> Markus Krötzsch
> Institut AIFB, Universität Karlsruhe (TH), 76128 Karlsruhe
> phone +49 (0)721 608 7362          fax +49 (0)721 608 5998
> [EMAIL PROTECTED]          www  http://korrekt.org
> 





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to