New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListResultPrinter / Fix usage of sep in format=template #2022
Conversation
http://sandbox.semantic-mediawiki.org/wiki/Issue/2022 Current output @kghbln FYI |
Just fetched the latest code on sandbox. Works perfect! Thanks! |
By coincidence, @kghbln found: with no
|
Great, that we found this prior to the release. |
@mwjames Should I open a separate issue allowing to track this? |
Maybe for the best. Also what I need is some kind of baseline that defines the behavior to avoid any future regression. We caught this just by mere chance!
Expects to output Issue: The default |
Just for my understanding: This means that when I upgrade to 2.5 I have to modify all |
If I remember correctly (off the top of my head), #2331 introduced
`$smwgResultFormatsFeatures` as means to allow to stick with pre-2.5
behaviour, so setting it to `SMW_RF_NONE` should avoid having to
update any of your existing queries. Of course, this also makes it
impossible to use the changes addressed in #2022.
I hope this helps otherwise please see the examples attached on each issue.
PS: Currently, my memory is a bit fuzzy on the issue, so the answer is
the best I can give you right now.
Cheers
…On 5/11/17, Stephan Gambke ***@***.***> wrote:
Just for my understanding: This means that when I upgrade to 2.5 I have to
modify all `{{#ask}}` calls with `format=template` and explicitly add a
`sep` parameter? Or should it be `listsep`?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#2022 (comment)
|
Ah, ok. Guess you had to break something to make it work properly. Just wish it wouldn't bite me now. :P |
I just came across this issue, since commas were missing on my wiki(s) since I updated SMW from 1.x to 2.5.5. I use many ask queries and I didn't want to change every single one of them individually. Also it seems I didn't get the point of the valuesep thing. So I just added this line to my LocalSettings.php and all commas reappeared: However I find it strange that default output behaviour changes, when I update SWM. |
The example should make it clear: https://sandbox.semantic-mediawiki.org/wiki/Template_sep_valuesep
Sometimes changes have to be made to bring more goodness. You always get occasional default setting changes, not just with SMW but e.g also with MW, but there is in most cases a way to retain the previous bahaviour to allow for migrating and you indeed found it: https://www.semantic-mediawiki.org/wiki/Help:$smwgResultFormatsFeatures Perhaps in this case we should probably have added this to a breaking changes section in the RELEASE NOTES. |
This PR is made in reference to: # [0, 1]
This PR addresses or contains:
This PR includes:
[0] Issues with the "sep" function in mode Query template.
[1] http://naruto.wikia.com/wiki/Thread:217742#29