https://bugzilla.wikimedia.org/show_bug.cgi?id=35211
Web browser: ---
Bug #: 35211
Summary: #ask behaviour change when querying for one page (SMW
1.7.1)
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Since probably SMW 1.7.0 the behaviour of #ask changed when querying for one
page, e.g.
{{#ask: [[Berlin]]
| ?
| ?Population
| ?Area#km²
| format=template
| template=Query output demo
}}
produced "3,391,409 people squeeze into the 891.85 km² of Berlin." in SMW
<1.7+, now it produces "Berlin people squeeze into the 3,391,409 of Berlin."
SMW >1.7+
As you do this with #show
{{#show: Berlin
| ?
| ?Population
| ?Area#km²
| format=template
| template=Query output demo
}}
nothing changed: "3,391,409 people squeeze into the 891.85 km² of Berlin."
A work-around would be
{{#ask: [[Berlin]]
| ?Population
| ?Area#km²
| format=template
| template=Query output demo
}}
or
{{#ask: [[Berlin]]
| mainlabel=-
| ?Population
| ?Area#km²
| format=template
| template=Query output demo
}}
This may be inspected on [1].
I do not know if this is a bug since there are other ways to get the intended
results. However I do not know if this was done intentionally since it breaks
consistency between #ask and #show.
[1] http://semantic-mediawiki.org/wiki/Help:Template_format
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l