확장기능:Random In Category
![]() 출시 상태: 안정 |
|
---|---|
구현 | 특수 문서 |
설명 | Direct the user to a random page in a specified category |
만든 이 | Victor Vasiliev (VasilievVV토론) |
최신 버전 | 2.2.0 (2019-04-04) |
MediaWiki | 1.25+ |
데이터베이스 변경 | 아니오 |
라이선스 | GNU General Public License 2.0 or later |
다운로드 | |
Random In Category 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
이슈 | 미해결 작업 · 버그 보고 |
The Random In Category extension allows you to direct the user to a random page in a specified category.
사용
Very similarly to Special:Random, you can specify a category name as a parameter to the page. Thus, "Special:RandomInCategory/Foo" or "Special:RandomPageInCategory/Foo" (MW ≥ MW 1.22) will get you a page from the "Foo" category.
Comparison to Core
미디어위키 버전: | ≥ 1.22 |
In MediaWiki 1.22, a Special:RandomInCategory feature was added to core. The core version gives much more biased results than this extension (However, it has much less performance overhead). Versions of this extension for MediaWiki 1.22 and greater change the name that this extension provides from "Special:RandomInCategory" to Special:RandomPageInCategory to prevent conflict with the core feature.
설치
- 파일을 다운로드하고
RandomInCategory
폴더를extensions/
디렉토리에 넣어 주세요. - 아래의 코드를 LocalSettings.php 의 말미에 추가합니다:
wfLoadExtension( 'RandomInCategory' );
- 완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
미디어위키 1.33 이하를 실행 중인 사용자에게:
위의 지시사항은 wfLoadExtension()
을 사용하여 이 확장기능을 설치하는 새로운 방법을 기술한 것으로,
wfLoadExtension( 'RandomInCategory' );
대신 초기 버전(미디어위키 1.33 이하)에 이 확장기능을 설치하려면 다음을 사용해야 합니다:
require_once "$IP/extensions/RandomInCategory/RandomInCategory.php";