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
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
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
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
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
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