Last modified: 2011-03-13 18:05:27 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 T21477, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19477 - The ask inline query "format=template" should imply "link=none".
The ask inline query "format=template" should imply "link=none".
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-02 12:29 UTC by Dan Bolser
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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


Attachments

Description Dan Bolser 2009-07-02 12:29:34 UTC
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
Comment 1 Markus Krötzsch 2009-07-06 08:39:25 UTC
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).
Comment 2 User:JesseW 2009-12-22 20:55:30 UTC
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. 

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


Navigation
Links