https://bugzilla.wikimedia.org/show_bug.cgi?id=18910

           Summary: Setting "{{#ask: ... |link=none}}" works, but "{{#ask:
                    ... |link= none}}" does not.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Setting "{{#ask: ... |link=none}}" works, but "{{#ask: ... |link= none}}" does
not.

I want to remove links to properties returned by an ask query, which appear for
properties of type page. The answer is to set "|link=none" in the ask query.
However, unlike most parameters of the ask query, the value of this parameter
is sensitive to leading white space. i.e. setting "|link= none" is silently
ignored. 

As the behaviour of "link=none" is not easy to understand for a newbie, this
can be confusing. Especially when one searches for interactions with other
parameters. (Basically I just spent 20 minutes 'debugging' this problem).

Could you get the ask query to throw an error when incorrect parameters are
used? DPL does this, and its very useful, as it will list the correct options
for a parameter if you use an incorrect one.

Also, please let me know where in the code a potential fix for this white-space
problem could be found.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to