Last modified: 2008-11-19 16:16:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12935, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10935 - Re-format/style facts section
Re-format/style facts section
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-15 04:02 UTC by Eep²
Modified: 2008-11-19 16:16 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Eep² 2007-08-15 04:02:29 UTC
I would like to reformat/restyle the "Facts about {{PAGENAME}}" section. Specifically, I want to group relationships/attributes and change how the layout is--perhaps even using that section as the entire page since it will end up duplicating everything on the page anyway as how I envision linking together everything. I could also just hide the "div.smwfact" CSS element but then I'd need a way to create all those semantic links...
Comment 1 Siebrand Mazeland 2008-08-11 11:05:25 UTC
Re-assign to extension developer for triage/comments.
Comment 2 Markus Krötzsch 2008-11-19 16:16:42 UTC
SMW 1.4, to be released soon, now includes a hook "smwShowFactbox" that can be used for modifying Factbox display with extension code. Functions registered to this hook will receive the result text (which they may modify/extend), and the printed data (contained in a suitable object). If the hook function returns FALSE, then the Factbox of SMW will not be displayed, thus allowing extensions to completely replace the Factbox. Otherwise, extensions can also add output text before the Factbox and return TRUE to have the Factbox printed as usual.

See SMW_Factbox.php for the current Factbox display code (probably a good basis for doing modifications). This file also contains the hook call (the code is currently the only detailed documentation for this hook).

Beyond this, no further support for Factbox customisation will be provided by SMW. There are just too many possible styling options to attempt to cover them with configuration settings in SMW. Factbox printing extensions should require only little code, but could still be publicly released as add-ons to SMW.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links