If it's only required only to show/hide fact box, then it can be matter of simple JavaScript that hides the box and leaves only "show facts" link - similar to how TOC behaves.

On 10/9/07, Markus Krötzsch <mak@aifb.uni-karlsruhe.de> wrote:
On Dienstag, 2. Oktober 2007, Sergey Chernyshev wrote:
> Markus, I wonder if it makes sense to allow users define factbox behavior
> through User Preferences? Not sure if preferences are easy to extend in MW
> though.

The problem is that the Factbox technically is part of the page text, and this
cannot be changed by user settings (even if it is not HTML-cached, it is
usually parser-cached, and not processed again when viewed by some user).

This works differently for categories, since they are part of the parser cache
and are added dynamically when the output is sent to some user. But without
changes to MW's parser caching and maybe skins, I fear that we cannot make
the Factbox user-specific. But ideas how to do it are still appreciated.

Markus.

>
> On 10/2/07, Markus Krötzsch <mak@aifb.uni-karlsruhe.de> wrote:
> > == SMW1.0 feature feed ==
> >
> > Some wikis completely disable the Factbox for display, and I recently
> > found
> > that this makes it rather hard to debug SMW inputs properly (since errors
> > are
> > only shown in the Factbox). So here are some features that I have added
> > recently in SVN, and that will provide some extra config options that
> > users
> > may care to customise:
> >
> > * Edit-Factbox: there are now two settings, $smwgShowFactbox and
> > $smwgShowFactboxEdit, which let you customise Factbox occurrence. The
> > first
> > is the old one, while the second now let's you choose another option for
> > previews during editing. For instance, you can have the config
> >
> > $smwgShowFactbox = SMW_FACTBOX_HIDDEN;
> > $smwgShowFactboxEdit = SMW_FACTBOX_NONEMPTY;
> >
> > to hide Factboxes in pages, but make them visible for editors during
> > preview.
> > the default is SMW_FACTBOX_NONEMPTY for both.
> >
> > * Special properties only: in addition to SMW_FACTBOX_HIDDEN and
> > SMW_FACTBOX_NONEMPTY, there now is another option SMW_FACTBOX_SPECIAL
> > that will show Factboxes only when there are special properies given on
> > that page
> > (e.g. on property pages).
> >
> > * Inline warnings: warning messages caused when SMW does not understand
> > some
> > property value are now displayed in cute little warning tooltips directly
> > after the place where they occurred, thus simplifying debugging. This can
> > be
> > switched off by setting "$smwgInlineErrors = false;" in your
> > LocalSettings.php.
> >
> > I also did further changes to optimise our JavaScript and CSS inclusion,
> > leading to faster page loads.
> >
> > Cheers,
> >
> > Markus
> >
> > --
> > Markus Krötzsch
> > Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
> > phone +49 (0)721 608 7362        fax +49 (0)721 608 5998
> > mak@aifb.uni-karlsruhe.de        www  http://korrekt.org
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Semediawiki-user mailing list
> > Semediawiki-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user



--
Markus Krötzsch
Institut AIFB, Universät Karlsruhe (TH), 76128 Karlsruhe
phone +49 (0)721 608 7362        fax +49 (0)721 608 5998
mak@aifb.uni-karlsruhe.de        www  http://korrekt.org




--
Sergey Chernyshev
http://www.sergeychernyshev.com/