mediawiki

How to enable the SyntaxHighlight extension after installed?

我们两清 提交于 2019-12-24 06:24:10
问题 I have a fresh Mediawiki (v1.33) installed into fresh UBUNTU 18 LTS... The ''SyntaxHighlight'' extension is not working , the effect is like a code into <pre> tags. At mediawiki.org/list there are no clues. I used the syntax_highlighting checkbox during Mediawiki installation, and I can see it at Especial:Version page as "SyntaxHighlight 2.0", so, it is installed... But is not working. NOTES AND TESTS Notes. It is a corporative Wiki, no way to offer public URL... But it is a fresh, standard

How to create user page dynamically after registration of user

你离开我真会死。 提交于 2019-12-24 03:10:49
问题 In mediawiki, how do I create a page for the user dynamically after user registration? For example, after user xyz get registered, a user page is created with name User:xyz . How can this be done? 回答1: Write a MediaWiki extension that hooks into the AddNewAccount hook. See this question for the PHP code for creating new articles within an extension. 回答2: You could definitely create a bot to do this, it probably wouldn't even be difficult. 来源: https://stackoverflow.com/questions/8381904/how-to

How to use Wikipedia api in android [closed]

若如初见. 提交于 2019-12-24 03:03:21
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I'm developing an app to get Location name then put it into a googlemap and display that location wiki page . I tied to search but There is some phonegap android app . My question is : Is there any Wiki API for android native app to get and search information ? and how to

How to remove index.php from the URL of MediaWiki?

浪子不回头ぞ 提交于 2019-12-24 01:39:35
问题 I used this tool http://shorturls.redwerks.org/ to rewrite a short url for MediaWiki. From this: http://wikitest.org/fr/index.php/Accueil to this: http://wikitest.org/fr/wiki/Accueil . Then I added this code to LocalSettings.php: ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/fr";

How many wiki instances to install?

我怕爱的太早我们不能终老 提交于 2019-12-24 00:37:46
问题 I've been asked to install Mediawiki to house documentation for a company intranet. Furthermore, I've been asked to install several instances - one per contributing group: non-technical users get one, developers one, management one, etc. The idea is to provide separate web spaces for each group. Is there a way to achieve separation within one instance? 回答1: I think you've already got a strong argument: maintaining multiple instances will be a pain. Plus, if all users can read/write to all of

Retrieve first paragraph of Wikipedia article

依然范特西╮ 提交于 2019-12-24 00:16:53
问题 I've been trying to understand the MediaWiki documentation for the past 2 days and I can't figure out how to retrieve the first paragraph of a Wikipedia article through the MediaWiki API. Could someone point me to the right direction? I am about to appeal to file_get_contents, but I'm confident there's a "cleaner" solution. 回答1: Don't try to use the raw API, instead use a client wrapper. Here's a long list to choose from, all for PHP: http://en.wikipedia.org/wiki/Wikipedia:PHP_bot_framework

How can I force MediaWiki to respect single line breaks?

↘锁芯ラ 提交于 2019-12-23 10:57:11
问题 By default, MediaWiki ignores single line breaks, treating them as a single space. To insert a new line in a page, you must insert two consecutive line breaks in the source, which results in a new paragraph: </p><p> . It's also possible to insert <br /> directly into the source. How can I modify the MediaWiki parsing engine so single line breaks in the source are replaced automatically with a <br /> in the resulting HTML? (Source: http://www.mediawiki.org/wiki/Help:Formatting) 回答1: Use https:

How can I force MediaWiki to respect single line breaks?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 10:57:02
问题 By default, MediaWiki ignores single line breaks, treating them as a single space. To insert a new line in a page, you must insert two consecutive line breaks in the source, which results in a new paragraph: </p><p> . It's also possible to insert <br /> directly into the source. How can I modify the MediaWiki parsing engine so single line breaks in the source are replaced automatically with a <br /> in the resulting HTML? (Source: http://www.mediawiki.org/wiki/Help:Formatting) 回答1: Use https:

Convert Sandcastle Help File Builder Output (Web site) to MediaWiki format

北慕城南 提交于 2019-12-23 09:01:50
问题 I need to convert my Sandcastle Help File Builder (SHFB) output that is a Web site (HTML) to Media wiki format Find a way to transfer/include the converted pages directly into the MediaWiki we have set up. Any ideas? we have over 1000 pages of HTML files inthe Website (output of SHFB). I thought of using a html2wiki converter ..I could think of looking around for a script to convert those 1000 pages into wiki format... that could take care of (1). But I would still be left with the block in

How to permanently delete a page from a MediaWiki wiki?

血红的双手。 提交于 2019-12-23 07:03:05
问题 I administer a MediaWiki wiki that has been hit by a ton of spam. I've managed to get rid of the spam pages that have been added to the wiki by using an extension, but the pages' data is still present in the wiki's MySQL database. This is bloating the database to over 3GB. Is there a way to permanently delete the spam pages from the wiki, so that they are completely removed from the database? 回答1: Run the maintenance script named deleteArchivedRevisions.php. Note that running MediaWiki