https://bugzilla.wikimedia.org/show_bug.cgi?id=23297
Markus Krötzsch <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX Severity|major |minor --- Comment #1 from Markus Krötzsch <[email protected]> 2010-05-23 18:13:34 UTC --- SMW::on is an internal pseudo-annotation that SMW uses to avoid semantic markup in templates being interpreted when using templates in queries. The problem here is that MediaWiki does not interpret link syntax [[ ... ]] in MediaWiki:Sidebar. Now on the other hand, this is not really a problem: the parsing of complex markup in such heavily used locations is disabled on purpose. I am even surprised that parser functions and templates are allowed there. Your problem thus is simply due to an unexpected use of SMW in a context it is not made for. You will find that many #ask formats, and many other parser functions do not work properly in MediaWiki:Sidebar. This is a consequence of some design choices in MediaWiki, and not a bug as such. It simply was intentionally disabled. Since this use of MW or SMW is not intended, it is likely to cause unforeseen problems or to break in future versions, even if worked around for now. But if you *really* want to do this, the following works: * Create a new Type:String property, say "sidebar item". * For each page that should appear in the sidebar, assign the value "* Pagename|Sectionname" to this property. Due to the | symbol, this cannot be done with the [[ :: ]] syntax. Instead, use #set like this: {{#set: sidebar item=* Pagename{{!}}Sectionname}} where the Template:! is the usual | template like on Wikipedia. This assignment could be accomplished via some template. * Then modify your MediaWiki:Sidebar to contain something like this: """ * Some section name ** help|A fixed help link ** Test|Some other fixed link {{#ask: [[Sidebar item::+]] |mainlabel=- |intro=* |?sidebar item= |link=none |format=list |sep= * }} """ This works for me on MW 1.17alpha (r63248), SMW (r66801). Let me repeat: this is a gross hack that is likely to cause trouble of various kinds. If it works properly, any editor of your site gains the ability to modify the sidebar in arbitrary ways (to the extent that editing MediaWiki:Sidebar would allow it). It is also not clear how the use of queries in messages affects performance or how it interacts with in-memory caches used for messages. This is all that I can do for this feature request. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
