Forum:SMW/SF - Fact box defaults visible ... can this be toggled?

The semantic Factbox is the list at the foot of an article titled Facts about 

That list may be helpful while developing a wiki or even while previewing a wiki page in the editor preview but I seriously question it's value given that usually the same information already appears in table or some other form in the article above. Furthermore, Special:Browse/  can always be used to access the same list.

I read at the SMW User forum that the Factbox is hidden by default for Semantic mediawiki 1.3 and later. (Wikia is using SMW 1.5) I read that Factbox visibility is dependent on the parameter $smwgShowFactbox in the file {MWFOLDER}\extensions\SemanticMediaWiki\includes\SMW_Settings.php


 * Is this a wikia default that I can request be changed for a specific wiki?

The ideal solution would be for all pages in a certain category to have the Factbox hidden. This might be specified via some magic word or template used at the category page. najevi 09:20, 10 July 2009 (UTC)

You can use CSS to always hide the factbox for a certain namespace. To select a set of pages, there is another solution. Place at the bottom of the page; this needs to be done with a template, or the Rich Text Editor will correct this, both in Rich Text and Wikitext mode. Put .hideSMW .smwfact{ display:none; } in your MediaWiki:common.css file. That will hide the factbox on pages that you have marked as above. -- ◄mendel► 13:25, 12 July 2009 (UTC)

Show / Hide
A toggle that shows or hides the factbox like the page contents would be very useful. The factbox would be collapsed (hidden) by default and opens when you click "show". -- ◄mendel► 13:37, 12 July 2009 (UTC)
 * But since it is a div style, this could be done via javascript in the same way that collapsible infoboxes work, no? We have working collapsible infoboxes at w:c:Genealogy:Template:Navbox.  The hide key javascript is in one of our mediawiki namespace files- I forget where I stuck it but as I recall the javascript was a total copy of en wikipedias collapsible navbox JS.  18:26, 12 July 2009 (UTC)

Magic word for hiding Facts box
__NOFACTBOX__
 * This magic word already exists for this purpose. It is found in the documentation.   18:05, 12 July 2009 (UTC)
 * Many thanks. That fits the bill perfectly. For others searching for this documentation (as I was) it can be found at Help:Configuration. najevi 23:21, 12 July 2009 (UTC)

If you run into other issues regarding SMW, feel free to drop me a line at my talk page at Familypedia. It may seem tedious, but reading the entire set of SMW pages is a good idea for people intending on making significant use of SMW. There are some one sentence pearls in there that are easy to overlook. Any one of these can easily save the time spent on reading the pages methodically. 00:48, 13 July 2009 (UTC)