Hot answers tagged mediawiki
7
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).
7
I've used MediaWiki as a CMS on quite a few occasions, though my goal has been to publish (i.e. allow anyone else to view and only editors access to write) content but restrict edit access.
To lock down write privileges:
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['editpage'] = ...
6
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.
3
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
3
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.
...
3
The version of MediaWiki used by Wikipedia is 1.17wmf1, which I'm guessing stands for Wikimedia Foundation. They use a customised version of the software for their own purposes. I think all you can do is hope they include that new editor in a future release. Or else you could try and download the scripts that they're using and reverse engineer the pages, but ...
3
The easiest way to handle this situation (if you don't mind a nuke'n'pave) would be to export all wiki pages created or edited by your username, reinstall the wiki, and import the export file you'd generated.
"Reinstall" in this context would mean:
Export articles created by you (presumably logged in as the WikiSysop user or similar)
Drop the MW database
...
3
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.
2
You have to set some config variables and fix your htaccess file. Here is a actual blog post which describes all the steps: http://paulschreiber.com/blog/2010/07/07/how-to-install-mediawiki-on-a-subdomain/
2
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 ...
2
You can use the following robots.txt file if you wish to block all robots from accessing your pages.
# robots.txt for www.domain.com to block all bots
User-agent: *
Disallow: /
If you wish to block all all URLs that include a question mark (?) you can use the following format
# robots.txt for www.domain.com to block URL with ? mark
User-agent: *
...
2
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 ...
2
The skin used for Wikipedia, Vector, is the default skin for MediaWiki version 1.17 and above. By editing the CSS files that make up the skin you can change it to look how you want, given enough CSS skills.
2
I don't think I get what you are trying to do. If you want to reference objects inside a page, you can give each object an ID, and form the links so they will point to the ID you you've tagged.
Template page:
<div id="{{{ID|1}}}">{{{object|2}}}</div>
On relevant pages:
{{obj|cool_table|image}}
...some text...[[#cool_table|in figure 4]] ...
2
These particular templates are called infoboxes and you can find information on how to install them at etcwiki.org's How To Install Template Infobox in MediaWiki article and how to create them at Wikipedia's Template:Infobox.
2
I think by default apache will look into /srv/www for websites, not the users home directory. The first thing I would check is where apache is looking.
If you search the internet for terms like "apache .conf virtual host" you should find several how-to guides. Here is the official documentation on virtual hosts.
You don't need to create a database, as ...
2
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 ...
2
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.
2
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 ...
2
Pulp Pedia is someone else's website. And you can't just delete articles from other people's websites, no matter how much do you dislike them.
After a little bit of investigation, I found out that the site automatically mirrors all pages of the English Wikipedia, in modified form (with added profanities and in ALL CAPS).
For example, look at Pulp Pedia ...
2
Sure. All you need to do is use a hook, check if the current $wgTitle is the same as the main page title, and if it is, switch the Skin object to a different skin.
The hook you should use for this is RequestContextCreateSkin.
The Skin object is passed by reference there, so you should have no trouble replacing it with a custom skin of your choice.
Good ...
2
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
...
2
Use any free image hosting services like flicker , photobucket
or use amazon S3
http://asvignesh.in/host-media-files-in-amazon-s3
Now you can use Google drive as web hosting space , Upload files to google drive get the url and use it in Media Wiki page
http://asvignesh.in/host-website-in-google-drive
1
Looking at the source code it's checking the PHP version, but for libxml2 it actually runs some code to see if the bug is there. https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/installer/PhpBugTests.php
It looks like even the version you have has the bug, and you have the latest libxml2 so I'd edit the code in that function so ...
1
You can take the -pages-articles.xml.bz2 from Wikimedia backup 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.
...
1
You will need to configure your IIS/Apache/WebServer so that it points to an index file that is completely separate from MediaWiki. Throw in a text input and submit button for the search and have it post to MediaWiki's search. This way, you've got a static home page that users cannot edit with a functional search.
1
This Wikimedia extension exports to PDF. http://www.mediawiki.org/wiki/Extension:Pdf_Export
It says
If you invoke the Pdf Export special page directly, it lets you select a group of wiki pages and output them as a single pdf document.
There's also a warning on that page
Warning: The author of this extension is no longer maintaining it,
meaning ...
1
Many testimonials are available from major mediawiki users
http://www.mediawiki.org/wiki/MediaWiki_testimonials
Now here's a particularly challenging application I doubt you'll be seeing on Confluence
http://en.wikipedia.org/wiki/Intellipedia
1
I would say there are NO good alternatives to mediawiki other than Wordpress, another open source platform. Both have many extensions and are guaranteed to stick around for a very long time, probably forever. Here's an example of a simple intranet based on Wordpress (which I haven't used and don't recommend except as a guide to features) ...
1
You can find a list of and source code for all the MediaWiki extensions used by Wikipedia here: http://en.wikipedia.org/wiki/Special:Version
WikiEditor is probably the one you're looking for.
Only top voted, non community-wiki answers of a minimum length are eligible
