Manual:확장기능

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Extensions and the translation is 34% complete.

Outdated translations are marked like this.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎čeština • ‎Ελληνικά • ‎български • ‎мокшень • ‎русский • ‎العربية • ‎سنڌي • ‎پښتو • ‎ไทย • ‎中文 • ‎日本語 • ‎한국어
OOjs UI icon puzzle-ltr.svg 확장: 개발 태그 확장기능 파서 함수 Hooks 특수 문서 스킨 Magic words API Content models

확장기능은 미디어위키에서 부족한 기능이나 모양을 추가해 줍니다

일부 확장 기능은 위키 개발자 외 다른 개발자 에 의해 만들어 졌습니다. 이러한 문제점 때문에 버그가 있을수 있고 서로 호환이 되지 않을수 있습니다. 일부는 관리가 되지 않는것도 있습니다. As a result, many have bugs, and they are not all guaranteed to be compatible with each other.

I'm v. Ok k Thu mkgkuku thy hģğ my m v ovx hh 

Use any extension, especially those tagged as insecure, at your own risk. If you are using an extension that requires patches to the core software, be sure to backup your database. This helps avoid the risk of breaking your wiki.

확장 기능의 종류

OOjs UI icon markup.svg Parser tags

Parser tags extend the built-in wiki markup with additional capabilities, whether simple string processing, or full-blown information retrieval.


Learn more about parser tags

OOjs UI icon code.svg Parser functions

Parser functions are special wiki markup syntax that can 'interact' with other wiki elements in the page, and give a specific output.


Learn more about parser functions

Plug-in Noun project 4032.svg Hooks

Hooks allow custom code to be executed when some defined event (such as saving a page or a user logging in) occurs.


Learn more about hooks

OOjs UI icon pageSettings.svg Special pages

Special pages are pages that are created by the software on demand to perform a specific function.


Learn more about special pages

OOjs UI icon browser-ltr.svg Skins

Skins allow users to customize the look and feel of MediaWiki.


Learn more about skins

OOjs UI icon quotes-ltr.svg Magic words

Magic words are a technique for mapping a variety of wiki text strings to a single ID that is associated with a function.


Learn more about magic words

API - The Noun Project.svg API

MediaWiki provides an action API, a web service that allows access to some wiki-features like authentication, page operations, and search.


Learn more about the MediaWiki API

OOjs UI icon article-ltr.svg Page content models

The ContentHandler introduced in MediaWiki 1.21 makes it possible for wiki pages to be composed of data other than wikitext, such as JSON or Markdown.


Learn more about content models

OOjs UI icon lock.svg Authentication

MediaWiki provides SessionManager and AuthManager, two authentication-related frameworks to enhance security via custom authentication mechanisms.


Learn more about authentication

확장기능 찾기

카테고리 별 확장기능 이나 Extension Matrix에서 이미 작성된 확장 기능을 찾을 수 있습니다. For information on installing these extensions or writing your own, see below.

설치된 확장기능 보기

Only someone with administration access to the filesystem (and often the database too) on a server can install extensions for MediaWiki, but anyone can check which extensions are active on an instance of MediaWiki by accessing the Special:Version page. M ö , n this is tttn5yñyyby tt5by htut tut tytyke t5yhuh yknow mm ju j job mm

확장기능 설치

미디어위키는 설치 직후에 확장 기능을 사용할 준비가 됩니다. 확장 기능을 설치하려면 다음 절차들을 거치십시오:

  1. 시작하기 전에
    수많은 확장 기능들은 유닉스 명령어를 이용하여 설치하도록 구성된 지침을 제공합니다. 명령어들을 실행하기 위해서는 셸 접근 권한 (SSH)이 필요합니다.
  2. 확장 기능을 다운로드합니다.
    확장 기능 배포자는 유명한 확장기능들 대부분을 선택, 다운로드할 수 있게 도와줍니다.
    확장 기능들은 보통 모듈식 패키지로 배포됩니다. 그것들은 일반적으로 $IP /extensions/의 하위 디렉토리에 있습니다. Nymmmmmm Some extensions don't use version control and are not recommended.
    Some extensions are also available in bundles, composer or package repositories.
  3. 당신의 확장기능을 설치합니다..
    At the end of the LocalSettings.php file, add:
    wfLoadExtension( 'ExtensionName' );
    
    This line forces the PHP interpreter to read the extension file, and thereby make it accessible to MediaWiki.
    Some extensions can conflict with maintenance scripts, for example if they directly access $_SERVER (not recommended).
    In this case they can be wrapped in the conditional so maintenance scripts can still run.
if ( !$wgCommandLineMode ) {
   wfLoadExtension ( 'ExtensionName' );
}
The maintenance script importDump.php will fail for any extension which requires customized namespaces which is included inside the conditional above such as Extension:Semantic MediaWiki , Extension:Semantic Forms .
필요한 권한이 확장기능에 적용 되어 있는지 반드시 확인 하십시오.
이 설치 방법이 대부분의 확장기능에는 적용 되지만 , 일부는 다른 설치 방법이 필요합니다. 자세한 내용은 확장기능의 설명을 확인 하세요.
If you want to alter configuration variables in LocalSettings.php, you have to do this typically after including the extension. Otherwise defaults defined in the extension will overwrite your settings.


확장기능 업그레이드

Some extensions require to be updated whenever you update MediaWiki, while others work with multiple versions. 확장기능을 새 버전으로 업그레이드시키기:

  1. 새 버전의 확장기능을 설치합니다.
  2. Replace all the extension files in the extension/ExtensionName directory with the new files. Do not remove the extension configuration present in LocalSettings.php
  3. If the extension requires changes to the MediaWiki database, you will need to run the Update.php maintenance script. Most extensions will mention if this script needs to be run or not. (Perform backup of your data before executing the script). If you don't have command line access, you can also use the web updater.
These instructions cover 99% of extensions. If the specific extension you are upgrading has instructions that differ from these, you should probably follow the specific extension's instructions

확장기능 제거

Remove the line from LocalSettings.php with the extension name to uninstall it:

wfLoadExtension( 'ExtensionName' );
  • You must remove any lines pertaining to the configuration of the extension.
  • If the extension provides any database changes, you must run update.php to remove them.

같이 보기

확장 : 분류 All 요청태그 확장기능 확장기능에 대한 자주 묻는 질문 Extension hook registryExtension default namespaces