19

If you don't want to use the export-and-reinstall method suggested by danlefree, you might also find the Nuke extension useful. Once installed, visiting the special page Special:Nuke as an administrator gives you a form like this: There are also several built-in MediaWiki maintenance scripts that could be useful, including: cleanupSpam.php, which can ...


10

You can take the -pages-articles.xml.bz2 from the Wikimedia dumps site and process them with WikiTaxi (download in upper left corner). Wikitaxi Import tool will create a .taxi(around 15Gb for Wikipedia) file out of the .bz2 file. That file will be used by WikiTaxi program to search through articles. The experience is very similar to the browser experience. ...


10

Add to LocalSettings.php: $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; But of course admin is able to edit pages.


9

Yes, you need to protect it so that it can only be edited by administrators: You can designate a page as a protected page by clicking the 'Protect page' tab ('protect' in the drop-down menu in Vector), and supplying a comment (a brief textual description of why you are protecting the page).


8

You could use a webcrawler tool which will save the site as HTML files. All the links will be converted, so you can open the main page, say, and then click on links and get to all the site. There are a number of these tools available. I use wget, which is command line based and has thousands of options, so not very friendly. However it is quite powerful. ...


8

Your example [http://example.com/image.jpg] is correct. You will need to enable this by setting $wgAllowExternalImages to true in your configuration file. The default is false. Optionally, you can set $wgAllowExternalImagesFrom to allow exceptions while $wgAllowExternalImages remains set to false. You can also use $wgEnableImageWhitelist to allow exceptions ...


7

The Special:Version page lists all of the installed extensions for a MediaWiki instance. Also see http://noc.wikimedia.org/conf/ for example of real configuration employing all these extensions, though using it directly would be overkill.


6

Assuming you have the ParserFunctions extension, you can use the #if function, as documented on MediaWiki: This function evaluates a test string and determines whether or not it is empty. A test string containing only white space is considered to be empty. {{#if: test string | value if test string is not empty | value if test string is empty (or only ...


5

Your question is unclear, and appears to be based on several misunderstandings of how the software works. Assuming I'm guessing correctly: You have a website running the MediaWiki software, and this site is not one of the ones operated by the Wikimedia Foundation. You have reasonably high privileges within the software, but no privileges outside the ...


5

You generally won't want these excess pages in your sitemap. The sitemap should only contain links to URLs you actually indexed & listed by search engines. If you have property/form URLs in your sitemap, you've probably used a 3rd party Sitemap Generator. These just crawl all links on your website indescriminately, whereas something like https://www....


5

The following picks up on a fresh working LAMP installation under Red Hat 7 or clone (CentOS 7, Scientific Linux 7, Orcale 7, etc). Set Selinux to permissive for the installation. setenforce 0 First get the Mediawiki version you want from https://releases.wikimedia.org/mediawiki/ , at time of writing latest is https://releases.wikimedia.org/mediawiki/1.27/...


5

You can use the API to export all the text content, with something like action=query&generator=allpages&export. Files you'll have to scrape via some script, such as pywikibot. You can see what extensions are installed via Special:Version if you want to set up an identical wiki; some of the configuration settings are available via the siteinfo API, ...


4

Another way is: Go to Special:SpecialPages of a given wiki, and check if it has Special:PopularPages; example: http://en.wikipedia.org/wiki/Special:SpecialPages - doesn't have it http://www.alsa-project.org/main/index.php/Special:SpecialPages - has it If you have Special:PopularPages, then you can use that to list page views (counts); but not if it isn't ...


4

Yes, you can use the #switch function to do this. There are some examples on this article - generating dynamic content with mediawiki. The documentation on #switch is here: http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23switch


4

There are a bunch of MediaWiki extensions that provide such features. A few you may want to take a look at include: CategoryTree: A simple extension that, like the name suggests, provides a way to include an expandable category tree on a wiki page. DynamicPageList: An extremely versatile extension that can be used to list pages according to various ...


4

Solution {{#dpl:category=Backup|format=,*,[[%PAGE%]]\n,}}


4

Note: Since MediaWiki 1.6, the MediaWiki core has a Google site map generator... It is a command-line utility, and it is located at maintenance/generateSitemap.php in your MediaWiki directory. The command line is "php generateSitemap.php sitename" and is run from the maintenance directory at the server's command line interface. See Manual:...


4

You can do that by editing (or creating, if it doesn't exist) the page Project:Book sources (or a translated version of that name, if the language of your wiki is not English). In the source of that page, MAGICNUMBER will be replaced by the ISBN. You can look at the version of this page on English Wikipedia for inspiration.


4

When you have no shell access use the WikiTeam DumpGenerator.py script. This can do a XML dump of the current pages or with all their history and also does a dump of all available images along with their descriptions.


4

(MediaWiki 1.31.0) Add to LocalSettings.php: $wgHooks['AuthChangeFormFields'][] = function ($requests, $fieldInfo, &$formDescriptor, $action) { $formDescriptor['rememberMe']['default'] = true; return true; }; See Hooks/AuthChangeFormFields and HTMLForm.


4

Take a backup first. Using phpMyAdmin (or similar) you can run an SQL query using REPLACE to update the tags in place. The 'text' table holds the pages for MediaWiki in the 'old_text' field. First run: select 'old_text' from 'text' where 'old_text' like '%pre>%'; to see what in the old_text database will be changed and make sure no extra code is ...


4

When you create an Adsense ad, you can select it to be either responsive or fixed size. If it's a fixed size, you'll get the sizing thrown into the ad as part of the styling: style="display:inline-block;width:728px;height:90x" However, if you choose a responsive size, it will display something like this: style="display:block" data-ad-format="auto" ...


3

Just #p-navigation, #p-tb { display:none } should remove the navigation bar and the toolbox completely, both in Vector and in MonoBook. Ps. You may also want to take a look at the Manual:Interface/Sidebar page at mediawiki.org.


3

Was the message you saw something like this? "Warning: The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation. If you run a high-traffic site, you should read a little on Unicode normalization." What it's telling you is that you should install the intl extension from PECL; otherwise ...


3

all these features are readily available in XWiki. I don't know enough about the other 2 wikis you cite though. The http://xwiki.org web site provides more information. If you don't find something in the documentation you can ask on the XWiki forum/list and you'll get some fast answers: dev.xwiki.org/xwiki/bin/view/Community/MailingLists Thanks -Vincent (...


3

Fix Method 1 Update your MediaWiki to the latest version and this resolves this problem. Fix Method 2 If you prefer to use an outdated version then this will fix this problem. Edit includes/ProxyTools.php, after line 70 wfGetIP(). After static $ip: { $ip = "10.10.10.10"; return $ip; } Change 10.10.10.10 to the same IP address of your external internet ...


3

The characters that MediaWiki disallows in URLs need to be percent-encoded. So, for example, your link should be written as http://chemapps.stolaf.edu/jmol/jmol.php?model=C%5BC@H%5D(N)CC1=CC=CC=C1 (%5B and %5D are the codes for [ and ]).


3

The workarounds: Explicitly preceed the argument with the (numerical) parameter name in the call to template, like this: {MyUrl|1=http://www.example.com/abstract.cfm?uri=aa-123456}} Another solution: one can create a symbolic name for the parameter. Then the template may look something like this: See here: [{{{link}}} (link)] And the call like this: {...


3

Configure the wiki job queue. Link colour is not updated immediately across all of your wiki to save on resources.


3

As Stephen Ostermiller says, in this case you want to add "conf" to the line beginning with "text/plain" in: includes/mime.types In other cases though it may not be this simple. When you upload a file, mediawiki executes the PHP function mime_content_type("my_uploaded.wth"); which takes the result and looks it up in includes/mime.types. If you find ...


Only top voted, non community-wiki answers of a minimum length are eligible