Page MenuHomePhabricator

SMW CSS not loaded (for smwtable) when SMW queries are only in a template
Closed, DeclinedPublic

Description

Author: uncoolbob

Description:
From http://semantic-mediawiki.org/wiki/Help:Table_format
"SMW formats its tables with CSS class="smwtable". Using this class on other tables to achieve similar formatting is possible, but will only work reliably if the according page contains a query or other SMW specific elements. In other cases, the SMW style files will not be loaded at all, so the style is not available."

The above statement is factually correct. However, most people would expect that the CSS would load if the page or one of its constituent templates contained a query or SMW specific element.

I'm getting an unformatted table on a page which only calls a template (containing an #ask: with format=template with intro and outro defined appropriately).

When I add a semantic property by hand to the page, it formats fine.

I'm on SMW Version 1.5g-SVN and MW 1.15.1


Version: unspecified
Severity: minor

Details

Reference
bz22729

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:59 PM
bzimport set Reference to bz22729.
Unknown Object (User) added a comment.Jun 5 2012, 11:34 PM

SMW related CSS or JS is only loaded into a page header when SMW properties/queries are used for that page in question otherwise the RL will not load any SMW module that would contain CSS/JS information.