다른 명령
편집 요약 없음 |
편집 요약 없음 |
||
9번째 줄: | 9번째 줄: | ||
== Copy to your site == | == 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}}'''. | 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}}'''. | ||
</ | <widget xmlns="http://www.mediawiki.org/xmlns/widgets-1.0"> | ||
<parameters> | <parameters> | ||
<param name="url" type="string" required="true" /> | <param name="url" type="string" required="true" /> | ||
15번째 줄: | 15번째 줄: | ||
<param name="height" type="string" default="700px" /> | <param name="height" type="string" default="700px" /> | ||
</parameters> | </parameters> | ||
<html><![CDATA[ | |||
<iframe | <iframe | ||
src="https://mozilla.github.io/pdf.js/web/viewer.html?file={$url}" | src="https://mozilla.github.io/pdf.js/web/viewer.html?file={$url}" | ||
22번째 줄: | 23번째 줄: | ||
allowfullscreen | allowfullscreen | ||
></iframe> | ></iframe> | ||
]]></html> | |||
</widget> |
2025년 4월 11일 (금) 03:07 판
This widget allows you to embed PDF files on your wiki page.
Created by Wilhelm Bühler and adapted by Karsten Hoffmeyer.
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page 위젯:PDFViewer. <widget xmlns="http://www.mediawiki.org/xmlns/widgets-1.0">
<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>
</widget>