확장기능:Random In Category

From mediawiki.org
This page is a translated version of the page Extension:Random In Category and the translation is 27% complete.
미디어위키 확장 기능 설명서
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/ 디렉토리에 넣어 주세요.
    개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RandomInCategory
  • 아래의 코드를 LocalSettings.php 코드의 마지막에 추가합니다.
    wfLoadExtension( 'RandomInCategory' );
    
  • Yes 완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.