Last modified: 2012-06-05 23:34:46 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 T24729, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22729 - SMW CSS not loaded (for smwtable) when SMW queries are only in a template
SMW CSS not loaded (for smwtable) when SMW queries are only in a template
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-05 15:34 UTC by Bob MacCallum
Modified: 2012-06-05 23:34 UTC (History)
1 user (show)

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


Attachments

Description Bob MacCallum 2010-03-05 15:34:48 UTC
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
Comment 1 MWJames 2012-06-05 23:34:46 UTC
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.

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


Navigation
Links