Last modified: 2008-09-15 19:29:03 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 T16173, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14173 - templates specified in inline query don't show up in Templatelink
templates specified in inline query don't show up in Templatelink
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
http://sandbox.semantic-mediawiki.org...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-18 19:58 UTC by DaSch
Modified: 2008-09-15 19:29 UTC (History)
2 users (show)

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


Attachments

Description DaSch 2008-05-18 19:58:08 UTC
When using a template for the output of the ask-parser there should be created a link to the template
1. Because the templates are now listed as not used
2. Because then the template could be seen linked at the bottom of the page when editing
Comment 1 S Page 2008-06-09 23:38:29 UTC
I see this bug on my local SMW 1.1/MediaWiki 1.11.0 installation, but not on sandbox.semantic-mediawiki.org running SMW 1.2 D pre-release.

On sandbox, so long as the inline query displays some results using the template, the page shows up in Special:WhatLinksHere/Template:MyTemplate and the template shows up in the page's "Templates used in this preview:".  (I didn't test cases where the inline query output is/isn't SMW_OUTPUT_HTML.)

So maybe recent code fixed this bug and it's WORKSFORME.

''If'' you wanted to address cases where the inline query never invokes the template (no results or limit=0), then I skimmed my 2007 MediaWiki code, and there's an explicit ParserOuput->addTemplate() call; or invoking Parser->fetchTemplate() to get the template contents calls addTemplate().  But relying on MediaWiki's normal parsing to notice the use of a template is probably the best way to go.
Comment 2 Markus Krötzsch 2008-09-15 19:29:03 UTC
This should work properly in SMW 1.3 (maybe in 1.2 as well, but I did not check), as long as #ask is used. The old <ask> did not show the desired behaviour, but there is no reason to use this outdated syntax any more.

In principle, SMW's architecture allows for result formats that use templates internally without MediaWiki noticing it, and in this case the templates would still not appear. But all of SMW's built-in template-based formats should work as expected.

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


Navigation
Links