mediawiki

How can I fix the MediaWiki error “Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.”?

半腔热情 提交于 2019-12-04 19:04:08
问题 The problem I am having is that I can not log on to my newly created wiki that I made using MediaWiki. I have searched the web for an answer, and the ones I found did not help with this specific issue (like this one: problem with mediawiki cookies) I have tried with multiple browsers and changed the setting to make sure that cookies are enabled, but I keep getting the same error: " Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again. " I'm not sure

Creating custom edit buttons for MediaWiki

自作多情 提交于 2019-12-04 17:55:25
Hi im trying to build a mediawiki extension which requires AJAX calls during editing a page. All I need is to add a new edit button on the edit page which displays a javascript popup editor which in turn makes the appropriate calls. I need to know if it is feasible in Mediawiki, to inject javascrpt code into edit buttons. Any kind of information or leads are welcome! Ok clearly the question is very specific, tht no one cared to answer. so if some one else wants to know how to add custom edit buttons in Mediawiki, this is how I did it I found a Mediawiki help page which asks the user to edit a

How can I add per page permissions to a user in MediaWiki?

青春壹個敷衍的年華 提交于 2019-12-04 17:04:18
问题 In MediaWiki, how can a user be given permission to edit only certain pages? This way, the administrator can create a page for the user and the user will be able to edit this particular page only. 回答1: I think you're looking for SimpleSecurity. 回答2: I use extensions ImprovedAccessControlas well as PermissionACL. Both work well for page by page, user by user, and namespace by namespace control. 回答3: This is an old question, MediaWiki has evolved and there appeared the "Access_Control_List"

Convert Excel documents to wiki markup

北战南征 提交于 2019-12-04 16:51:32
问题 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? 回答1: I know of three options: Install a WYSIWYG editor extension like FCKeditor (see also Official). Advantage: fairly easy Paste As Word (and therefore also as Excel) button. Disadvantage: installation can be tricky. Use a macro in Excel. Advantage: a one-click

Import Confluence xml dump into Mediawiki

我怕爱的太早我们不能终老 提交于 2019-12-04 16:17:38
问题 Is it possible to import a Confluence xml dump into Mediawiki? If so, any guidance will be appreciated. Thanks for you assistance! 回答1: There is a converter from Confluence to Twiki: http://twiki.org/cgi-bin/view/Plugins/ConfluenceToTWikiAddOn and converters from Twiki to MediaWiki: https://www.mediawiki.org/wiki/Twiki Here are a few markup translation tools: Confluence to MediaWiki Converter Wikifier Doxia Mylyn 回答2: Still working on if this is a solution or not, but.... from confluence

No 'Access-Control-Allow-Origin' header is present. Origin is therefore not allowed access

冷暖自知 提交于 2019-12-04 14:48:54
EDIT: No JSONP! Yes i know CORS is handled by the server and Yes the server does support it. The issue is on my side. I am trying to use MediaWiki API from the browser. I am sending a GET request through XMLHttpRequest but due to CORS issues it's just not working. I am getting the following message from my browser after it receives the response: XMLHttpRequest cannot load https://en.wikipedia.org/w/api.php?format=json&action=query&list=search&srsearch=Oculus&utf8 . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://127.0.0.1:8000 ' is therefore not

Find main category for article using Wikipedia API

╄→尐↘猪︶ㄣ 提交于 2019-12-04 13:33:07
I have a list of articles and I want to find the main category of each article. Wikipedia lists its main categories here - http://en.wikipedia.org/wiki/Portal:Contents/Categories . I am able to find the subcategories of each article using: http://en.wikipedia.org/w/api.php?action=query&prop=categories&titles=%s&format=xml I also am able to check whether a subcategory is within a category: http://en.wikipedia.org/w/api.php?action=query&titles=Dog&prop=categories&clcategories=Domesticated animals&format=xml This will tell me whether "domesticated animals" is a subcategory of Dog, but this is not

How to enable Mathematica syntax highlighting for MediaWiki using extension “SyntaxHighlight GeSHi”?

时光毁灭记忆、已成空白 提交于 2019-12-04 12:58:49
I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply putting a Mathematica langauge data file mathematica.php into MediaWiki's extension path wiki/extensions/SyntaxHighlight_GeSHi/geshi , however it didn't correctly highlight a Mathematica code block such as: <syntaxhighlight lang="Mathematica"> (* this is a comment *) List[Sin[x], Cos[x], Tan[x]]; </syntaxhighlight> Any ideas? I do not see Mathematica listed as a supported language at http://qbnz

Convert MediaWiki wikitext format to HTML using command line

♀尐吖头ヾ 提交于 2019-12-04 11:50:35
问题 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 mouse all the time to input the correct tags for HTML adds a lot of time. I'd like to be able to write my articles in Mediawiki syntax and then convert it to HTML for use on my blog. I've tried Google-ing but must need better nomenclature as

Python regex for finding contents of MediaWiki markup links

爷,独闯天下 提交于 2019-12-04 11:42:24
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([[__?__]], article_entry) I am stumbling a bit on escaping the double square brackets, and getting the proper link for text like: [[Alexander of Paris|poet named Alexander]] Here is an example import re pattern = re.compile(r"\[\[([\w \|]+)\]\]") text = "blah blah [[Alexander of Paris|poet