Last modified: 2013-01-08 00:14:40 UTC
It seems `map' format ignores `intro', `outro', and `default' parameters. My code was: {{ #ask: ... | format = map | intro = <div class="my_map"> | outro = </div> | default = No points specified. }} If there are some points to show, result HTML code include neither <div class="my_map"> nor </div>. (I think I will request "class" parameter for formatting, but `intro' and `outro' parameters should work for `map' format the same way they work for `ol' and `ul' formats.) If there are no points to show, I would expect "No points specified" message. Instead of the message I see useless Gulf of Guinea map.
Right, it should support into outro and default. > Instead of the message I see useless Gulf of Guinea map. The map formats support a forceshow parameter which by default is "on". If you set it to "off", the map will only be shown when there are actual results.
I looked into how to best adding this and discovered the list and table formats add these params via SMWQueryPrinter::textDisplayParameters. I'm not sure why this is the case. Why not simply have this behavior for all formats? Until I have an answer to that question, I'm not adding this to SM, as more general support would be nicer. Markus, can you comment on this?
These parameters are now correctly held into account.