Page MenuHomePhabricator

Failure of sending parameters to semantic queries from another wiki via $wgEnableScaryTranscluding
Closed, DeclinedPublic

Description

Author: office

Description:
It is not possible to send parameters to semantic inline queries inside templates from another wiki via $wgEnableScaryTranscluding.

Example:
wiki1 and wiki2, wiki1 to wiki2 iw_prefix='interwiki2'

Wiki1 wiki1_page

{{raw:interwiki2:wiki2_tpl|direct parameter|city|berlin}}

Wiki2 template wiki2_tpl

Simple parameter {{{1}}} works, but...
{{#ask: [[{{{2}}}::{{{3}}}]]

format=table

}}
not working...

Recommended settings:

LocalSettings.php
#Transwiki transclusion
$wgEnableScaryTranscluding = true;
$wgTranscludeCacheExpiry=0; # for testing purposes

Recommendations from http://www.mediawiki.org/wiki/Manual_talk:$wgEnableScaryTranscluding, 4th Update -
$forceRawInterwiki variable in Parser.php set to true.
Setup interwiki with ugly url
INSERT INTO interwiki SET iw_prefix='interwiki2', iw_url='http://www.wiki2.com/v/index.php?title=$1', iw_local=1, iw_trans=1 ;

Solving this issue would lead SMW to another level: semantic queries across wikis.

Platforms used: MW 1.14.1, SMW 1.4.2


Version: unspecified
Severity: enhancement

Details

Reference
bz20397

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:46 PM
bzimport set Reference to bz20397.
Unknown Object (User) added a comment.Feb 11 2014, 1:09 AM

It is not supported in the current 1.9.1 release and unless a volunteer developer finds the time to implement a solution this functionality will also be not supported in future.

Closing this request after being open for 5 years.