mediawiki

UserMerge Error

懵懂的女人 提交于 2019-12-23 03:56:29
问题 I recently added the UserMerge extension to my mediawiki installation. Followed the instructions found here. I enabled $wgShowExceptionDetails = true; and it gave me this: [f9bbe088] /wiki/index.php/Special:UserMerge Exception from line 376 of /wiki/includes/SpecialPage.php: Call to undefined method UserMerge::getPageTitle Backtrace: #0 /wiki/extensions/UserMerge/UserMerge_body.php(128): SpecialPage->__call(string, array) #1 /wiki/extensions/UserMerge/UserMerge_body.php(128): UserMerge-

Offline WYSIWYG Mediawiki Editor for GitHub wikis

放肆的年华 提交于 2019-12-23 03:16:13
问题 This is my first post, so please go easy on me if I say something stupid. Also please point me to the right direction of this question has been answered in any other places. I googled for this for a while but I did not get satisfactory answers. I'm a big fan of GitHub and use it everyday to manage all my Open Source projects as well as paid subscription for the company that work for. I use the wiki heavily to make documentations and edit most of the contents offline with text editors and push

How to get internal link from latest revision of a wikipedia page?

吃可爱长大的小学妹 提交于 2019-12-23 02:57:07
问题 I'm trying to extract internal links from wikipedia pages. This is the query I'm using /w/api.php?action=query&prop=links&format=xml&plnamespace=0&pllimit=max&titles=pageTitle However, the result does not reflect what's on the wiki page. Take for example a random article here. There are only a dozen of links on this page. However, when I make the query, /w/api.php?action=query&prop=links&format=xml&plnamespace=0&pllimit=max&titles=Von_Mises%E2%80%93Fisher_distribution I got back 187 links. I

How to insert HTML inside a div rel?

╄→гoц情女王★ 提交于 2019-12-23 01:13:12
问题 <div rel="wikiEditor-ui-view-preview" class="current"> The class changes to 'current' when the user clicks on Preview. How can I insert some other HTML inside it, instead of displaying the preview of the text? This preview thing only works if an user is online and I have made a parser (a JS file) which successfully parses WikiText to HTML when an user is offline. I want to link the output of the parser which is HTML and link it to this div. 回答1: If i get your idea right, you're going to

convert ipython notebook to mediawiki

≡放荡痞女 提交于 2019-12-22 18:02:09
问题 I would like to convert an ipython notebook to mediawiki markup. I had two ideas how to do that: Customize an export for the nbconvert tool. Export to LaTeX first and then use pandoc to convert it to mediawiki markup. I couldn't find anything on the first option. The problem for the second option is that LaTeX output puts in a lot of custom commands which are not converted into <source lang='python'> ... </source> tags correctly. Does anybody have a good idea? 回答1: you can probably pitch-in

How to login using mediawiki's api, curl, and bash?

人盡茶涼 提交于 2019-12-22 12:40:21
问题 My understanding of the process: From mediawikis login manual https://www.mediawiki.org/wiki/API:Login When using MediaWiki's web service API, you will probably need your application or client to log in. This involves submitting a login query, constructing a cookie, and confirming the login by resubmitting the login request with the confirmation token returned. 1) Attempt to login with username and password, this will fail with 'result="NeedToken"' as part of response html. Response will also

How to login using mediawiki's api, curl, and bash?

ぃ、小莉子 提交于 2019-12-22 12:40:06
问题 My understanding of the process: From mediawikis login manual https://www.mediawiki.org/wiki/API:Login When using MediaWiki's web service API, you will probably need your application or client to log in. This involves submitting a login query, constructing a cookie, and confirming the login by resubmitting the login request with the confirmation token returned. 1) Attempt to login with username and password, this will fail with 'result="NeedToken"' as part of response html. Response will also

PHP Warning: PHP Startup: Unable to load dynamic library '…' failed to map segment from shared object: Cannot allocate memory in Unknown on line 0

风格不统一 提交于 2019-12-22 09:46:28
问题 Im getting the following on my developer machine. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gd.so' - /usr/lib/php5/20100525/gd.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mcrypt.so' - /usr/lib/php5/20100525/mcrypt.so: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 PHP Warning: PHP Startup:

How to change font size and colour in Mediawiki navigation sidebar and footer?

吃可爱长大的小学妹 提交于 2019-12-22 07:10:43
问题 My website was developed using Mediawiki and I have the following question: How do I change the font size and font colour in the navigation sidebar and footer? I am using the vector skin and having difficulties finding the correct way to make these changes. 回答1: For the navigation: search in your css to div#mw-panel div.portal div.body ul li a { color: #0645AD; } div#mw-panel div.portal div.body ul li a:visited { color: #0B0080; } and change it to div#mw-panel div.portal div.body ul li a {

Download images with MediaWiki API?

人走茶凉 提交于 2019-12-22 06:28:35
问题 Is it possible to download images from Wikipedia with MediaWiki API? 回答1: No, it is not possible to get the images via the API. Images in a MediaWiki are stored just in folders, not in a database and are not delivered dynamically (more information on that in the Manual:Image administration). However, you can retrieve the URLs of those image files via the API. For example see the API:Allimages list or imageinfo property querymodules. Then you can download the files from those URLs with your