mediawiki | đ» The collaborative editing software that runs Wikipedia. Mirror from https://gerrit.wikimedia.org/ | Wiki library
kandi X-RAY | mediawiki Summary
kandi X-RAY | mediawiki Summary
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
Top functions reviewed by kandi - BETA
- 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 .
mediawiki Key Features
mediawiki Examples and Code Snippets
Community Discussions
Trending Discussions on mediawiki
QUESTION
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:27Your 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.
QUESTION
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:13Simplify 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.
QUESTION
I have old URL path for all pages
...ANSWER
Answered 2021-Nov-28 at 21:48You need to add a RewriteRule
to do the redirect before the other rules:
QUESTION
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:03Try something like this :
QUESTION
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:11This 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.
QUESTION
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:17At the bottom of LocalSettings.php
:
QUESTION
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:39Solution was very simple. There is a --listings
command line option solving this problem as Sam Carter pointed out.
QUESTION
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:55I 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.
QUESTION
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:42I 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:
QUESTION
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:12You can use
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mediawiki
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
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page