Topic on Extension talk:Iframe

when using template tag it doesn't allow any key except the default local

5
173.246.232.42 (talkcontribs)

when using template tag it doesn't allow any key except the default local

173.246.232.42 (talkcontribs)

For whatever reason the "key" wont pass on as an argument, either way added a line to read serverkey and works now.

Vicarage (talkcontribs)

Still seeing this with 0.09 (2021-06-27). To be clear, if you hoped to have

$wgIframe['server']['wikipedia'] = [ 'scheme' => 'https', 'domain' => 'en.wikipedia.org' ];
<iframe path='wiki/London'> key="wikipedia" </iframe>

you actually need to use the hack

$wgIframe['server']['local'] = [ 'scheme' => 'https', 'domain' => 'en.wikipedia.org' ];
<iframe path='wiki/London'> key="local" </iframe>

Because the #tag is not passing key as wikipedia, so it defaults to local

Raised as https://github.com/sigbertklinke/Iframe/issues/6

Derf Jagged (talkcontribs)

Thank you for this hack. Turns out a year later, this is still the only way to use it in templates.

Vicarage (talkcontribs)

You can also fudge it with

$wgIframe['server']['local'] = [ 'scheme' => 'https', 'domain' =>  ];
<iframe key="local" level="www.website.com" path="index.html" frameborder="0" width="1000" height="1000" style="display:block;margin:0 auto;"" />
Reply to "when using template tag it doesn't allow any key except the default local"