Jump to content

Topic on Extension talk:IframePage

Problems with piping:

3
132.252.215.221 (talkcontribs)

I'm running MW 1.28.

Two pages are noted in the array in localsettings:

$wgIframePageSrc = array( 'learningapps' => 'https://learningapps.org/watch?v=', 'YouTube' => 'http://www.youtube.com/embed/' );

When using the extension via special:Iframepage/ .... Both sources work fine.

If I use the piping route via : {{Special:IframePage|'YouTube'|path=XXX}} , the extension behaves as if no parameter was given, defaulting to whatever comes first (in the above example of $wgIframePageSrc learningapps, but if I switch position it defaults to Youtube.

132.252.215.221 (talkcontribs)

ugh..

Thanks to Areoids reply I realised:

If you need to pass in the url then use pipes the same way you would for other mediawiki templates: {{Special:IframePage|Youtube|path=sYgxTkg2j5Hxoeei/embed}}

should be

{{Special:IframePage/Youtube|path=sYgxTkg2j5Hxoeei/embed}}

212.232.61.156 (talkcontribs)

23423423

Reply to "Problems with piping:"