Last modified: 2011-04-13 00:15:44 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 T28692, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26692 - Properties should be parsed by SMW before being used as input for other extensions
Properties should be parsed by SMW before being used as input for other exten...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-12 14:56 UTC by Pete C
Modified: 2011-04-13 00:15 UTC (History)
2 users (show)

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


Attachments

Description Pete C 2011-01-12 14:56:12 UTC
Extensions using parser function hooks receive the raw wikitext.

To reproduce:

Wiki page: SampleAudioFilePage:

{{TestDoc
|HasAudioFile
}}

Wiki page: Template:TestDoc:

{{#widget:Html5media|url={{{HasAudioFile}}} }}  (Widget extension) 
<player>{{{HasAudioFile}}}</player> (Player extension)

Result of viewing SampleAudioFilePage:

Extensions fail to locate asset and report an error.  At the code level, the extension's hooked function will contain the raw template wikitext "{{{HasAudioFile}}}" instead of the expected page value "sample.mp3".

Expected results:

The value "sample.mp3" should be passed as the extension's input.



MediaWiki 1.16
Semantic Bundle 0.4.2.20101105
Comment 1 Yaron Koren 2011-04-13 00:15:44 UTC
I'm changing the status of this bug to "invalid" - unless I'm missing something, this bug isn't SMW-related in the slightest; rather, the problem is that tag functions (like in the Player extension) can't take in template parameters. There are a few different workarounds to that problem, but they're outside the scope of SMW.

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


Navigation
Links