|
|
(같은 사용자의 중간 판 10개는 보이지 않습니다) |
1번째 줄: |
1번째 줄: |
| <noinclude>__NOTOC__ | | <includeonly> |
| <big>This widget allows you to '''embed PDF files''' on your wiki page.</big>
| | <iframe |
| | | src="<!--{$url}-->" |
| Created by [https://wiki.karlsregion.net/z/User:Wilhelm_Bühler Wilhelm Bühler] and adapted by [https://www.wikihoster.net Karsten Hoffmeyer].
| | ></iframe> |
| | | </includeonly> |
| == Using this widget ==
| | <noinclude>[[Category:Widgets]]</noinclude> |
| For information on how to use this widget, see [https://www.mediawikiwidgets.org/PDF widget description page on MediaWikiWidgets.org].
| |
| | |
| == Copy to your site ==
| |
| To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
| |
| </noinclude>
| |
| <parameters> | |
| <param name="url" type="string" required="true" /> | |
| <param name="width" type="string" default="100%" />
| |
| <param name="height" type="string" default="700px" />
| |
| </parameters>
| |
| <html><![CDATA[
| |
| <iframe
| |
| src="https://mozilla.github.io/pdf.js/web/viewer.html?file={$url}"
| |
| width="{$width}"
| |
| height="{$height}"
| |
| style="border: none;"
| |
| allowfullscreen
| |
| ></iframe>
| |
| ]]></html>
| |