mediawiki | đŸŒ» The collaborative editing software that runs Wikipedia. Mirror from https://gerrit.wikimedia.org/ | Wiki library

 by   wikimedia PHP Version: 1.40.0-rc.0 License: Non-SPDX

kandi X-RAY | mediawiki Summary

kandi X-RAY | mediawiki Summary

mediawiki is a PHP library typically used in Web Site, Wiki applications. mediawiki has no bugs and it has medium support. However mediawiki has 19 vulnerabilities and it has a Non-SPDX License. You can download it from GitHub, GitLab.

MediaWiki is a free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other Wikimedia projects, used by hundreds of millions of people each month. MediaWiki is localised in over 350 languages and its reliability and robust feature set have earned it a large and vibrant community of third-party users and developers. For system requirements, installation, and upgrade details, see the files RELEASE-NOTES, INSTALL, and UPGRADE. MediaWiki is the result of global collaboration and cooperation. The CREDITS file lists technical contributors to the project. The COPYING file explains MediaWiki's copyright and license (GNU General Public License, version 2 or later). Many thanks to the Wikimedia community for testing and suggestions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              mediawiki has a medium active ecosystem.
              It has 3465 star(s) with 1305 fork(s). There are 179 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              mediawiki has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of mediawiki is 1.40.0-rc.0

            kandi-Quality Quality

              mediawiki has 0 bugs and 0 code smells.

            kandi-Security Security

              OutlinedDot
              mediawiki has 19 vulnerability issues reported (3 critical, 2 high, 14 medium, 0 low).
              mediawiki code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              mediawiki has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              mediawiki releases are not available. You will need to build from source code and install.
              It has 633641 lines of code, 34538 functions and 5336 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed mediawiki and discovered the below as its top functions. This is intended to give you an instant insight into mediawiki implemented functionality, and help decide if they suit your requirements.
            • Convert tags to array
            • Returns the transliteration rules .
            • Build dom tree from text .
            • Render the page info
            • Attempt to save the article .
            • Setup default preferences .
            • Parse a JS Tree
            • Parse an expression .
            • Continue creation of an account .
            • Finalize headings .
            Get all kandi verified functions for this library.

            mediawiki Key Features

            No Key Features are available at this moment for mediawiki.

            mediawiki Examples and Code Snippets

            No Code Snippets are available at this moment for mediawiki.

            Community Discussions

            QUESTION

            Where does the inconsistency in behaviour of Mediawiki templates come from?
            Asked 2022-Apr-03 at 19:27

            This question pertains to the inconsistent behaviour of Mediawiki syntax and its templates and parser functions.

            When placed directly in a wiki page, both these snippets work as expected:

            ...

            ANSWER

            Answered 2022-Apr-03 at 19:27

            Your sample template does not return an empty string when the page has sub pages. It returns for which {{#if:|yes|no}} properly returns yes.

            If you remove the , you'll get the behavior you want.

            Source https://stackoverflow.com/questions/71721837

            QUESTION

            Extract Wikipedia Data From XML Data dumps
            Asked 2021-Dec-11 at 17:13

            I have been trying to extract the text from some Wikipedia dumps. I need to get the text from the id, title, ns, timestamp, username, ip, and text tags in the full-history English Wikipedia dump.

            I read and modified the code from https://www.heatonresearch.com/2017/03/03/python-basic-wikipedia-parsing.html.

            I was able to write the code below:

            ...

            ANSWER

            Answered 2021-Dec-11 at 17:13

            Simplify the attempted script to the bare minimum you need such as removing the timings. The process here is using iterparse usually for very large XML files to iteratively parse tag by tag wherever the tag resides in document so either as root, parent, child, descendant, etc.

            Therefore, clean up the logic tag by tag and then on last needed tag, write row to csv with current assigned variables which are reset on every tag.

            Source https://stackoverflow.com/questions/70291272

            QUESTION

            Mediawiki redirect from old URL path starting with /w/ to new path without it
            Asked 2021-Nov-28 at 21:48

            I have old URL path for all pages

            ...

            ANSWER

            Answered 2021-Nov-28 at 21:48

            You need to add a RewriteRule to do the redirect before the other rules:

            Source https://stackoverflow.com/questions/70119391

            QUESTION

            Accessing content of a page before and after edit in a MediaWiki extension
            Asked 2021-Nov-17 at 20:03

            I'm trying to create a MediaWiki extension that would compare content of a page before and after saving an edit. I figured out MultiContentSave hook would be the proper one to use. Inside I can get edited page content using following code:

            ...

            ANSWER

            Answered 2021-Nov-17 at 20:03

            Try something like this :

            Source https://stackoverflow.com/questions/70009987

            QUESTION

            What it takes to edit wikidata from my web application?
            Asked 2021-Oct-31 at 16:11

            I am developing a web application which shows basic information about basketball players. I get all the data from wikidata by basic sparql queries. However, some players are missing some basic information(height, weight, their current team, etc.). And I would like to allow users of my web app to edit/add missing information on my app and I would send the edit request to wikidata. How it can be done ? I found Wikibase/API where is written that "The Wikibase API allows querying, adding, removing and editing information on Wikidata or any other Wikibase instance." https://www.mediawiki.org/wiki/Wikibase/API

            But I could not find anywhere at least something about how to edit/add data or some example post request how it works(I'm pretty sure it is there, but maybe I'm just blind...). If someone has any experience with this, I would appreciate any help of where to look and what to read. Thanks

            ...

            ANSWER

            Answered 2021-Oct-31 at 16:11

            This is the API documentation. It’s sort-of abusing the regular mediawiki API and I find it highly annoying.

            An easier option right now is probably Quickstatements, which is used for many semi-automated data imports. It’s usually run by submitting batches as text files on its web frontend, but here are instructions how it can be used as an API. Beware, however, that any shenanigans your users get into would fall back on you.

            Quickstatements is OSS, so you could check out how it uses the API and replicate the functionality. That would allow you to use your users‘ accounts via OAuth, as well.

            Finally, there is a new REST API that’s getting close to seeing a release, and it appears to shape up as exactly the sort of straightforward API that’s been missing so far.

            Source https://stackoverflow.com/questions/69698537

            QUESTION

            Suppress warnings in mediawiki
            Asked 2021-Aug-24 at 14:17

            Is there any way to suppress deprication warnings in mediawiki? For e.g. I am getting this message at the top of some of the pages on my personal wiki site.

            ...

            ANSWER

            Answered 2021-Aug-24 at 14:17

            At the bottom of LocalSettings.php:

            Source https://stackoverflow.com/questions/68902143

            QUESTION

            Converting code listings from mediawiki to latex using pandoc
            Asked 2021-Jul-06 at 06:39

            Is there an easy way to say pandoc converter I wish to replace all my source codes in mediawiki article convert to an lstlisting environment on its Latex output?

            At this moment, all my some code... environments are converted into something like this

            ...

            ANSWER

            Answered 2021-Jul-06 at 06:39

            Solution was very simple. There is a --listings command line option solving this problem as Sam Carter pointed out.

            Source https://stackoverflow.com/questions/68258507

            QUESTION

            Class Wikibase\DataModel\Entity\ItemId not found WikiBase installation
            Asked 2021-Jun-03 at 08:55

            I am currently trying to follow this tutorial: https://www.mediawiki.org/wiki/Wikibase/Installation

            I have the latest version of both MediaWiki and WikiBase (1.35) I'm currently trying to run the maintenance scripts. I have installed both Wikibase Repository and Wikibase Client.

            When I try to run "php maintenance/update.php" it gives me this error:

            ...

            ANSWER

            Answered 2021-Jun-03 at 08:55

            I hit the same error, and in my case, it was because my compose.local.json, (copied from composer.local.json-sample,) was pointing to "extensions/example/composer.json" rather than "extensions/Wikibase/composer.json". Fixing this to Wikibase, deleting composer.lock, running composer install --no-dev again, and finally running update.php fixed the issue.

            Source https://stackoverflow.com/questions/67236687

            QUESTION

            Fedora 34: Pasting multiple commands into a bash terminal behavior change
            Asked 2021-May-26 at 13:42

            I use Mediawiki to store all the commands I need to do to rebuild my system from scratch when a Fedora upgrade is available.

            Until now, I would simply copy/paste a huge set of commands into a terminal window and let it run free.

            I am trying to upgrade my Fedora 32 to 34 and this no longer works. When anything in my script enters a CLI - like mysql or even a new bash shell, execution stops until I type 'exit'. Then, the SQL commands or whatever are executed in bash and makes an ugly display.

            Here is the most simplified example of this that I could create. This works fine in Fedora 32 but gets stuck in Fedora 34:

            ...

            ANSWER

            Answered 2021-May-26 at 13:42

            I can confirm this in Fedora 34 / GNU bash, version 5.1.0(1)-release (x86_64-redhat-linux-gnu.

            This is a new feature in the underlying readline library and the feature is enabled by default. Currently, the only way to turn it off is to edit your ~/.inputrc and add the line:

            Source https://stackoverflow.com/questions/67674633

            QUESTION

            regex to match the closing tags by ignoring inner tags
            Asked 2021-May-19 at 19:12

            I want to capture the image tag of MediaWiki format, e.g,

            [[ Image:Justus Sustermans - Portrait of Galileo Galilei (Uffizi).jpg|left|thumb|upright|[[Galileo]] is often referred to as the Father of [[modern astronomy]], portrait by [[Justus Sustermans]]]]

            I have to ignore the inner [[...]] to match the whole (shown by bold [[ and ]]). I came up with

            ...

            ANSWER

            Answered 2021-May-19 at 19:12

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install mediawiki

            You can download it from GitHub, GitLab.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/wikimedia/mediawiki.git

          • CLI

            gh repo clone wikimedia/mediawiki

          • sshUrl

            git@github.com:wikimedia/mediawiki.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Wiki Libraries

            outline

            by outline

            gollum

            by gollum

            BookStack

            by BookStackApp

            HomeMirror

            by HannahMitt

            Try Top Libraries by wikimedia

            wikipedia-ios

            by wikimediaSwift

            apps-android-wikipedia

            by wikimediaKotlin

            composer-merge-plugin

            by wikimediaPHP

            jquery.i18n

            by wikimediaJavaScript

            pywikibot

            by wikimediaPython