Widget:GoogleDriveVideo: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Geen bewerkingssamenvatting |
Geen bewerkingssamenvatting |
||
Regel 15: | Regel 15: | ||
== Copy to your site == | == Copy to your site == | ||
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><br> | ||
<a href="https://drive.google.com/file/d/<!--{$id|escape:'urlpathinfo'}-->/preview" target="_blank">Link naar de video in apart venster</a> | <a href="https://drive.google.com/file/d/<!--{$id|escape:'urlpathinfo'}-->/preview" target="_blank">Link naar de video in apart venster</a> | ||
</includeonly> | </includeonly> |
Huidige versie van 19 mrt 2020 om 09:07
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.