Actually using the tag approach (or a parser func such as #iframe) is the preferred approach imo.
Using transcluded special pages disables parser cache by default which would have a negative impact on performance.
Otherwise there is probably not much difference. Parser tags lets you interact with the mediawiki parser, which is often useful, but probably not for your extension.
-- bawolff
On Wednesday, November 29, 2017, Sigbert Klinke sigbert@wiwi.hu-berlin.de wrote:
Hi,
to embed an iframe into a wiki page the above extension uses
{{Special:IframePage|wiwi|path="examples?R=data/bivariate/chi2_coefficients/example_chi2coeff.R"}}
I wrote a similar extension which is called by
<iframe k="wiwi"
p="examples?R=data/bivariate/chi2_coefficients/example_chi2coeff.R" />
I would like to know what would be the advantage of using {{Special:...}}
rather than <iframe ... />.
Thanks Sigbert
-- https://hu.berlin/sk https://hu.berlin/mmstat3
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l