Extension:WikiLambda/pl
WikiLambda Status wydania: eksperymentalne |
|
---|---|
Realizacja | Funkcja parsera , ContentHandler |
Opis | Providing Wikimedia wikis with a wikitext parser function to call evaluation of functions written, managed, and evaluated on a central wiki. |
Autor(zy) | Wikimedia Foundation |
Polityka zgodności | Snapshots releases along with MediaWiki. Master nie jest kompatybilny wstecznie. |
Zmiany w bazie danych | Tak |
Licencja | Licencja MIT |
Pobieranie | |
|
|
|
|
Quarterly downloads | 14 (Ranked 116th) |
Przetłumacz rozszerzenie WikiLambda jeżeli jest dostępne na translatewiki.net | |
Problemy | Otwarte zadania · Zgłoś błąd |
The WikiLambda extension provides for a wiki to host functions written, managed, and evaluated by users, which is used to power wikifunctions.org. It forms the core of the "Wikifunctions" software stack, as part of the work towards Abstract Wikipedia. The system is currently in active development, with the front-end written in Vue.js and using the new Codex interface library. Wikifunctions via WikiLambda will later provide Wikimedia wikis with a wikitext parser function to make evaluations from Wikifunctions on their local wiki.
Introduction
Wikifunctions is a MediaWiki installation on which function content, but not output, is stored. This content takes the form of programmatic descriptions of each available function ("Functions"), actual user-written code for these functions ("Implementations"), test suites for these functions ("Testers"), and human-facing documentation about these functions, alongside the usual wiki community management content like village pumps, discussion areas, and policy pages.
Requests for function calls can come in directly via a Web request, or via MediaWiki (probably through a parser function like {{#wikifunction:…}}
, but this is not yet decided). The function orchestrator determines the specifics of the request, checks the cache to see if the output value has been recently provided, and either returns that or proceeds to trigger an evaluation. To do that, it fetches all relevant content from the cluster, be that published function content (or mid-edit as-yet-unpublished function content being "previewed") from Wikifunctions, or structured content on which functions can operate from Wikidata and Wikimedia Commons. The complete bundle of code to execute and inputs on which to execute are then passed to the appropriate function executor, which then securely tries to execute the input and returns the output (or a failure error). The orchestrator then writes the successful result to the cache and transmits it to the consumer.
The WikiLambda extension is responsible for content management of the content on the Wikifunctions wiki (like the Wikibase Repository extension), providing editing interfaces, restricting users from or warning about certain actions, and providing a reading and test execution interface, and the integration of content requests on all Wikimedia wikis (like the Wikibase Client extension). User-written code is never executed in the context of the production environment, and thus never has access to sensitive content, but is only run in isolated, disposable instances.
Getting started
Install
- Pobierz i umieść plik(i) w katalogu o nazwie
WikiLambda
w folderzeextensions/
.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone --recurse-submodules https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiLambda - Tylko w przypadku instalacji z repozytorium git należy uruchomić Composer, aby zainstalować zależności PHP, poprzez wywołanie
composer install --no-dev
w katalogu rozszerzenia. (Zobacz zadanie T173141 w celu uzyskania informacji o możliwych komplikacjach.) - Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
wfLoadExtension( 'WikiLambda' );
- Uruchom skrypt aktualizujący, który automatycznie stworzy potrzebne tabele dla tego rozszerzenia.
- Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Installing the back-end services
If you wish you install the back-end services to use the WikiLambda software, you must do so and configure them. Instructions are subject to change, and so only provided within the repo.
Testing locally
(TODO)
Code stewardship
- Zarządzany przez Abstract Wikipedia team.
- Czat na żywo (IRC): #wikipedia-abstract-tech connect
- Zgłaszanie błędów: Phabricator - wikilambda (Zgłoś problem)
Zobacz też
- MediaWiki-Docker/Extension/WikiLambda
- Code documentation:
- For PHP
- For JS
- Code coverage (PHP)
- function-evaluator service
- function-orchestrator service
- functon-schemata shared library
- Abstract Wikipedia Architecture
- Abstract Wikipedia developer cheatsheet
Subpages
- API
- Approving Implementations and Testers
- Approving Implementations and Testers/de
- Approving Implementations and Testers/en
- Approving Implementations and Testers/ru
- Approving Implementations and Testers/uk
- CLI
- Coding Conventions
- Core objects
- Creating Objects
- Development environment
- Discovery needs
- Frontend Architecture
- Granular Edit Authorization
- Jupyter kernel proposal
- Metrics
- Metrics Implementation
- User stories
- de
- en
- examples/multiply.json
- pl
- uk
- wikilambda zlanguages table
- wikilambda zobject function join table
- wikilambda zobject join table
- wikilambda zobject label conflicts table
- wikilambda zobject labels table
- wikilambda ztester results table
To rozszerzenie jest wykorzystywane przez jeden lub więcej projektów Wikimedia. Oznacza to prawdopodobnie, że to rozszerzenie jest stabilne i działa wystarczająco dobrze, aby wykorzystywać je na stronach o dużym natężeniu ruchu. Odnajdź nazwę tego rozszerzenia w plikach konfiguracyjnych Wikimedia CommonSettings.php oraz InitialiseSettings.php, aby zobaczyć gdzie są zainstalowane. Pełną listę rozszerzeń zainstalowanych na określonej wiki można znaleźć na stronie Special:Version na danej wiki. |
- Experimental extensions/pl
- Parser function extensions/pl
- ContentHandler extensions/pl
- MIT licensed extensions/pl
- Extensions in Wikimedia version control/pl
- GetUserPermissionsErrors extensions/pl
- MultiContentSave extensions/pl
- NamespaceIsMovable extensions/pl
- ParserFirstCallInit extensions/pl
- HtmlPageLinkRendererEnd extensions/pl
- All extensions/pl
- Extensions requiring Composer with git/pl
- Extensions used on Wikimedia/pl