mediawiki

Requiring SSL for the database connection for MediaWiki/Apache/PHP/MySQL with OpenSSL

Hi, For a school project, I have installed MediaWiki on my local machine, and am required to have any database connection to the local MySQL database use SSL. I am unsure of how to connect all the dots. Here's what I have done so far: I have installed OpenSSL, and created a self-signed certificate, and associated keys. phpinfo() sho...

Python regex for finding contents of mediawiki markup links

If I have some xml containing things like the following mediawiki markup: " ...collected in the 12th century, of which [[Alexander the Great]] was the hero, and in which he was represented, somewhat like the British [[King Arthur|Arthur]]" what would be the appropriate arguments to something like: re.findall([[__?__]], ar...

How to avoid a separate log-in when adding WikiMedia references in a CakePHP framework?

My team is trying to use Media Wiki to let users post deeper analysis of scientific research. However, MediaWiki requires a separate log-in, which is a real hassle. Is there a way to bypass the need for a separate Media Wiki log-in so that the user who is already logged-in to our site can go straight to Wiki Media and post references wi...

Which wiki to use after MediaWiki?

We're thinking of moving from our existing installation of MediaWiki to something more feature-rich. I'm trying to find all the pains people have with MediaWiki today (mainly it's poor handling of external documents and less-than-perfect editing capabilities - compared to Word). We are using a wiki for design, spec, process guidelines. ...

In Mediawiki is there a way to force a group of pages to have a particular skin?

The reason I am keen to do this is that we have a wiki which works great, but I would like to store help pages for an internal application in the wiki and link to those pages direct from the app. Although we wouldn't have concerns with people seeing the non-article stuff (i.e. the help pages) when viewing the pages from the rest of the w...

Fast way to get the difference of 2 columns in MySQL

Hi, how do I get the fields of a column that's without a match in another column? I tried: SELECT table1.page_title FROM table1, table2 WHERE table1.page_title != table2.page_title It produces a lot of duplicate fields so I did a: SELECT DISTINCT table1.page_title FROM table1, table2 WHERE table1.page_title != table2.page_title ...

Copy chosen Wikipedia articles into own wiki?

Hi, is there a way to batch copy certain wikipedia articles(about 10,000) to my own mediawiki site? EDIT: How do I do this without overwriting similarly named articles/pages? Also I don't plan on using illegal means (crawlers etc) ...

What is the format of Mediawiki's AdminSettings.php

I am trying to run dumpBackup.php and I get php dumpBackup.php --current DB connection error: Unknown error My understanding is I need to copy the file AdminSettings.sample to .php. But I don't seem to have such a file. What is the format of it. Probably looking in the wrong place but all references refer to the sample file ...

MediaWiki recursiveTagParse returns false

I am writing an extension for internal use in my group. It takes some parameters and should return a table of DRs for the release we are working on. It queries our ClearQuest, and its all working great. However, when more than 606 (a common occurrence) rows are in the table no output is returned at all. I write the table using wiki m...

Script to add user to MediaWiki

I'm trying to write a script that will create a user in MediaWiki, so that I can run a batch job to import a series of users. I'm using mediawiki-1.12.0. I got this code from a forum, but it doesn't look like it works with 1.12 (it's for 1.13) $name = 'Username'; #Username (MUST start with a capital letter) $pass = 'password'; #Passwo...

using php and curl to update mediawiki

I've been working on a php script to update mediawiki entries, however whenever I run it it doesn't seem to update the wiki at all and just returns the article page unedited. I've included a section which logs into the wiki first and I've successfully read information off the wiki but I have not been able to update it. Is there somethi...

How to use wikipedia api if it exists?

Hi, I'm trying to find out if there's a wikipedia api (I Think it is related to the mediawiki?). If so, I would like to know how I would tell wikipedia to give me an article about the new york yankees for example. What would the REST url be for this example? All the docs on this subject seem fairly complicated. ...

Which text editor supports syntax highlighting for Wiki code?

Does any text editor (such as Notepad++) syntax highlight MediaWiki code? This might not be strictly programming related though the Wiki script is a language by itself. ...

Where do Wikis using MediaWiki Software Store Their Articles?

Where and how do wikis that use the MediaWiki software store their articles? ...

Exporting and Importing Images in MediaWiki

How do I export and import images from and into a MediaWiki? By the way, what is the purpose of the notify dialog box when asking a question on StackOverflow? ...

Effective Extensions for Development Wiki

Our small team of 3-4 developers uses a wiki for documentation and collaboration. I'm trying to put together a list of some solid extensions which would help make it better. We are using MediaWiki, but if you know of a good extension/plug-in for another platform I'd like to hear about that too. Thanks. Here is my list so far: Geshi...

Mediawiki: Invalid Edit Token

Hello, I use the API with HTTP POST to create a wiki page in a Mediawiki (1.14): I require an edit token It works, I get a fresh token (example: d96d72fae5e6c43b0b9f63d82ace366) I send the HTTP POST for creating a new site with my new token (sth. similar to "d96d72fae5e6c43b0b9f63d82ace366+\" I get an error message "Invalid Token" ...

pywikipedia question?

Is it possible, using pywikipedia, to get just the text of the page, without any of the internal links or templates & without the pictures etc.? Cheers! ...

Where can I find a good MediaWiki Markup parser in PHP?

I would try hacking MediaWiki's code a little, but I figured out it would be unnecessary if I can get an independent parser. Can anyone help me with this? Thanks. ...

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 can be edited by using the edit link). All subcategories that are attached to this cate...