Questions tagged [mediawiki]

MediaWiki is a free software wiki package written in PHP, originally for use on Wikipedia. It is now used by several other projects hosted by the non-profit Wikimedia Foundation and by many other wikis.

MediaWiki is a free software wiki package written in PHP, originally for use on Wikipedia. It is now used by several other Wikimedia projects and by many other wikis.

Related tags: , , , , , , , , , .

MediaWiki links:

3594 questions
14
votes
3 answers

Mediawiki login cancelled to prevent session hijacking

I have just set up a MediaWiki 1.29.0 page on an AS400 IBM i machine. I am using MariaDB as a database. I am using PHP 5.5.37 Every time I try to log into an account, I get the error: There seems to be a problem with your login session; this action…
Lord Farquaad
  • 712
  • 1
  • 12
  • 33
14
votes
3 answers

How to parse/extract data from a mediawiki marked-up article via python

Source Mediawiki markup Right now I'm using a variety of regexes to "parse" the data in the mediawiki mark-up into lists/dictionaries, so that elements within the article can be used. This is hardly the best method, as the number of cases that have…
torger
  • 2,308
  • 4
  • 28
  • 35
14
votes
5 answers

How does Wikipedia's "What links here" work?

I recently used Wikipedia's function "What links here" (which is found under the "Toolbox" element in any entry's left menu) and it got me started wondering how this function actually works. I'm guessing that searching through all the article…
ehm
  • 23,789
  • 5
  • 28
  • 31
13
votes
7 answers

How to export text from all pages of a MediaWiki?

I have a MediaWiki running which represents a dictionary of German terms and their translation to a local dialect. Each page holds one term, its translation and a number of additional infos. Now, for a printable version of the dictionary, I need a…
Alexander Rühl
  • 6,769
  • 9
  • 53
  • 96
13
votes
1 answer

How to obtain data in a table from Wikipedia API?

I'm trying to get all the content from Wikipedia:Unusual_articles and I'm able to get the list of table content by calling this endpoint: https://en.wikipedia.org/w/api.php?action=parse&format=json&prop=sections&page=Wikipedia:Unusual_articles and…
John Lim
  • 3,019
  • 4
  • 31
  • 41
13
votes
6 answers

Parser for Wikipedia

I downloaded a Wikipedia dump and I want to convert the wiki format into my object format. Is there a wiki parser available that converts the object into XML?
Boolean
  • 14,266
  • 30
  • 88
  • 129
13
votes
3 answers

How do you make "infoboxes" in mediawiki?

I'm making a wiki using Mediawiki. I've seen a right side bar of each page on other wikis. Like this: http://minecraft.gamepedia.com/Diamond_Ore The right side bar has information about the thing that the wiki post explains or what ever. I want to…
halmi4
  • 334
  • 1
  • 4
  • 10
13
votes
1 answer

How to permanently delete a page from a MediaWiki wiki?

I administer a MediaWiki wiki that has been hit by a ton of spam. I've managed to get rid of the spam pages that have been added to the wiki by using an extension, but the pages' data is still present in the wiki's MySQL database. This is bloating…
Jim
  • 804
  • 2
  • 12
  • 26
13
votes
1 answer

Loading huge XML files and dealing with MemoryError

I have a very large XML file (20GB to be exact, and yes, I need all of it). When I attempt to load the file, I receive this error: Python(23358) malloc: *** mmap(size=140736680968192) failed (error code=12) *** error: can't allocate region *** set…
Hairr
  • 1,088
  • 2
  • 11
  • 19
13
votes
2 answers

How to make a MediaWiki site multilingual

I've installed a MediaWiki site. I think default MediaWiki supports only one language which is configured during installation. Is there a way in MediaWiki to support two or more languages like wikipedia.org? Available languages for a page should be…
Muatik
  • 4,011
  • 10
  • 39
  • 72
13
votes
3 answers

Transclude a category in MediaWiki

I'm not quite sure if this is possible in MediaWiki. I've got several categories, each containing a few pages. If you open a category page you'll see the contents of the category that usualy consists of these three parts: A user defined text (which…
Typhix
  • 133
  • 2
  • 8
13
votes
6 answers

Exporting and importing images in MediaWiki

How do I export and import images from and into a MediaWiki?
Paradius
  • 7,949
  • 11
  • 32
  • 38
12
votes
2 answers

Mediawiki open external links in a new window

I want to enable opening external links in a new window function in Mediawiki. I tried to modify the "LocalSettings.php" file according to the below instructions: http://www.mediawiki.org/wiki/Manual:Opening_external_links_in_a_new_window But I…
Xianlin
  • 1,139
  • 5
  • 20
  • 34
12
votes
3 answers

Convert MediaWiki wikitext format to HTML using command line

I tend to write a good amount of documentation so the MediaWiki format to me is easy for me to understand plus it saves me a lot of time than having to write traditional HTML. I, however, also write a blog and find that switching from keyboard to…
Todd Partridge 'Gen2ly'
  • 2,258
  • 2
  • 19
  • 18
12
votes
3 answers

realpath returns empty string

I use MediaWiki but there is an error. I found it in the files. There is line with this code: $IP = realpath( '.' ); But $IP returns an empty string, so the path to the files in the system is not working. (for example if $IP would be . or…
Jordy
  • 4,719
  • 11
  • 47
  • 81