Bukana: Keketso
katoloso e u fa monyetla oa ho iketsetsa kamoo MediaWiki e shebahalang kateng le ho sebetsa.
- Basebelisi ba Wiki ba ka ho bala ka li extensions.
- Batsamaisi ba sistimi ba ka instola (kapa ba tlosa) likeketso ho lits ebetso tsa MediaWiki tseo ba li laolang.
- Bahlahisi ba ka ngola likeketso tse ncha kapa ho ntlafatsa kapa ho boloka likeketso.
Le hoja li extensions tse ling li hlokometsoe ke bahlahisi ba MediaWiki tse ling li ngotsoe ke bahlahisi ba mekhatlo ea boraro. Ka lebaka leo ba bangata ba na le litšitšili me ha lia tiisetsoa kaofela hore li tla lumellana. Tse ling ha lia hlokomeloa ha se li extensions tsohle tse sebetsang liphetolelong tsohle tsa MediaWiki. Sebelisa katoloso efe kapa efe haholoholo e tšoailoeng e sa sireletseha ka kotsi ea hau. Haeba u sebelisa katoloso e hlokang lipatches ho software ea mantlha etsa bonnete ba hore u boloka database ea hau. Sena se thusa ho qoba kotsi ea ho senya wiki ea hau.
Mefuta ea likeketso
Li tag tsa li parser
Parser mesebetsi
Hook
Maqephe a khethehileng
Mantsoe a boselamose
API
Mefuta ea litaba tsa leqephe
Ho fumana likeketso
Ho batla katoloso
You can browse Category:Extensions by category to see the full range of extensions that have already been written. Ho fumana leseli mabapi le ho kenya lisebelisoa tsena kapa ho ngola tsa hau bona ka tlase.
Ho hlahloba likeketso tse kentsoeng
Ke motho feela ea nang le phihlello ea tsamaiso ho sistimi ea lifaele (mme hangata database le eona) ho seva ea ka kenyang li-extensions tsa MediaWiki empa mang kapa mang a ka hlahloba hore na ke li extensions life tse sebetsang ketsahalong ea MediaWiki ka ho fihlella leqephe le ikhethileng la $. Mohlala katoloso tsena li sebetsa ho Wikipedia ea Senyesemane.
Keketso e tsebahalang
Ho na le mekhoa e mengata ea ho fumana li extensions tse tsebahalang.
Sehlopha sa pele ke sa e kopantsoeng le MediaWiki (lenane le hlahlojoang khafetsa le leo mang kapa mang a ka a sisinya tlatsetso).
Katoloso e jarollotsoeng ho MediaWikiorg ka mochini oa ExtensionDistributor li na le lipalo palo tse bokelletsoeng. Li extensions tse 15 tse jarollotsoeng ka ho fetesisa li thathamisitsoe ho Special:ExtensionDistributor me likeketso tse sebetsang li na le palo ea tsona ea download e bonts itsoeng lebokoseng la bona la lintlha. Hlokomela hore linomoro tsena ha li ikarabelle bakeng sa litsela tse ling tsa ho kenya li extensions tse kang via Git kapa Composer.
Khetho ea boraro ke ho sheba lipalo tsa WikiApiary tsa li wiki tseo li extensions li kentsoeng ho tsona. Sena se na le molemo oa ho emela lits ebetso tsa nete eseng feela ho jarolla (ke hore se botsa li API tsa wiki) empa hape (ho tloha ka 2023) ha se ea morao-rao ka botlalo. Hape ha e bale lits ebetso ho li wiki tsa poraefete.
Ho kenya katoloso
- Bakeng sa tataiso e eketsehileng bona hape Manual:Extensions/Installation and upgrade
MediaWiki e se e loketse ho amohela likeketso hang ka mora hore installation e felile. Ho eketsa katoloso latela mehato ena.
- Pele o qala
- Li-extensions tse ngata li fana ka litaelo tse etselitsoeng ho kenya ho sebelisa litaelo tsa Unix. U hloka ho kena ho shell (SSH) ho kenya litaelo tsena tse thathamisitsoeng leqepheng la thuso ea katoloso.
- Khoasolla katoloso ea hau.
- Extension Distributor e u thusa ho khetha le ho khoasolla boholo ba likeketso tse tsebahalang.
- Li extensions hangata li ajoa joalo ka liphutheloana tsa modular. They generally go in their own subdirectory of
$IP /extensions/
. Lethathamo la likeketso tse bolokiloeng ho Wikimedia Git repository le fumaneha ho git:mediawiki/extensions. Likatoloso tse ling se sebelise taolo ea mofuta me ha li khothalletsoe. - Likatoloso tse ling li fumaneha hape ho bundle composer kapa package repositories.
- Ho khothaletsoa ho bala faele ea README pele u e kenya. Hangata e na le lintlha tsa bohlokoa mabapi le tlhophiso.
- Kenya katoloso ea hau.
- Qetellong ea faele ea
LocalSettings.php
eketsa: wfLoadExtension( 'ExtensionName' );
- Mohala ona o qobella mofetoleli oa PHP ho bala faele ea katoloso me ka hona e etsa hore e fumanehe ho MediaWiki.
- Some extensions can conflict with maintenance scripts, for example if they directly access $_SERVER (not recommended).
- Tabeng ena li ka phutheloa ka maemo e le hore mangolo a tlhokomelo a ntse a ka sebetsa.
if ( !$wgCommandLineMode ) { wfLoadExtension ( 'ExtensionName' ); }
- Sengoliloeng sa tlhokomelo importDump.php se tla hloleha bakeng sa katoloso efe kapa efe e hlokang libaka tse ikhethileng tsa mabitso tse kenyellelitsoeng ka hara lipehelo tse kaholimo joalo ka Extension:Semantic MediaWiki .Extension:Page Forms .
- Qetellong ea faele ea
- Netefatsa hore litumello tse hlokahalang li behiloe bakeng sa likeketso!
- Le hoja mokhoa ona oa ho kenya o lekane bakeng sa lisebelisoa tse ngata tse ling li hloka mokhoa o fapaneng oa ho kenya. Sheba litokomane tsa katoloso ea hau bakeng sa lintlha.
- Haeba u batla ho fetola litlhophiso tse feto fetohang ho
LocalSettings.php
u tlameha ho etsa sena ka tloaelo ka mora ho kenyeletsa le katoloso. Ho seng joalo likhetho tse hlalositsoeng katolosong li tla hlakola litlhophiso tsa hau.
Ho ntlafatsa katoloso
Li extensions tse ling li hloka ho ntlafatsoa neng kapa neng ha u nchafatsa MediaWiki ha tse ling li sebetsa ka mefuta e mengata. Ho ntlafatsa ho mofuta o mocha oa katoloso.
- Khoasolla mofuta o mocha oa katoloso
- Replace all the extension files in the
extensions/ExtensionName
directory with the new files. U se ke ua tlosa tlhophiso ea katoloso e teng hoLocalSettings.php
- Haeba katoloso e hloka liphetoho polokelong ea polokelo ea MediaWiki o tla hloka ho tsamaisa mongolo oa tlhokomelo oa update.php . Boholo ba likeketso li tla bolela hore na sengoloa sena se hloka ho tsamaisoa kapa che. (Etsa bekapo ea data ea hau pele u etsa script). Haeba ha u na mokhoa oa ho fumana mohala oa taelo u ka sebelisa web updater.
Ho tlosa katoloso
Tlosa mohala ho LocalSettings.php
ka lebitso la katoloso ho e tlosa.
wfLoadExtension( 'ExtensionName' );
- U tlameha ho tlosa mela efe kapa efe e amanang le tlhophiso ea katoloso.
Bona hape
- Category:Extensions
- Template:Extension
- Manual:Developing extensions
- Manual:Translating extensions - Lintlha mabapi le litlatsetso tsa ho fetolela.
- Special:ExtensionDistributor - E kenyelletsa lethathamo la lisebelisoa tse 15 tse jarollotsoeng ka ho fetesisa taolong ea mofuta oa Wikimedia.
- extloc - Where are MediaWiki extensions deployed in Wikimedia production?
- API:SiteInfo extension information