Widget:GoogleDriveVideo: verschil tussen versies

Uit basis
Naar navigatie springen Naar zoeken springen
Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
Regel 16: Regel 16:
To use this widget on your site, just install the [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''.
To use this widget on your site, just install the [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and the copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki, as an article called '''{{FULLPAGENAME}}'''.
</noinclude><includeonly><iframe src="https://drive.google.com/file/d/<!--{$id|escape:'urlpathinfo'}-->/preview" width="<!--{$width|escape:'html'|default:'640'}-->" height="<!--{$height|escape:'html'|default:480}--> style="border: none" allowfullscreen></iframe>
</noinclude><includeonly><iframe src="https://drive.google.com/file/d/<!--{$id|escape:'urlpathinfo'}-->/preview" width="<!--{$width|escape:'html'|default:'640'}-->" height="<!--{$height|escape:'html'|default:480}--> style="border: none" allowfullscreen></iframe>
<a href="https://drive.google.com/file/d/<!--{$id|escape:'urlpathinfo'}-->/preview" target="_blank">Link naar de video in apart venster</a>
</includeonly>
</includeonly>

Versie van 19 mrt 2020 10:05

This widget allows you to add a Google Drive video to your wiki page.

Using this widget

Example:

{{#widget:GoogleDriveVideo|id=1RY6wwqMeTD0wQFO_nvA01vFcMa18GRby|width=640|height=480}}

The id-parameter is the code in the Google Drive URL of the video. The parameters width and height are optional, with defaults 640 and 480.

Copy to your site

To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:GoogleDriveVideo.