확장기능:MultimediaViewer
![]() 출시 상태: 안정 |
|
---|---|
![]() |
|
구현 | 사용자 인터페이스, Ajax |
설명 | 사용자가 문서 내의 섬네일을 클릭했을 때의 표시 방법을 개선 |
만든 이 | |
호환성 정책 | 스냅샷은 미디어위키와 함께 릴리스됩니다. Master is not backward compatible. |
MediaWiki | 1.25+ |
PHP | 5.4+ |
라이선스 | GNU General Public License 2.0 or later |
다운로드 | |
예제 | MediaWiki.org |
|
|
MultimediaViewer 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
이슈 | 미해결 작업 · 버그 보고 |
The MultimediaViewer extension gives the user of a wiki a different interface for viewing full-size, or nearly full-size, images in their browser without extraneous page loads or confusing interstitial pages.
설치
Option A: use Vagrant. See the MediaWiki-Vagrant page for instructions to get a MediaWiki installation going with a Vagrant virtual machine system.
Then do vagrant enable-role multimediaviewer
and then vagrant provision
.
Option B: install manually.
First, consider installing 확장 기능:베타기능 . It may be helpful to hide the media viewer feature behind a preference. If you don't install this, it will be enabled everywhere. MultimediaViewer uses the GetBetaFeaturePreferences hook, which is created and run from BetaFeatures, to register this preference.
You'll also likely want to download Extension:CommonsMetadata - it's not a hard requirement, but without it you won't get very much information in your lightboxes.
- 파일을 다운로드하고
MultimediaViewer
폴더를extensions/
디렉토리에 넣어 주세요. - 아래의 코드를 $LocalSettings의 말미에 추가합니다:
wfLoadExtension( 'MultimediaViewer' );
완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
설정
$wgMediaViewerIsInBeta
will register a preference with BetaFeatures if set to "true"
$wgMediaViewerEnableByDefault
and$wgMediaViewerEnableByDefaultForAnonymous
will determine whether MMV is enabled by default for everyone and for anonymous users, respectively.
They both default to true
. $wgDefaultUserOptions[ 'multimediaviewer-enable' ] = 1;
can be used as a replacement for $wgMediaViewerEnableByDefault
.
$wgMediaViewerUseThumbnailGuessing
will improve performance when enabled, but can be fragile depending on how the wiki is set up (it will probably work fine if you use a 404 handler).
- Forced download
To ensure files are offered for download and not viewed in the user's browser following a click on the Download … button, the server has to be configured, except when using vagrant:
If the requested URL to an image directory contains the download
query parameter, the Content-Disposition
-header must be set to attachment
.
This can be achieved in Apache and compatible servers using mod_rewrite and mod_headers in a .htaccess
file.
Varnish configuration can look like this.
확장기능 사용하기
First thing, before testing, is to make sure you're logged in and you have the preference enabled: Log in to the wiki and go to Special:Preferences, then visit the "Beta features" tab and check the appropriate box.
Next, go to a page that has a thumbnail on it. Try clicking on the image or on the "expand" icon near it. The lightbox should pop up and give you a bigger view of the image.
If you'd prefer, there's an exported test environment that you can use via Special:Import to quickly set up a suitable testing environment.
템플릿
Multimedia Viewer and Upload Wizard needs several templates to show data of photos. Just save this code in a xml file and import it in your wiki.
같이 보기
![]() | 이 확장 기능은 하나 이상의 위키미디어 프로젝트에서 사용 중입니다. 이것은 아마도 이 확장 기능이 안정적이고 트래픽이 많은 웹 사이트에서 사용할 수 있을 만큼 충분히 잘 작동한다는 것을 의미합니다. 설치된 위치를 확인하려면 위키미디어의 CommonSettings.php 및 InitialiseSettings.php 구성 파일에서 이 확장 기능의 이름을 찾습니다. 특정 위키에 설치된 확장 기능의 전체 목록은 위키의 Special:Version 문서에서 볼 수 있습니다. |
![]() | This extension is included in the following packages and/or wiki farms: |
- Extensions bundled with MediaWiki 1.31/ko
- Stable extensions/ko
- User interface extensions/ko
- Ajax extensions/ko
- GPL licensed extensions/ko
- Extensions in Wikimedia version control/ko
- BeforePageDisplay extensions/ko
- CategoryPageView extensions/ko
- GetPreferences extensions/ko
- MakeGlobalVariablesScript extensions/ko
- ResourceLoaderGetConfigVars extensions/ko
- ThumbnailBeforeProduceHTML extensions/ko
- UserGetDefaultOptions extensions/ko
- All extensions/ko
- Extensions used on Wikimedia/ko
- Extensions included in BlueSpice/ko
- Extensions included in Canasta/ko
- Extensions included in Fandom/ko
- Extensions included in MyWikis/ko
- Extensions included in ProWiki/ko
- Extensions included in semantic::core/ko
- Image extensions/ko