when using template tag it doesn't allow any key except the default local
Topic on Extension talk:Iframe
For whatever reason the "key" wont pass on as an argument, either way added a line to read serverkey and works now.
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
Thank you for this hack. Turns out a year later, this is still the only way to use it in templates.
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;"" />