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
9
votes
2 answers

How to run a query to find a string in blob files?

Mediawiki has a table in the database 'text' which contains the page content. It is saved as a [BLOB] file. I would like to run a query to search through all the text on the site to see which pages contain a certain 'string'. How do I run a query…
LTech
  • 1,677
  • 5
  • 29
  • 48
9
votes
3 answers

Possible to create ZIM file of whole Wiki? (my own, based on mediawiki)

I want to generate an offline ZIM version of our own Wiki (that runs on Mediawiki).The Collection extension is a breeze to install, but only works for selecting single pages, which in a next step can be combined into a single ZIM file. But with a…
Dr.Bob
  • 1,152
  • 1
  • 8
  • 10
9
votes
6 answers

Inserting articles straight into MediaWiki database

I need a way to insert new articles straight into my MediaWiki database without damaging the wiki installation. I'm guessing if I knew what tables/attributes MediaWiki inserts to when creating a new article then I could fill them in myself. Does…
Cosmin
8
votes
1 answer

Javascript in MediaWiki

I'd like to use some Javascript on my wiki pages, but I haven't been able to figure out how. I'm using a hosted solution on Wikia. So I am unable to modify the installation, add extensions or hack the settings. But I have admin rights on my wiki so…
edgerunner
  • 14,873
  • 2
  • 57
  • 69
8
votes
4 answers

How to retrieve parts of Wikipedia content into Android App?

Basically, I want to retrieve content from wikipedia. But I want to display it inside my Android Apps directly. Not immidiately redirect to the internet browser, but to display it inside my apps first. Currently, I manage to request the Wikipedia…
Yeo
  • 11,416
  • 6
  • 63
  • 90
8
votes
2 answers

Is there is any library to convert wikitext to html format using php?

How can i convert the wikitext to html format using php ? If anyone knows the libraries please help me.. Thanks in advance...
Royal
  • 267
  • 1
  • 5
  • 12
8
votes
3 answers

Is there an easy way to make a pleasing mediawiki table?

I use a MediaWiki instance on a thumb drive to keep track of a ton of stuff. In the past, I've been in a hurry so I haven't had the chance to look for a nice way to make tables, so this syntax has served my purposes well: {| border=1 ... |} Now I…
OwenP
  • 24,950
  • 13
  • 65
  • 102
8
votes
5 answers

Mediawiki rollback bot (Mass undo troll actions!)

I want to rollback every page a certain IP address has edited, and delete any pages they've made. How can I do this with either a bot or a plugin or even default functionality to do this? I've found the bot documentation (here) but haven't been able…
Cyclone
  • 17,939
  • 45
  • 124
  • 193
8
votes
2 answers

Wikipedia (MediaWiki) URI encoding scheme

How do Wikipedia (or MediaWiki in general) encode page titles in URIs? It's not normal URI encoding, since spaces are replaced with underscores and double quotes are not encoded and things like that.
parsa
  • 2,628
  • 3
  • 34
  • 44
8
votes
3 answers

500 Server Error after moving media wiki directory

I had a media wiki installation on the main directory /public_html/ of my domain and had short URLs enabled to http://example.org/wiki/Page_title so I had an .htaccess file with the following rules # Enable the rewrite engine RewriteEngine On #…
spacing
  • 730
  • 2
  • 10
  • 41
8
votes
2 answers

Freeze (lock) top row (heading) in MediaWiki table

I've looked around, and it looks like there is no way to lock the first row of a mediawiki table. By freezing, I mean, like how you lock the top row of a spreadsheet table. This seems like a very desirable feature when you're creating a table with a…
aalosious
  • 578
  • 6
  • 11
8
votes
3 answers

Open-source parser code for Mediawiki markup

I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page that's some subset of the HTML produced by the actual PHP Mediawiki render engine. I want it for BzReader, an offline Mediawiki compressed dump reader…
Asaf Bartov
  • 2,711
  • 3
  • 20
  • 18
8
votes
4 answers

How does MediaWiki calculate the file path to an image?

I'm just installing MediaWiki (loving it). I'm lookin at this for adding images. I can se the logic of [[File:MediaWiki:Image sample|50px]] but where so I set the filepath for "File" (nothing obvious in LocalSettings.php) ... or is there some…
Gillian
  • 81
  • 1
  • 2
8
votes
2 answers

Transfer wiki between different MediaWiki versions manually by copying files

I am using https://bitnami.com/stack/mediawiki which "one-click installs" a mediawiki stack on my MacBook. This means I can point my browser to http://localhost:8080/mediawiki/Main_Page and create my wiki from that page (which I did, putting several…
P i
  • 29,020
  • 36
  • 159
  • 267
8
votes
4 answers

How does MediaWiki compose the image paths?

I have a Perl application that parses MediaWiki SQL tables and displays data from multiple wiki pages. I need to be able to re-create the absolute image path to display the images, eg: .../f/fc/Herbs.jpg/300px-Herbs.jpg From MediaWiki…
Jerry Pank
  • 83
  • 1
  • 4