Page MenuHomePhabricator

The ask inline query "format=template" should imply "link=none".
Closed, DeclinedPublic

Description

Author: dan.bolser

Description:
I think that when using "format=template", there is no benefit from
passing the resulting page titles as links.

Not passing the resulting page titles as links has no drawbacks (as
the link can easily be added back within the template).

Passing the link can cause problems that are tricky to debug when
writing 'sub-queries' within the template. I made an example of this
latter kind of problem here:

http://smw.referata.com/wiki/Sandbox

The solution to the problem I was having when using a query within a
template called via "format=template" was to specify "link=none".

Cheers,
Dan.

P.S. How come "link = none" doesn't work but "link=none" does work?
Most other ask query parameters don't seem to mind the former syntax.

Join the party irc://irc.freenode.net/#semanticmediawiki


Version: unspecified
Severity: enhancement

Details

Reference
bz19477

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 10:41 PM
bzimport set Reference to bz19477.

I first thought that this is clearly a useful change, that essentially all applications of format=template would want. Now I found that I actually have various cases where format=template is used without link=none, simply to display links in a different layout without doing any smart processing in the template.

So changing the behaviour will break such uses of format=template, and it will potentially cause confusion again. So some uses of the format will be more complicated and confusing either way. Could there be other ways (e.g. better documentation) to address these difficulties?

Your P.S. was already fixed (there was a separate bug there).

I agree that link=none should be separate from format=template; as long as you are aware of them, it's no harder to match the automatically made links than to match the plain format -- and if you only want to modify some of the values, it's nice not to have to manually link-ify the other ones.

A possible improvement to help debug problems would be to have a note come up on preview if format=template is used without link=none, reminding the user that automatic linking is enabled.