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
24
votes
3 answers

Reliably detecting PhantomJS-based spam bots

Is there any way to consistently detect PhantomJS/CasperJS? I've been dealing with a spat of malicious spambots built with it and have been able to mostly block them based on certain behaviours, but I'm curious if there's a rock-solid way to know if…
Terrakin
  • 241
  • 1
  • 2
  • 3
23
votes
4 answers

Passing an equal sign ('=') to a parameter in a MediaWiki template

How can I use a '=' character in a template parameter without breaking the template parser? I'm not a MediaWIKI developer so I haven't debugged the code or checked the logs, I'm hoping someone here has a tip for escaping characters passed to…
scubasteve
  • 2,718
  • 4
  • 38
  • 49
22
votes
3 answers

Where can I get templates for MediaWiki?

I have noticed that a lot of mediawiki-based websites use such templates as Robelbox, Ambox etc. Where can I get them and how should they be installed?
Squid
  • 237
  • 1
  • 2
  • 3
22
votes
8 answers

How to get the Infobox data from Wikipedia?

If I have the url to a page, how would I obtain the Infobox information on the right using MediaWiki webservices?
tomxu
  • 269
  • 1
  • 3
  • 6
21
votes
6 answers

How to group wikipedia categories in python?

For each concept of my dataset I have stored the corresponding wikipedia categories. For example, consider the following 5 concepts and their corresponding wikipedia categories. hypertriglyceridemia: ['Category:Lipid metabolism disorders',…
EmJ
  • 4,398
  • 9
  • 44
  • 105
20
votes
5 answers

Inline Syntax Highlighting in MediaWiki

Is there any MediaWiki extension that supports inline syntax highlighting? (i.e. with support for code snippets embedded within regular text paragraphs) I currently use SyntaxHighlight GeSHi, but I'm not sure it supports inline highlighting.
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
19
votes
4 answers

Changing the font size of code formatted by SyntaxHighlight GeSHi in MediaWiki

The font size of my code snippets are too small relative to the default font size of the Wiki, which makes them hard to read (see below for an example). Is there anything I can do to change it? Example: The code that generates the above is: ====…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
19
votes
1 answer

nginx: [emerg] "upstream" directive is not allowed here in /etc/nginx/sites-enabled/wiki.[site].com:48

I'm trying to configure a mediawiki instance with Nginx. I've done it before, on another server, and it worked fine there. However, when I copy the same nginx vhost file over to this server (changing relative bits like the server_name), nginx gives…
Erik Craigo
  • 383
  • 2
  • 3
  • 6
19
votes
3 answers

Find Leaflet map object after initialisation

I'm trying to change some things on a map that is already initialised by another script, using the Leaflet library. This other script did not store the map-object in a global variable, or in any other location I can access with my script. So…
Joeytje50
  • 18,636
  • 15
  • 63
  • 95
19
votes
9 answers

Parsing a Wikipedia dump

For example using this Wikipedia dump: http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=lebron%20james&rvprop=content&redirects=true&format=xmlfm Is there an existing library for Python that I can use to create an array with the…
tomwu
  • 397
  • 1
  • 3
  • 11
19
votes
2 answers

Wikipedia Category Hierarchy from dumps

Using Wikipedia's dumps I want to build a hierarchy for its categories. I have downloaded the main dump (enwiki-latest-pages-articles) and the category SQL dump (enwiki-latest-category). But I can't find the hierarchy information. For example, the…
fersarr
  • 3,399
  • 3
  • 28
  • 35
18
votes
4 answers

Trying to upgrade SQLite on Amazon EC2

I need SQLite minimum version 3.8 to support a MediaWiki install on Amazon EC2. Amazon Linux is based on CentOS and the latest version available in the yum repository is SQLite 3.7.17. The downloads available from sqlite.org don't include 64-bit…
Peter Swords
  • 489
  • 6
  • 17
18
votes
5 answers

Is there any way to convert Wikitext to Markdown in python?

Is there a python library which takes wikitext (as used in mediawiki) input and converts it to markdown?
Ed L
  • 1,947
  • 2
  • 17
  • 30
18
votes
7 answers

Convert Excel documents to wiki markup

Is it possible to convert Excel spreadsheets into MediaWiki markup? I stumpled upon strange recommendations exporting to HTML and convert it into markup. Is there a solution, maybe exporting to XML first or directly converting it?
user366121
  • 3,203
  • 9
  • 48
  • 69
18
votes
3 answers

All my MediaWiki pages are blank

All of a sudden, all my Mediawiki pages are blank. If I click the edit field, the content is still, there. Ive checked the sqlite file and it looks just fine. Ive turned on debugging output and get the following: Warning: preg_match(): Compilation…
ardevd
  • 3,329
  • 5
  • 30
  • 55