Jump to content

Extension talk:IframeTag

About this board

Is it possible to use the tag in a template ?

1
BertrandGorge (talkcontribs)

I tried to use the tag in a template, with the source being changed with a template parameter, but apparently the parameter is not handled... Is this some known issue or is there a workaround ?

Use case :

<iframe src="https://docs.google.com/viewer?url=https://wiki.mywiki.org/wiki/Special:FilePath/{{{file}}}&embedded=true" style="width:100%; height:{{{height|500px}}}" frameborder="0"></iframe>

Reply to "Is it possible to use the tag in a template ?"

Is this extension compatible with MW 1.38-1.39?

2
Pspviwki (talkcontribs)

Is this extension compatible with MW 1.38-1.39? I run tests of this extension on 1.38.2 and get MediaWiki internal error: Error: Class 'NicheWork\MW\Tag' not found.

Seb35 (talkcontribs)

Ah! I was wondering why it was marked as non-compatible since I installed it on MediaWiki 1.40 with only a minor change (I used third method below).

This missing class is because this extension requires the Composer library nichework/tag-builder. This extension can be installed with one of these 3 ways:

  1. install the MediaWiki extension IframeTag with Composer (this should work but there are various opinions about its support in MediaWiki), this will automatically install the required library;
  2. add the extension’s composer.json in the global MediaWiki’s composer.json (or global MediaWiki’s composer.local.json), in the section extra.merge-plugin.include (see Composer#Using_composer-merge-plugin): after running composer update --no-dev in the root MediaWiki directory, the library required by this extension will be available;
  3. execute composer update --no-dev in the extension directory + add the patch below
diff --git a/extension.json b/extension.json
index 022ac1f..7b97a29 100644
--- a/extension.json
+++ b/extension.json
@@ -40,4 +40,5 @@
 		}
 	},
+	"load_composer_autoloader": true,
 	"manifest_version": 2
 }

Hence, except the minor change for the third method, it is compatible with MediaWiki 1.38–1.40, but more importantly it lacks installation instructions.

Reply to "Is this extension compatible with MW 1.38-1.39?"

Does the list of allowed hosts support wildcards?

1
HyperNervie (talkcontribs)

e.g. Can I write something like $iFrameDomains = [ '*.example.com' ];?

Reply to "Does the list of allowed hosts support wildcards?"

how to install/use - SOLVED

2
Summary by Lfaulhaber

OK, I got it! I download the source code again, named the folder as "IFrame" and now the extension is working just fine!

Lfaulhaber (talkcontribs)

Hey, there! I want to introduce some iframe's in my wiki and i didn't like the extension "Widgets" so much, so I trying to use yours, but the installs instructions are not clear.

  1. Should I put the IFrameTag source code into the Extensions folder?
  2. Should I add a line wfLoadExtension( 'IFrameTag' ); in LocalSettings.php ?
  3. I notice that MediaWiki:IFrame-cfg.json page already exists in my wiki, with no content, so I understand that I have to set the domains like the description, right?
  4. Should I made some extra config?
Lfaulhaber (talkcontribs)

OK, I got it! I download the source code again, named the folder as "IFrame" and now the extension is working just fine!

There are no older topics