Last modified: 2013-05-24 12:25:17 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 T50056, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48056 - line breaks no longer work with text properties
line breaks no longer work with text properties
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized major with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-03 21:03 UTC by Ad Strack van Schijndel
Modified: 2013-05-24 12:25 UTC (History)
4 users (show)

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


Attachments

Description Ad Strack van Schijndel 2013-05-03 21:03:40 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
Comment 1 Ad Strack van Schijndel 2013-05-24 12:25:17 UTC
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.

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


Navigation
Links