Last modified: 2014-02-11 01:26:09 UTC
When creating an inline query with SMW, if using the "format" of "ul" or "ol", with "columns" set to a number higher than "1", the HTML code breaks. For example: {{#ask:[[Class::MyClass]] |format=ul |columns=3 }} Produces lists that look like: <ul><div style="float: left; width: 25%"> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> </div><div style="float: left; width: 25%"> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> </div><div style="float: left; width: 25%"> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> <li><a href="/wiki/index.php/MyPage" title="MyPage">MyPage</a></li> </div> </ul><br style="clear: both" /> As you can see, the closing "</li>" tags are not interpreted as a proper ending of a list element, which may be because the "<ul>" tags are outside the "<div>" tags breaking up the list.
Created attachment 7504 [details] Proposed fix to extensions/SemanticMediaWiki/includes/SMW_QP_List.php
This no longer seems to be an issue with SMW 1.9.1.