mediawiki

Make a second url link to the same directory as a different url, without copying the content to a second directory?

浪子不回头ぞ 提交于 2019-12-13 03:10:28
问题 I have files in a directory, "w", and I want to have those same files accessible from a different directory. I have a MediaWiki installation in the directory 'w', creating a short url to link to the url 'wiki'. I have the files in the 'w' directory but it can be accessed from http://example.com/wiki. I want to have a second wiki entirely with the url format of http://example.com/second-wiki. Since MediaWiki uses the content of files from a database the code never actually needs to change,

Mediawiki - a quick link to template editor

烈酒焚心 提交于 2019-12-13 01:49:24
问题 Wikipedia's navbox templates have v·t·e (view, talk, edit) links in upper left corner. Now I have my own MediaWiki installation and want to be able to edit templates quickly (to have an edit link near each template or more advanced - near each template of certain type). How to do this? P.S. I am not sure whether this is the right place to ask such questions, but saw mediawiki tag on stackoverflow. 回答1: The links in navboxes are there, because a navbox template is created using Template:Navbox

How can I make the Topbar extension work with the newest MediaWiki?

爱⌒轻易说出口 提交于 2019-12-13 01:27:49
问题 I run a MediaWiki site which uses the Topbar extension. I recently upgraded the installation to the bleeding edge version from MediaWiki's master branch: version 1.28.0-alpha (91e56cc). Afterwards, the Topbar extension no longer works: Usually, the topbar div is not inserted at all. Occasionally, the topbar div appears but the links are nonfunctional. The latter issue may be a problem with my CSS (I do not know), but the intermittent behavior concerns me. So the first order of business is to

Apache - Configuring mod_auth_sspi.so

回眸只為那壹抹淺笑 提交于 2019-12-12 22:01:29
问题 I am trying to implement an auto login function into my mediawiki by using their windows credentials. I am using Apache Server (V2.2). I have implemented the Auth remoteuser extension and has implemented the mod_auth_sspi.so in my httpd.conf file and has configure it to be as follows <IfModule !mod_auth_sspi.c> LoadModule sspi_auth_module modules/mod_auth_sspi.so </IfModule> <Location "file/to/path"> Options FollowSymLinks Order allow,deny Allow from all AuthName "TestWeb" AuthType SSPI

How to add custom tab button with external link?

一笑奈何 提交于 2019-12-12 19:03:41
问题 Using Mediawiki 1.19 and want to add tabs with external links right next to the tab buttons 'Page' and 'Discussion'. How to do it? Extension:DynamicTabs does not work because it has trouble with vector skins. Steps in FAQ: How do I add/remove tabs throughout my wiki? do not have any effect at all. 回答1: The code in the FAQ was outdated. For newer versions of MediaWiki, you have to use the SkinTemplateNavigation hook instead of the SkinTemplateContentActions hook. I updated the FAQ. Basically,

Removing index.php from MediaWiki action URLs

核能气质少年 提交于 2019-12-12 13:20:27
问题 OK so its fairly well documented how to hide the index.php?title= bit from urls, but what I would like is to hide it for all the action type links, similar to how the extension ShortUrls is supposed to work (It doesn't on my site and I don't know how to fix it). I don't have access to .htaccess and was thinking of doing it by adding some javascript to the common.js page, or by modifying the ShortLinks extension but the documentation on those hooks isn't very good and anything I tried wasn't

Loading huge XML files and dealing with MemoryError

随声附和 提交于 2019-12-12 08:34:04
问题 I have a very large XML file (20GB to be exact, and yes, I need all of it). When I attempt to load the file, I receive this error: Python(23358) malloc: *** mmap(size=140736680968192) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Traceback (most recent call last): File "file.py", line 5, in <module> code = xml.read() MemoryError This is the current code I have, to read the XML file: from bs4 import BeautifulSoup xml = open('pages

How to encourage non-anonymous editing on MediaWiki?

六月ゝ 毕业季﹏ 提交于 2019-12-12 08:24:15
问题 Problem At work we have a department wiki (running Mediawiki). Unfortunately several persons edit without logging in, and that makes it very difficult to track down editors to ask questions about the content. There are two strategies to improve this encourage logged in editing discourage anonymous editing. Encouraging For this part, any tips are welcome. But of course there is always risks involved in rewarding behaviours. Discourage I know that this must be kept low or else it will

Editing permissions of MediaWiki default namespaces

戏子无情 提交于 2019-12-12 06:32:45
问题 At the moment I'm trying to set some custom premissions for the "user:" Namespace, because normal users shouldn't be allowed to edit or create an article but setting up their personal article. Therefore they need the rights "edit" and "createpage", which i disabled for them. I've tried the default ID "2", you find it here: Link and setting up an own namespace, in my case it was "102". But both versions didn't worked, or was something wrong with my code? $wgGroupPermissions['user'] ['ns102

How do I add Special:PrefixIndex/FULLPAGENAME to the toolbox in my local MediaWIki installation?

给你一囗甜甜゛ 提交于 2019-12-12 04:56:42
问题 I would like a tool in the sidebar's "Tools" section that takes readers to Special:PrefixIndex/FULLPAGENAME where FULLPAGENAME is replaced with the current page's full name. For example, say I was on the page Module:Citation/CS1 then I would like a tool in the sidebar called Subpages that takes me to Special:PrefixIndex/Module:Citation/CS1 . I have seen (the mediawiki sidebar manual) and I added: function CustomizeModificationsOfSidebar() { // Adds PrefixIndex var page = mw.config.get(