Last modified: 2013-05-24 12:25:17 UTC
Line breaks don't work in some situations when querying test properties. I tried three cases. The starting point is two pages (Test1 and Test2) with a text property 'Description'. The descriptions on Test1 and Test2 are: This is the first test page *Trying a bulleted list *With three bullets *asdf asdf asdf and: This is the second test page #Trying a numbered list #With only two lines With a plain 'ask': {{#ask:[[Category:Test]] |?Description }} the result is as expected: A table with two columns and two rows. The descriptions have line breaks, bullets and numbers as expected. With an ask aimed at only showing the descriptions: {{#ask:[[Category:Test]] |mainlabel=- |?Description= }} the result is not as expected. Both descriptions appear in one line separated by a ','.: This is the first test page *Trying a bulleted list *With three bullets *asdf asdf asdf , This is the second test page #Trying a numbered list #With only two lines With a 'show': {{#show:Test1 |?Description }} the result is also not as expected: This is the first test page *Trying a bulleted list *With three bullets *asdf asdf asdf Versions used: MW 1.20.3 SMW 1.8.0.4
There is a workaround: it seems that there is no problem if the text is showed in a template. So: {{#ask:[[Category:Test]] |?Description |format=template |template=Show description }} and the only thing this template does is show the description ({{{2|}}}) the result is fine.